summaryrefslogtreecommitdiffstats
path: root/dtrace
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2009-02-18 18:00:42 -0500
committerStan Cox <scox@redhat.com>2009-02-18 18:00:42 -0500
commit59b2ec52534f90cf22a741cfb482b36f9dcb6a78 (patch)
treef0329c6e254038b5cd0a967dd662c477a9c30772 /dtrace
parent37d42f2a8792be9c25a71b2ad6b4c55252a1b204 (diff)
downloadsystemtap-steved-59b2ec52534f90cf22a741cfb482b36f9dcb6a78.tar.gz
systemtap-steved-59b2ec52534f90cf22a741cfb482b36f9dcb6a78.tar.xz
systemtap-steved-59b2ec52534f90cf22a741cfb482b36f9dcb6a78.zip
Always emit .probes section; use .label method as a backup strategy
Diffstat (limited to 'dtrace')
-rwxr-xr-xdtrace3
1 files changed, 2 insertions, 1 deletions
diff --git a/dtrace b/dtrace
index 46da93a8..d6d5ce21 100755
--- a/dtrace
+++ b/dtrace
@@ -60,7 +60,7 @@ class provider:
if (len(new_args) > 0):
self.arglist[this_probe] = ('%s arg%d' % (new_args, c))
if (len(new_args) == 0):
- self.h.write ('#define %s STAP_PROBE(provider,%s)\n' % (this_probe_canon, this_probe))
+ self.h.write ('#define %s() STAP_PROBE(provider,%s)\n' % (this_probe_canon, this_probe))
elif (c == 0):
self.h.write ('#define %s(arg1) STAP_PROBE%d(provider,%s,arg1)\n' % (this_probe_canon, c+1, this_probe))
elif (c == 1):
@@ -125,6 +125,7 @@ if (build_header == False and build_source == False):
if (filename == ""):
if (s_filename != ""):
(filename,ext) = os.path.splitext(s_filename)
+ filename = os.path.basename(filename)
if (build_header):
filename = filename + ".h"
elif (build_source):