X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fhello%2Ftp.c;h=05cd7a2d703997a9ea65260527d73e806ed7ed8b;hb=8d71973c9b5596f5732741975d4334a3abb3ba2a;hp=ec3e7ac73e5263733cdc8ad6e31578eb64a5c17b;hpb=cc7b66ba103c213a84159c2128cd4096507bdd2b;p=ust.git diff --git a/tests/hello/tp.c b/tests/hello/tp.c index ec3e7ac..05cd7a2 100644 --- a/tests/hello/tp.c +++ b/tests/hello/tp.c @@ -27,7 +27,7 @@ struct hello_trace_struct hello_struct = { .message = "ehlo\n", }; -DEFINE_TRACE(hello_tptest); +DEFINE_TRACEPOINT(hello_tptest); void tptest_probe(void *data, int anint) { @@ -37,8 +37,13 @@ void tptest_probe(void *data, int anint) printf("this is the message: %s\n", hello->message); } +void tptest2_probe(void *data) +{ +} + static void __attribute__((constructor)) init() { DBG("connecting tracepoint...\n"); register_tracepoint(hello_tptest, tptest_probe, &hello_struct); + register_tracepoint(hello_tptest2, tptest2_probe, &hello_struct); }