summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-03-18 18:51:17 -0700
committerJosh Stone <jistone@redhat.com>2009-03-18 18:51:17 -0700
commit8df306c4443bd9dd1397bab6cba7f61cb2d88af9 (patch)
treed68f6b39b34259aa188575dc46607fcfa27b3081
parentfab6ce30772ec0c45f7d5e295a6e09c95971e9f5 (diff)
downloadsystemtap-steved-8df306c4443bd9dd1397bab6cba7f61cb2d88af9.tar.gz
systemtap-steved-8df306c4443bd9dd1397bab6cba7f61cb2d88af9.tar.xz
systemtap-steved-8df306c4443bd9dd1397bab6cba7f61cb2d88af9.zip
Support tracepoints with no arguments
LTTng has a few tracepoints without any arguments, which caused our compile to fail, claiming that our entry function was not a declaration. This just adds an explicit (void) argument list for that case.
-rw-r--r--tapsets.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 2f940b29..2548625b 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -9739,6 +9739,8 @@ tracepoint_derived_probe_group::emit_module_decls (systemtap_session& s)
// don't provide any sort of context pointer.
s.op->newline() << "#include <" << p->header << ">";
s.op->newline() << "static void enter_tracepoint_probe_" << i << "(";
+ if (p->args.size() == 0)
+ s.op->line() << "void";
for (unsigned j = 0; j < p->args.size(); ++j)
{
if (j > 0)