projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing usterr_signal_safe.h to makefile
[ust.git]
/
tests
/
hello
/
tp.c
diff --git
a/tests/hello/tp.c
b/tests/hello/tp.c
index 3a4c6fcaf15ac93ff85b183ba8dc3dbeeedb6036..05cd7a2d703997a9ea65260527d73e806ed7ed8b 100644
(file)
--- a/
tests/hello/tp.c
+++ b/
tests/hello/tp.c
@@
-27,7
+27,7
@@
struct hello_trace_struct hello_struct = {
.message = "ehlo\n",
};
.message = "ehlo\n",
};
-DEFINE_TRACE(hello_tptest);
+DEFINE_TRACE
POINT
(hello_tptest);
void tptest_probe(void *data, int anint)
{
void tptest_probe(void *data, int anint)
{
@@
-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.02275 seconds
and
4
git commands to generate.