projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoints: add wrapper tracepoint() macro
[ust.git]
/
tests
/
register_test
/
register_test.c
diff --git
a/tests/register_test/register_test.c
b/tests/register_test/register_test.c
index 4d1f0fe7e80a6f2df1b525bd8a20743462bc6cb6..02225deb56fa32fc9fe780c0137d82006fce4463 100644
(file)
--- a/
tests/register_test/register_test.c
+++ b/
tests/register_test/register_test.c
@@
-65,13
+65,13
@@
static void * register_thread_main(void *data)
}
for (i=0; i<1000; i++) {
}
for (i=0; i<1000; i++) {
- while (!register_trace
_hello_tptest(
tptest_probe,
+ while (!register_trace
point(hello_tptest,
tptest_probe,
&hello[j%HELLO_LENGTH])) {
usleep(10);
j++;
}
printf("Registered all\n");
&hello[j%HELLO_LENGTH])) {
usleep(10);
j++;
}
printf("Registered all\n");
- while (!unregister_trace
_hello_tptest(
tptest_probe,
+ while (!unregister_trace
point(hello_tptest,
tptest_probe,
&hello[j%HELLO_LENGTH])) {
usleep(10);
j++;
&hello[j%HELLO_LENGTH])) {
usleep(10);
j++;
@@
-89,7
+89,7
@@
int main(int argc, char **argv)
pthread_create(®ister_thread, NULL, register_thread_main, NULL);
for(i=0; i<1000000; i++) {
pthread_create(®ister_thread, NULL, register_thread_main, NULL);
for(i=0; i<1000000; i++) {
- trace
_hello_tptest(
i);
+ trace
point(hello_tptest,
i);
}
return 0;
}
return 0;
This page took
0.025553 seconds
and
4
git commands to generate.