[ltt-dev] [UST PATCH] Test empty argument tracepoint

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Sun Apr 10 19:21:11 EDT 2011


Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
CC: Nils Carlson <nils.carlson at ericsson.com>
---
 tests/hello/tp.c |    5 +++++
 tests/hello/tp.h |    2 ++
 2 files changed, 7 insertions(+)

Index: ust/tests/hello/tp.c
===================================================================
--- ust.orig/tests/hello/tp.c
+++ ust/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);
 }
Index: ust/tests/hello/tp.h
===================================================================
--- ust.orig/tests/hello/tp.h
+++ ust/tests/hello/tp.h
@@ -20,3 +20,5 @@
 DECLARE_TRACE(hello_tptest,
 	      TP_PROTO(int anint),
 	      TP_ARGS(anint));
+
+DECLARE_TRACE_NOARGS(hello_tptest2);

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




More information about the lttng-dev mailing list