X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=hello%2Fhello.c;h=821bed33ea436ed081bb19c0e8f012be9daab9f1;hb=1f8b0dffac11b11fa7b582b6274c6b4cadf57bb3;hp=88087dff3a1a6d36488310f0135e4eba7e58e76e;hpb=a584bc4edb73e3f4c0023c42f2fdbc816fb6eab0;p=lttng-ust.git diff --git a/hello/hello.c b/hello/hello.c index 88087dff..821bed33 100644 --- a/hello/hello.c +++ b/hello/hello.c @@ -6,21 +6,14 @@ #include #include -#include "../libmarkers/marker.h" +#include "marker.h" #include "usterr.h" #include "tracer.h" #include "marker-control.h" #include "relay.h" +#include "tp.h" - -void probe(const struct marker *mdata, - void *probe_private, void *call_private, - const char *fmt, va_list *args) -{ - printf("In probe\n"); -} - void inthandler(int sig) { printf("in handler\n"); @@ -66,12 +59,20 @@ int main() for(i=0; i<50; i++) { trace_mark(ust, bar, "str %s", "FOOBAZ"); trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800); + trace_hello_tptest(i); usleep(100000); } scanf("%*s"); + ltt_trace_stop("auto"); + ltt_trace_destroy("auto"); + + DBG("TRACE STOPPED"); + scanf("%*s"); + return 0; } -MARKER_LIB +MARKER_LIB; +TRACEPOINT_LIB;