projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only facilities missing
[lttv.git]
/
usertrace-fast
/
test.c
diff --git
a/usertrace-fast/test.c
b/usertrace-fast/test.c
index 898b86af6402d0521f31da7fabdcf9b711384182..8ac69eb5d7c1759763f3003a7f31eb2aaf083a8d 100644
(file)
--- a/
usertrace-fast/test.c
+++ b/
usertrace-fast/test.c
@@
-16,12
+16,12
@@
void *thr1(void *arg)
//while(1) {}
for(i=0; i<5; i++) {
//while(1) {}
for(i=0; i<5; i++) {
-
ltt_usertrace_fast_buffer_switch();
+
//
ltt_usertrace_fast_buffer_switch();
sleep(1);
}
//return ((void*)1);
sleep(1);
}
//return ((void*)1);
-
//
pthread_exit((void*)1);
+ pthread_exit((void*)1);
}
void *thr2(void *arg)
}
void *thr2(void *arg)
@@
-32,14
+32,14
@@
void *thr2(void *arg)
printf("thread 2, thread id : %lu, pid %lu\n", pthread_self(), getpid());
sleep(2);
//}
printf("thread 2, thread id : %lu, pid %lu\n", pthread_self(), getpid());
sleep(2);
//}
- //return ((void*)2);
- //pthread_exit((void*)2);
for(i=0; i<2; i++) {
for(i=0; i<2; i++) {
-
ltt_usertrace_fast_buffer_switch();
+
//
ltt_usertrace_fast_buffer_switch();
sleep(3);
}
sleep(3);
}
+ return ((void*)2); /* testing "die" */
+ //pthread_exit((void*)2);
}
}
@@
-58,7
+58,7
@@
int main()
if(err!=0) exit(1);
for(i=0; i<2; i++) {
if(err!=0) exit(1);
for(i=0; i<2; i++) {
-
ltt_usertrace_fast_buffer_switch();
+
//
ltt_usertrace_fast_buffer_switch();
sleep(3);
}
sleep(3);
}
This page took
0.023757 seconds
and
4
git commands to generate.