X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=hello%2Fhello.c;h=102b7db258ce566daff95bc2ce540c629a75d1f8;hb=afa28e0364b5132f3473ff08d9bca2026e723b41;hp=3bbb2bd94961523bb7721fae991ef5a5740e423a;hpb=d0b5f2b948ed0da3f8acd10817f85f5200749121;p=ust.git diff --git a/hello/hello.c b/hello/hello.c index 3bbb2bd..102b7db 100644 --- a/hello/hello.c +++ b/hello/hello.c @@ -5,22 +5,16 @@ #include #include #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"); @@ -63,15 +57,23 @@ int main() printf("Hello, World!\n"); sleep(1); - for(i=0; i<5000; i++) { + 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;