lab.nexedi.com/kirr/go123@v0.0.0-20240207185015-8299741fa871/tracing/cmd/gotrace/testdata/src/a/pkg1_cgo/ztrace.go.ok (about)

     1  // Code generated by lab.nexedi.com/kirr/go123/tracing/cmd/gotrace; DO NOT EDIT.
     2  
     3  package pkg1
     4  // code generated for tracepoints
     5  
     6  import (
     7  	"lab.nexedi.com/kirr/go123/tracing"
     8  	"unsafe"
     9  )
    10  
    11  // traceevent: traceCHello()
    12  
    13  type _t_traceCHello struct {
    14  	tracing.Probe
    15  	probefunc     func()
    16  }
    17  
    18  var _traceCHello *_t_traceCHello
    19  
    20  func traceCHello() {
    21  	if _traceCHello != nil {
    22  		_traceCHello_run()
    23  	}
    24  }
    25  
    26  func _traceCHello_run() {
    27  	for p := _traceCHello; p != nil; p = (*_t_traceCHello)(unsafe.Pointer(p.Next())) {
    28  		p.probefunc()
    29  	}
    30  }
    31  
    32  func traceCHello_Attach(pg *tracing.ProbeGroup, probe func()) *tracing.Probe {
    33  	p := _t_traceCHello{probefunc: probe}
    34  	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceCHello)), &p.Probe)
    35  	return &p.Probe
    36  }
    37  
    38  // trace export signature
    39  func _trace_exporthash_6c1e623c8877bd3e4d9efc72e73ac2bdbf56462b() {}