lab.nexedi.com/kirr/go123@v0.0.0-20240207185015-8299741fa871/tracing/tracetest/ztrace_x_test.go (about)

     1  // Code generated by lab.nexedi.com/kirr/go123/tracing/cmd/gotrace; DO NOT EDIT.
     2  
     3  package tracetest_test
     4  // code generated for tracepoints
     5  
     6  import (
     7  	"lab.nexedi.com/kirr/go123/tracing"
     8  	"unsafe"
     9  )
    10  
    11  // traceevent: traceHello(who string)
    12  
    13  type _t_traceHello struct {
    14  	tracing.Probe
    15  	probefunc     func(who string)
    16  }
    17  
    18  var _traceHello *_t_traceHello
    19  
    20  func traceHello(who string) {
    21  	if _traceHello != nil {
    22  		_traceHello_run(who)
    23  	}
    24  }
    25  
    26  func _traceHello_run(who string) {
    27  	for p := _traceHello; p != nil; p = (*_t_traceHello)(unsafe.Pointer(p.Next())) {
    28  		p.probefunc(who)
    29  	}
    30  }
    31  
    32  func traceHello_Attach(pg *tracing.ProbeGroup, probe func(who string)) *tracing.Probe {
    33  	p := _t_traceHello{probefunc: probe}
    34  	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceHello)), &p.Probe)
    35  	return &p.Probe
    36  }
    37  
    38  // traceevent: traceHi(who string)
    39  
    40  type _t_traceHi struct {
    41  	tracing.Probe
    42  	probefunc     func(who string)
    43  }
    44  
    45  var _traceHi *_t_traceHi
    46  
    47  func traceHi(who string) {
    48  	if _traceHi != nil {
    49  		_traceHi_run(who)
    50  	}
    51  }
    52  
    53  func _traceHi_run(who string) {
    54  	for p := _traceHi; p != nil; p = (*_t_traceHi)(unsafe.Pointer(p.Next())) {
    55  		p.probefunc(who)
    56  	}
    57  }
    58  
    59  func traceHi_Attach(pg *tracing.ProbeGroup, probe func(who string)) *tracing.Probe {
    60  	p := _t_traceHi{probefunc: probe}
    61  	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceHi)), &p.Probe)
    62  	return &p.Probe
    63  }
    64  
    65  // trace export signature
    66  func _trace_exporthash_2cac17aa362e1c23f638766808e976bffdb10ba8() {}