lab.nexedi.com/kirr/go123@v0.0.0-20240207185015-8299741fa871/tracing/cmd/gotrace/testdata/src/a/pkg1/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  	"net/url"
    11  )
    12  
    13  // traceevent: traceDoSomething(topic string)
    14  
    15  type _t_traceDoSomething struct {
    16  	tracing.Probe
    17  	probefunc     func(topic string)
    18  }
    19  
    20  var _traceDoSomething *_t_traceDoSomething
    21  
    22  func traceDoSomething(topic string) {
    23  	if _traceDoSomething != nil {
    24  		_traceDoSomething_run(topic)
    25  	}
    26  }
    27  
    28  func _traceDoSomething_run(topic string) {
    29  	for p := _traceDoSomething; p != nil; p = (*_t_traceDoSomething)(unsafe.Pointer(p.Next())) {
    30  		p.probefunc(topic)
    31  	}
    32  }
    33  
    34  func traceDoSomething_Attach(pg *tracing.ProbeGroup, probe func(topic string)) *tracing.Probe {
    35  	p := _t_traceDoSomething{probefunc: probe}
    36  	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceDoSomething)), &p.Probe)
    37  	return &p.Probe
    38  }
    39  
    40  // traceevent: traceNewT(t *T)
    41  
    42  type _t_traceNewT struct {
    43  	tracing.Probe
    44  	probefunc     func(t *T)
    45  }
    46  
    47  var _traceNewT *_t_traceNewT
    48  
    49  func traceNewT(t *T) {
    50  	if _traceNewT != nil {
    51  		_traceNewT_run(t)
    52  	}
    53  }
    54  
    55  func _traceNewT_run(t *T) {
    56  	for p := _traceNewT; p != nil; p = (*_t_traceNewT)(unsafe.Pointer(p.Next())) {
    57  		p.probefunc(t)
    58  	}
    59  }
    60  
    61  func traceNewT_Attach(pg *tracing.ProbeGroup, probe func(t *T)) *tracing.Probe {
    62  	p := _t_traceNewT{probefunc: probe}
    63  	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceNewT)), &p.Probe)
    64  	return &p.Probe
    65  }
    66  
    67  // traceevent: traceNewTPre()
    68  
    69  type _t_traceNewTPre struct {
    70  	tracing.Probe
    71  	probefunc     func()
    72  }
    73  
    74  var _traceNewTPre *_t_traceNewTPre
    75  
    76  func traceNewTPre() {
    77  	if _traceNewTPre != nil {
    78  		_traceNewTPre_run()
    79  	}
    80  }
    81  
    82  func _traceNewTPre_run() {
    83  	for p := _traceNewTPre; p != nil; p = (*_t_traceNewTPre)(unsafe.Pointer(p.Next())) {
    84  		p.probefunc()
    85  	}
    86  }
    87  
    88  func traceNewTPre_Attach(pg *tracing.ProbeGroup, probe func()) *tracing.Probe {
    89  	p := _t_traceNewTPre{probefunc: probe}
    90  	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceNewTPre)), &p.Probe)
    91  	return &p.Probe
    92  }
    93  
    94  // traceevent: traceURLParsed(u *url.URL)
    95  
    96  type _t_traceURLParsed struct {
    97  	tracing.Probe
    98  	probefunc     func(u *url.URL)
    99  }
   100  
   101  var _traceURLParsed *_t_traceURLParsed
   102  
   103  func traceURLParsed(u *url.URL) {
   104  	if _traceURLParsed != nil {
   105  		_traceURLParsed_run(u)
   106  	}
   107  }
   108  
   109  func _traceURLParsed_run(u *url.URL) {
   110  	for p := _traceURLParsed; p != nil; p = (*_t_traceURLParsed)(unsafe.Pointer(p.Next())) {
   111  		p.probefunc(u)
   112  	}
   113  }
   114  
   115  func traceURLParsed_Attach(pg *tracing.ProbeGroup, probe func(u *url.URL)) *tracing.Probe {
   116  	p := _t_traceURLParsed{probefunc: probe}
   117  	tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceURLParsed)), &p.Probe)
   118  	return &p.Probe
   119  }
   120  
   121  // trace export signature
   122  func _trace_exporthash_965fa599dc3a61119faba1eacf8493973c5d87ad() {}