Test empty argument tracepoint
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 13 Apr 2011 18:01:01 +0000 (14:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 13 Apr 2011 18:01:01 +0000 (14:01 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Nils Carlson <nils.carlson@ericsson.com>
tests/hello/tp.c
tests/hello/tp.h

index ec3e7ac73e5263733cdc8ad6e31578eb64a5c17b..4eb7a27463e36b89e63a1ba1a9eea71ff8b25087 100644 (file)
@@ -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 f34f305410e082668a2fc42981c2509e90469f21..73819514d3e266512177bc09aa531228a074ff36 100644 (file)
@@ -20,3 +20,5 @@
 DECLARE_TRACE(hello_tptest,
              TP_PROTO(int anint),
              TP_ARGS(anint));
+
+DECLARE_TRACE_NOARGS(hello_tptest2);
This page took 0.025492 seconds and 4 git commands to generate.