diff options
author | Stan Cox <scox@redhat.com> | 2009-03-02 21:38:26 -0500 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-03-02 21:38:26 -0500 |
commit | e85c70f82c134bf18ae845e3b1bfc15415591225 (patch) | |
tree | 971925e9bb95b127bf0f7db7648cdd66c0eed22c /dtrace | |
parent | 684570b0277ce771fc66bcfdbe352eeaa541786d (diff) | |
download | systemtap-steved-e85c70f82c134bf18ae845e3b1bfc15415591225.tar.gz systemtap-steved-e85c70f82c134bf18ae845e3b1bfc15415591225.tar.xz systemtap-steved-e85c70f82c134bf18ae845e3b1bfc15415591225.zip |
Allow the same static user probe to be used multiple times per line.
* dtrace (provider): Add STAP_PROBE10.
* includes/sys/sdt.h: Likewise. Convert labels to __label__
Diffstat (limited to 'dtrace')
-rwxr-xr-x | dtrace | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -73,6 +73,15 @@ class provider: self.h.write ('#define %s(arg1,arg2,arg3,arg4,arg5) STAP_PROBE%d(provider,%s,arg1,arg2,arg3,arg4,arg5)\n' % (this_probe_canon, c+1, this_probe)) elif (c == 5): self.h.write ('#define %s(arg1,arg2,arg3,arg4,arg5,arg6) STAP_PROBE%d(provider,%s,arg1,arg2,arg3,arg4,arg5,arg6)\n' % (this_probe_canon, c+1, this_probe)) + elif (c == 6): + self.h.write ('#define %s(arg1,arg2,arg3,arg4,arg5,arg6,arg7) STAP_PROBE%d(provider,%s,arg1,arg2,arg3,arg4,arg5,arg6,arg7)\n' % (this_probe_canon, c+1, this_probe)) + elif (c == 7): + self.h.write ('#define %s(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) STAP_PROBE%d(provider,%s,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)\n' % (this_probe_canon, c+1, this_probe)) + elif (c == 8): + self.h.write ('#define %s(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) STAP_PROBE%d(provider,%s,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9)\n' % (this_probe_canon, c+1, this_probe)) + elif (c == 9): + self.h.write('// X %d %s\n' % (c+1,this_probe_canon)) + self.h.write ('#define %s(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) STAP_PROBE%d(provider,%s,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)\n' % (this_probe_canon, c+1, this_probe)) self.h.write ('#define %s_ENABLED() 1\n' % this_probe_canon) def get(self, arg): |