X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Ftracepoint%2Fbenchmark%2Ftracepoint_benchmark.c;h=c1208b09cd17ddc69f2d9355a5b648dba2284380;hb=f52a5702dbeb8125ca373ba363b29cbff3042cc1;hp=5d2397575ca3e1b2be4edf12d2913b4521cb8d38;hpb=b521931e0000388ff9080d46719936be98af54c6;p=lttng-ust.git diff --git a/tests/tracepoint/benchmark/tracepoint_benchmark.c b/tests/tracepoint/benchmark/tracepoint_benchmark.c index 5d239757..c1208b09 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_TRACE(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)