projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test empty argument tracepoint
[ust.git]
/
tests
/
hello
/
tp.c
diff --git
a/tests/hello/tp.c
b/tests/hello/tp.c
index 3a4c6fcaf15ac93ff85b183ba8dc3dbeeedb6036..4eb7a27463e36b89e63a1ba1a9eea71ff8b25087 100644
(file)
--- a/
tests/hello/tp.c
+++ b/
tests/hello/tp.c
@@
-37,8
+37,13
@@
void tptest_probe(void *data, int anint)
printf("this is the message: %s\n", hello->message);
}
printf("this is the message: %s\n", hello->message);
}
+void tptest2_probe(void *data)
+{
+}
+
static void __attribute__((constructor)) init()
{
DBG("connecting tracepoint...\n");
static void __attribute__((constructor)) init()
{
DBG("connecting tracepoint...\n");
- register_trace_hello_tptest(tptest_probe, &hello_struct);
+ register_tracepoint(hello_tptest, tptest_probe, &hello_struct);
+ register_tracepoint(hello_tptest2, tptest2_probe, &hello_struct);
}
}
This page took
0.022766 seconds
and
4
git commands to generate.