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

     1  // Code generated by lab.nexedi.com/kirr/go123/tracing/cmd/gotrace; DO NOT EDIT.
     2  
     3  package pkg2
     4  // code generated for tracepoints
     5  
     6  import (
     7  	"lab.nexedi.com/kirr/go123/tracing"
     8  	"unsafe"
     9  
    10  	"a/pkg1"
    11  	"net/url"
    12  )
    13  
    14  // traceevent: traceDoSomething(i, j int, q string)
    15  
    16  type _t_traceDoSomething struct {
    17  	tracing.Probe
    18  	probefunc     func(i, j int, q string)
    19  }
    20  
    21  var _traceDoSomething *_t_traceDoSomething
    22  
    23  func traceDoSomething(i, j int, q string) {
    24  	if _traceDoSomething != nil {
    25  		_traceDoSomething_run(i, j, q)
    26  	}
    27  }
    28  
    29  func _traceDoSomething_run(i, j int, q string) {
    30  	for p := _traceDoSomething; p != nil; p = (*_t_traceDoSomething)(unsafe.Pointer(p.Next())) {
    31  		p.probefunc(i, j, q)
    32  	}
    33  }
    34  
    35  func traceDoSomething_Attach(pg *tracing.ProbeGroup, probe func(i, j int, q string)) *tracing.Probe {
    36  	p := _t_traceDoSomething{probefunc: probe}
    37  	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceDoSomething)), &p.Probe)
    38  	return &p.Probe
    39  }
    40  
    41  // trace export signature
    42  func _trace_exporthash_80ddfc2f6c72bdf357dedbb2f0bbec85e93106fc() {}
    43  
    44  // traceimport: "a/pkg1"
    45  
    46  // rerun "gotrace gen" if you see link failure ↓↓↓
    47  //go:linkname pkg1_trace_exporthash a/pkg1._trace_exporthash_965fa599dc3a61119faba1eacf8493973c5d87ad
    48  func pkg1_trace_exporthash()
    49  func init() { pkg1_trace_exporthash() }
    50  
    51  
    52  //go:linkname pkg1_traceDoSomething_Attach a/pkg1.traceDoSomething_Attach
    53  func pkg1_traceDoSomething_Attach(*tracing.ProbeGroup, func(topic string)) *tracing.Probe
    54  
    55  //go:linkname pkg1_traceNewT_Attach a/pkg1.traceNewT_Attach
    56  func pkg1_traceNewT_Attach(*tracing.ProbeGroup, func(t *pkg1.T)) *tracing.Probe
    57  
    58  //go:linkname pkg1_traceNewTPre_Attach a/pkg1.traceNewTPre_Attach
    59  func pkg1_traceNewTPre_Attach(*tracing.ProbeGroup, func()) *tracing.Probe
    60  
    61  //go:linkname pkg1_traceURLParsed_Attach a/pkg1.traceURLParsed_Attach
    62  func pkg1_traceURLParsed_Attach(*tracing.ProbeGroup, func(u *url.URL)) *tracing.Probe