X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregister_test%2Fregister_test.c;h=8198a2c451ace4cc7b4ff5c3244823e1046e1054;hb=8d71973c9b5596f5732741975d4334a3abb3ba2a;hp=b593185e707f8d4c0f1cef55110f8453cda820b5;hpb=fbae86d664c12e450d3cb702b602701d37781b41;p=ust.git diff --git a/tests/register_test/register_test.c b/tests/register_test/register_test.c index b593185..8198a2c 100644 --- a/tests/register_test/register_test.c +++ b/tests/register_test/register_test.c @@ -27,10 +27,9 @@ #include #include "usterr.h" -#include "tracer.h" #include "tp.h" -DEFINE_TRACE(hello_tptest); +DEFINE_TRACEPOINT(hello_tptest); struct hello_trace_struct { @@ -55,7 +54,7 @@ void tptest_probe(void *data, int anint) static void * register_thread_main(void *data) { - int ret, i, j = 0; + int i, j = 0; struct hello_trace_struct hello[HELLO_LENGTH]; @@ -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(®ister_thread, NULL, register_thread_main, NULL); for(i=0; i<1000000; i++) { - trace_hello_tptest(i); + tracepoint(hello_tptest, i); } return 0;