X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftracepoint%2Fbenchmark%2Ftracepoint_benchmark.c;h=c1208b09cd17ddc69f2d9355a5b648dba2284380;hb=9edd34bd25f52dd39b354a84f02697254121aefd;hp=50a184707a7a36510dbdc38df92bb2e7edb64957;hpb=8d71973c9b5596f5732741975d4334a3abb3ba2a;p=ust.git diff --git a/tests/tracepoint/benchmark/tracepoint_benchmark.c b/tests/tracepoint/benchmark/tracepoint_benchmark.c index 50a1847..c1208b0 100644 --- a/tests/tracepoint/benchmark/tracepoint_benchmark.c +++ b/tests/tracepoint/benchmark/tracepoint_benchmark.c @@ -25,12 +25,14 @@ */ #include + +#define TRACEPOINT_CREATE_PROBES #include "tracepoint_benchmark.h" -#include -#define NR_EVENTS 10000000 +/* Yes, this is now internal. */ +#include "../../../libust/type-serializer.h" -DEFINE_TRACEPOINT(ust_event); +#define NR_EVENTS 10000000 void tp_probe(void *data, unsigned int p1); @@ -49,7 +51,7 @@ void tp_probe(void *data, unsigned int p1) static void __attribute__((constructor)) init() { - register_tracepoint(ust_event, tp_probe, NULL); + __register_tracepoint(ust_event, tp_probe, NULL); } void single_trace(unsigned int v)