Tracepoint API namespacing 'TRACEPOINT_DEFINE'
[lttng-ust.git] / tests / compile / test-app-ctx / hello.c
index be63ecbc2dcfe1ef2a3c2af53a9ecbbc8f0674dc..723f179f4809c9e8d13d8f1718eb1650ee4583ae 100644 (file)
@@ -25,7 +25,7 @@ struct mmsghdr;
 #include <stdlib.h>
 #include <stdbool.h>
 
-#define TRACEPOINT_DEFINE
+#define LTTNG_UST_TRACEPOINT_DEFINE
 #include "ust_tests_hello.h"
 
 #include <lttng/ust-events.h>
@@ -256,7 +256,7 @@ static
 void inthandler(int sig __attribute__((unused)))
 {
        printf("in SIGUSR1 handler\n");
-       tracepoint(ust_tests_hello, tptest_sighandler);
+       lttng_ust_tracepoint(ust_tests_hello, tptest_sighandler);
 }
 
 static
@@ -314,7 +314,7 @@ int main(int argc, char **argv)
        fprintf(stderr, "Tracing... ");
        for (i = 0; i < 1000000; i++) {
                netint = htonl(i);
-               tracepoint(ust_tests_hello, tptest, i, netint, values,
+               lttng_ust_tracepoint(ust_tests_hello, tptest, i, netint, values,
                           text, strlen(text), dbl, flt, mybool);
                test_inc_count();
                //usleep(100000);
This page took 0.023341 seconds and 4 git commands to generate.