void *thr1(void *arg)
{
+ lttng_thread_init();
printf("thread 1, thread id : %lu, pid %lu\n", pthread_self(), getpid());
while(1) {}
void *thr2(void *arg)
{
+ lttng_thread_init();
+
while(1) {
printf("thread 2, thread id : %lu, pid %lu\n", pthread_self(), getpid());
sleep(2);
pthread_t tid1, tid2;
void *tret;
+ printf("thread main, thread id : %lu, pid %lu\n", pthread_self(), getpid());
err = pthread_create(&tid1, NULL, thr1, NULL);
if(err!=0) exit(1);