From: Mathieu Desnoyers Date: Wed, 13 Apr 2011 18:01:01 +0000 (-0400) Subject: Test empty argument tracepoint X-Git-Tag: v0.13~30 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ad5c7b826145e951950bd1afa6fce17ea193bb48;p=ust.git Test empty argument tracepoint Signed-off-by: Mathieu Desnoyers Acked-by: Nils Carlson --- diff --git a/tests/hello/tp.c b/tests/hello/tp.c index ec3e7ac..4eb7a27 100644 --- 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); } +void tptest2_probe(void *data) +{ +} + static void __attribute__((constructor)) init() { DBG("connecting tracepoint...\n"); register_tracepoint(hello_tptest, tptest_probe, &hello_struct); + register_tracepoint(hello_tptest2, tptest2_probe, &hello_struct); } diff --git a/tests/hello/tp.h b/tests/hello/tp.h index f34f305..7381951 100644 --- a/tests/hello/tp.h +++ b/tests/hello/tp.h @@ -20,3 +20,5 @@ DECLARE_TRACE(hello_tptest, TP_PROTO(int anint), TP_ARGS(anint)); + +DECLARE_TRACE_NOARGS(hello_tptest2);