add usertrace-fast
[lttv.git] / usertrace-fast / test.c
index 33937f3bef418daa8a4b6e18df5d6ae50c3bd810..2bd12e130adcf413e6b4c9b628301da1958d5a70 100644 (file)
@@ -4,12 +4,13 @@
 #include <unistd.h>
 #include <stdlib.h>
 
-#include "lttng_usertrace.h"
+#include "ltt-usertrace-fast.h"
 
 
 
 void *thr1(void *arg)
 {
+       ltt_thread_init();
   printf("thread 1, thread id : %lu, pid %lu\n", pthread_self(), getpid());
 
   while(1) {}
@@ -20,6 +21,7 @@ void *thr1(void *arg)
 
 void *thr2(void *arg)
 {
+       ltt_thread_init();
   while(1) {
     printf("thread 2, thread id : %lu, pid %lu\n", pthread_self(), getpid());
     sleep(2);
This page took 0.022224 seconds and 4 git commands to generate.