X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fhello%2Ftp.c;fp=tests%2Fhello%2Ftp.c;h=2ee7392b192f3aee81b602b313219682dfaea1d4;hb=6dd969b5dd702909b8eb827e850c851053774055;hp=0000000000000000000000000000000000000000;hpb=270c6b98e626861fece078f57a85462fd6cb020c;p=ust.git diff --git a/tests/hello/tp.c b/tests/hello/tp.c new file mode 100644 index 0000000..2ee7392 --- /dev/null +++ b/tests/hello/tp.c @@ -0,0 +1,17 @@ +#include "tp.h" +#include "marker.h" +#include "usterr.h" + +DEFINE_TRACE(hello_tptest); + +void tptest_probe(int anint) +{ + DBG("in tracepoint probe..."); + trace_mark(ust, tptest, "anint %d", anint); +} + +static void __attribute__((constructor)) init() +{ + DBG("connecting tracepoint..."); + register_trace_hello_tptest(tptest_probe); +}