X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftracepoint%2Fbenchmark%2Ftracepoint_benchmark.c;h=43ec21fc81ebc872c9e1fedfc81429c6b9f16977;hb=cc7b66ba103c213a84159c2128cd4096507bdd2b;hp=8af4b84afc67d6d13afc2eec326fc2c85b3d4359;hpb=91594b712729c0d855efeab849c2093706336941;p=ust.git diff --git a/tests/tracepoint/benchmark/tracepoint_benchmark.c b/tests/tracepoint/benchmark/tracepoint_benchmark.c index 8af4b84..43ec21f 100644 --- a/tests/tracepoint/benchmark/tracepoint_benchmark.c +++ b/tests/tracepoint/benchmark/tracepoint_benchmark.c @@ -18,7 +18,7 @@ */ /* - * This test is aimed at testing tracepoint *with* trace_mark : + * This test is aimed at testing tracepoint *with* ust_marker : * * 1) tracepoint named : "ust_event" * -) Probe 1 registered and recording the value 42 @@ -34,7 +34,7 @@ DEFINE_TRACE(ust_event); void tp_probe(void *data, unsigned int p1); -DEFINE_MARKER_TP(ust, event, ust_event, tp_probe, "p1 %u"); +DEFINE_MARKER_TP(event, ust_event, tp_probe, "p1 %u"); /* * Probe 1 --> ust_event @@ -43,18 +43,18 @@ void tp_probe(void *data, unsigned int p1) { struct marker *marker; - marker = &GET_MARKER(ust, event); + marker = &GET_MARKER(event); ltt_specialized_trace(marker, data, &p1, sizeof(p1), sizeof(p1)); } static void __attribute__((constructor)) init() { - register_trace_ust_event(tp_probe, NULL); + register_tracepoint(ust_event, tp_probe, NULL); } void single_trace(unsigned int v) { - trace_ust_event(v); + tracepoint(ust_event, v); } void do_trace(void)