diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-09-29 13:05:54 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-09-29 13:05:54 +0800 |
commit | 7459222ac78c139918b6c9297634742ed975959f (patch) | |
tree | be05bab366b807a221f07f66818bef50a854f2ad /tapset/x86_64 | |
parent | 1b51c98091d52ccc890c36bb32ef74bf4c7b0f35 (diff) | |
download | systemtap-steved-7459222ac78c139918b6c9297634742ed975959f.tar.gz systemtap-steved-7459222ac78c139918b6c9297634742ed975959f.tar.xz systemtap-steved-7459222ac78c139918b6c9297634742ed975959f.zip |
Make sys32_pipe probe available only before 2.6.32
* tapset/x86_64/nd_syscalls.stp: Switch by kernel version.
* tapset/x86_64/syscalls.stp: Ditto.
Diffstat (limited to 'tapset/x86_64')
-rw-r--r-- | tapset/x86_64/nd_syscalls.stp | 2 | ||||
-rw-r--r-- | tapset/x86_64/syscalls.stp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tapset/x86_64/nd_syscalls.stp b/tapset/x86_64/nd_syscalls.stp index 6a3a984b..a8157160 100644 --- a/tapset/x86_64/nd_syscalls.stp +++ b/tapset/x86_64/nd_syscalls.stp @@ -173,6 +173,7 @@ probe nd_syscall.vm86_warning.return = kprobe.function("sys32_vm86_warning").ret # # long sys32_pipe(int __user *fd) # +%(kernel_v < "2.6.32" %? probe nd_syscall.pipe32 = kprobe.function("sys32_pipe") { name = "pipe" @@ -185,3 +186,4 @@ probe nd_syscall.pipe32.return = kprobe.function("sys32_pipe").return name = "pipe" retstr = returnstr(1) } +%) diff --git a/tapset/x86_64/syscalls.stp b/tapset/x86_64/syscalls.stp index c0cb8139..c120e965 100644 --- a/tapset/x86_64/syscalls.stp +++ b/tapset/x86_64/syscalls.stp @@ -146,6 +146,7 @@ probe syscall.vm86_warning.return = kernel.function("sys32_vm86_warning").return # # long sys32_pipe(int __user *fd) # +%(kernel_v < "2.6.32" %? probe syscall.pipe32 = kernel.function("sys32_pipe") { name = "pipe" @@ -156,3 +157,4 @@ probe syscall.pipe32.return = kernel.function("sys32_pipe").return name = "pipe" retstr = returnstr(1) } +%) |