Tracepoints: Introduce DEFINE/DECLARE_TRACEPOINT, TRACEPOINT_EVENT...
[ust.git] / tests / tracepoint / tracepoint_test.c
index 88fa10b00916877b328ec4240e26ea96e0937483..34cdb115dd32e8bfbe88927eab7263294d5fbe8c 100644 (file)
@@ -32,8 +32,8 @@
 #include <ust/marker.h>
 #include "tracepoint_test.h"
 
-DEFINE_TRACE(ust_event);
-DEFINE_TRACE(ust_event2);
+DEFINE_TRACEPOINT(ust_event);
+DEFINE_TRACEPOINT(ust_event2);
 
 static struct message msg_probe3 = {
        .payload = "probe3",
@@ -90,18 +90,18 @@ void tp_probe(void *data, unsigned int p1)
 
 static void __attribute__((constructor)) init()
 {
-       register_trace_ust_event(tp_probe, NULL);
-       register_trace_ust_event(tp_probe2, NULL);
-       register_trace_ust_event(tp_probe3, &msg_probe3);
-       register_trace_ust_event2(tp_probe4, NULL);
+       register_tracepoint(ust_event, tp_probe, NULL);
+       register_tracepoint(ust_event, tp_probe2, NULL);
+       register_tracepoint(ust_event, tp_probe3, &msg_probe3);
+       register_tracepoint(ust_event2, tp_probe4, NULL);
 }
 
 int main(int argc, char **argv) {
        unsigned int v = 42;
        /* Tracepoint 1 : ust_event */
-       trace_ust_event(v);
+       tracepoint(ust_event, v);
        /* Tracepoint 2 : ust_event2 */
-       trace_ust_event2(v);
+       tracepoint(ust_event2, v);
 
        return 0;
 }
This page took 0.022804 seconds and 4 git commands to generate.