Update obsolete benchmark test
[lttng-ust.git] / tests / benchmark / bench.c
index 212baefffefeeb108bfe5a091e9cc9981cdbc708..517bfb73078db7b74769b00f81143576dd723000 100644 (file)
 #include <stdlib.h>
 #include <unistd.h>
 #include <sched.h>
-#include <ust/marker.h>
 #include <time.h>
 
+#ifdef TRACING
+#define TRACEPOINT_DEFINE
+#include "ust_tests_benchmark.h"
+#endif
+
 static int nr_cpus;
 static unsigned long nr_events;
 
@@ -44,8 +48,8 @@ void do_stuff(void)
        fclose(file);
        time(NULL);
 
-#ifdef MARKER
-       ust_marker(event, "event %d", v);
+#ifdef TRACING
+       tracepoint(ust_tests_benchmark, tpbench, v);
 #endif
 
 }
This page took 0.02275 seconds and 4 git commands to generate.