Tracepoints: Introduce DEFINE/DECLARE_TRACEPOINT, TRACEPOINT_EVENT...
[ust.git] / tests / register_test / register_test.c
index d5cd352afeaadd3362ab338d4e93d4479440c3c8..8198a2c451ace4cc7b4ff5c3244823e1046e1054 100644 (file)
 
 #include <ust/marker.h>
 #include "usterr.h"
-#include "tracer.h"
 #include "tp.h"
 
-DEFINE_TRACE(hello_tptest);
+DEFINE_TRACEPOINT(hello_tptest);
 
 
 struct hello_trace_struct {
@@ -66,13 +65,13 @@ static void * register_thread_main(void *data)
        }
 
        for (i=0; i<1000; i++) {
-               while (!register_trace_hello_tptest(tptest_probe,
+               while (!register_tracepoint(hello_tptest, tptest_probe,
                                                    &hello[j%HELLO_LENGTH])) {
                        usleep(10);
                        j++;
                }
                printf("Registered all\n");
-               while (!unregister_trace_hello_tptest(tptest_probe,
+               while (!unregister_tracepoint(hello_tptest, tptest_probe,
                                                      &hello[j%HELLO_LENGTH])) {
                        usleep(10);
                        j++;
@@ -90,7 +89,7 @@ int main(int argc, char **argv)
 
        pthread_create(&register_thread, NULL, register_thread_main, NULL);
        for(i=0; i<1000000; i++) {
-               trace_hello_tptest(i);
+               tracepoint(hello_tptest, i);
        }
 
        return 0;
This page took 0.023828 seconds and 4 git commands to generate.