X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=hello%2Fhello.c;h=0533173dee211171e320d5868eeb325240121643;hb=688760ef257bee85e3841e0d27ecf4e2f921ef00;hp=3bbb2bd94961523bb7721fae991ef5a5740e423a;hpb=811e4b93ba6acb72226a9243ae9a525f444e7e80;p=ust.git diff --git a/hello/hello.c b/hello/hello.c index 3bbb2bd..0533173 100644 --- a/hello/hello.c +++ b/hello/hello.c @@ -63,7 +63,7 @@ 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); usleep(100000); @@ -71,6 +71,12 @@ int main() scanf("%*s"); + ltt_trace_stop("auto"); + ltt_trace_destroy("auto"); + + DBG("TRACE STOPPED"); + scanf("%*s"); + return 0; }