From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [ltt-dev] [UST PATCH] Test empty argument tracepoint
Date: Sun, 10 Apr 2011 19:21:11 -0400 [thread overview]
Message-ID: <20110410232111.GC3432@Krystal> (raw)
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
next reply other threads:[~2011-04-10 23:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-10 23:21 Mathieu Desnoyers [this message]
2011-04-11 12:07 ` Nils Carlson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110410232111.GC3432@Krystal \
--to=mathieu.desnoyers@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox