From 7459222ac78c139918b6c9297634742ed975959f Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Tue, 29 Sep 2009 13:05:54 +0800 Subject: 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. --- tapset/x86_64/nd_syscalls.stp | 2 ++ tapset/x86_64/syscalls.stp | 2 ++ 2 files changed, 4 insertions(+) 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) } +%) -- cgit