X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fhello%2Ftp.c;h=71a01c811d4345dda991e895122c830c32a6b480;hb=51c5df09105025dc696ac5c89a819b73cc52b687;hp=2ee7392b192f3aee81b602b313219682dfaea1d4;hpb=6dd969b5dd702909b8eb827e850c851053774055;p=lttng-ust.git diff --git a/tests/hello/tp.c b/tests/hello/tp.c index 2ee7392b..71a01c81 100644 --- a/tests/hello/tp.c +++ b/tests/hello/tp.c @@ -1,17 +1,17 @@ -#include "tp.h" -#include "marker.h" -#include "usterr.h" +/* + * tp.c + * + * Copyright (c) 2011 Mathieu Desnoyers + * + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. + * + * Permission is hereby granted to use or copy this program + * for any purpose, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is granted, + * provided the above notices are retained, and a notice that the code was + * modified is included with the above copyright notice. + */ -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); -} +#define TRACEPOINT_CREATE_PROBES +#include "ust_tests_hello.h"