// Code generated by lab.nexedi.com/kirr/go123/tracing/cmd/gotrace; DO NOT EDIT.

package neo
// code generated for tracepoints

import (
	"lab.nexedi.com/kirr/go123/tracing"
	"unsafe"

	"lab.nexedi.com/kirr/neo/go/neo/proto"
)

// traceevent: traceClusterStateChanged(cs *proto.ClusterState)

type _t_traceClusterStateChanged struct {
	tracing.Probe
	probefunc     func(cs *proto.ClusterState)
}

var _traceClusterStateChanged *_t_traceClusterStateChanged

func traceClusterStateChanged(cs *proto.ClusterState) {
	if _traceClusterStateChanged != nil {
		_traceClusterStateChanged_run(cs)
	}
}

func _traceClusterStateChanged_run(cs *proto.ClusterState) {
	for p := _traceClusterStateChanged; p != nil; p = (*_t_traceClusterStateChanged)(unsafe.Pointer(p.Next())) {
		p.probefunc(cs)
	}
}

func traceClusterStateChanged_Attach(pg *tracing.ProbeGroup, probe func(cs *proto.ClusterState)) *tracing.Probe {
	p := _t_traceClusterStateChanged{probefunc: probe}
	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceClusterStateChanged)), &p.Probe)
	return &p.Probe
}

// traceevent: traceMasterStartReady(m *Master, ready bool)

type _t_traceMasterStartReady struct {
	tracing.Probe
	probefunc     func(m *Master, ready bool)
}

var _traceMasterStartReady *_t_traceMasterStartReady

func traceMasterStartReady(m *Master, ready bool) {
	if _traceMasterStartReady != nil {
		_traceMasterStartReady_run(m, ready)
	}
}

func _traceMasterStartReady_run(m *Master, ready bool) {
	for p := _traceMasterStartReady; p != nil; p = (*_t_traceMasterStartReady)(unsafe.Pointer(p.Next())) {
		p.probefunc(m, ready)
	}
}

func traceMasterStartReady_Attach(pg *tracing.ProbeGroup, probe func(m *Master, ready bool)) *tracing.Probe {
	p := _t_traceMasterStartReady{probefunc: probe}
	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceMasterStartReady)), &p.Probe)
	return &p.Probe
}

// trace export signature
func _trace_exporthash_885c4ce269e66324d28c9dd9ffcd6959aecaf100() {}
