Tracepoint and TRACEPOINT_EVENT API cleanup
[ust.git] / tests / tracepoint / benchmark / tracepoint_benchmark.c
index 50a184707a7a36510dbdc38df92bb2e7edb64957..45f7d3c0957aaf28fb948fd087cac30e8672b573 100644 (file)
  */
 
 #include <stdio.h>
+
+#define TRACEPOINT_CREATE_PROBES
 #include "tracepoint_benchmark.h"
 #include <ust/type-serializer.h>
 
 #define NR_EVENTS      10000000
 
-DEFINE_TRACEPOINT(ust_event);
-
 void tp_probe(void *data, unsigned int p1);
 
 DEFINE_UST_MARKER_TP(event, ust_event, tp_probe, "p1 %u");
@@ -49,7 +49,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)
This page took 0.02354 seconds and 4 git commands to generate.