diff options
author | zhaolei <zhaolei> | 2007-12-07 09:30:48 +0000 |
---|---|---|
committer | zhaolei <zhaolei> | 2007-12-07 09:30:48 +0000 |
commit | d85139f07dbfdd6d94208f18bdb640c903b3050e (patch) | |
tree | 29703ff409634020ce0d3157166e9048aa6b749d /tapset | |
parent | 556993413339b2db7ef51458c95bbfdcc08f7012 (diff) | |
download | systemtap-steved-d85139f07dbfdd6d94208f18bdb640c903b3050e.tar.gz systemtap-steved-d85139f07dbfdd6d94208f18bdb640c903b3050e.tar.xz systemtap-steved-d85139f07dbfdd6d94208f18bdb640c903b3050e.zip |
2007-12-7 Zhaolei <zhaolei@cn.fujitsu.com>
From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
* syscalls2.stp: Add missed compat* probes in syscalls2.stp.
Diffstat (limited to 'tapset')
-rw-r--r-- | tapset/syscalls2.stp | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/tapset/syscalls2.stp b/tapset/syscalls2.stp index 7029e09c..40410728 100644 --- a/tapset/syscalls2.stp +++ b/tapset/syscalls2.stp @@ -461,7 +461,10 @@ probe syscall.compat_pselect7.return = kernel.function("compat_sys_pselect7").re # long addr, # long data) # -probe syscall.ptrace = kernel.function("sys_ptrace") { +probe syscall.ptrace = + kernel.function("sys_ptrace") ?, + kernel.function("compat_sys_ptrace") ? +{ name = "ptrace" request = $request pid = $pid @@ -470,7 +473,10 @@ probe syscall.ptrace = kernel.function("sys_ptrace") { argstr = sprintf("%p, %p, %p, %p", request, pid, addr, data) } -probe syscall.ptrace.return = kernel.function("sys_ptrace").return { +probe syscall.ptrace.return = + kernel.function("sys_ptrace").return ?, + kernel.function("compat_sys_ptrace").return ? +{ name = "ptrace" retstr = returnstr(1) } @@ -1645,14 +1651,20 @@ probe syscall.compat_setitimer.return = kernel.function("compat_sys_setitimer"). # unsigned long __user *nmask, # unsigned long maxnode) # -probe syscall.set_mempolicy = kernel.function("sys_set_mempolicy") ? { +probe syscall.set_mempolicy = + kernel.function("sys_set_mempolicy") ?, + kernel.function("compat_sys_set_mempolicy") ? +{ name = "set_mempolicy" mode = $mode nmask_uaddr = $nmask maxnode = $maxnode argstr = sprintf("%d, %p, %d", $mode, $nmask, $maxnode) } -probe syscall.set_mempolicy.return = kernel.function("sys_set_mempolicy").return ? { +probe syscall.set_mempolicy.return = + kernel.function("sys_set_mempolicy").return ?, + kernel.function("compat_sys_set_mempolicy").return ? +{ name = "set_mempolicy" retstr = returnstr(1) } @@ -2467,11 +2479,17 @@ probe syscall.sync.return = kernel.function("sys_sync").return { # # long sys_sysctl(struct __sysctl_args __user *args) # -probe syscall.sysctl = kernel.function("sys_sysctl") ? { +probe syscall.sysctl = + kernel.function("sys_sysctl") ?, + kernel.function("compat_sys_sysctl") ? +{ name = "sysctl" argstr = sprintf("%p", $args) } -probe syscall.sysctl.return = kernel.function("sys_sysctl").return ? { +probe syscall.sysctl.return = + kernel.function("sys_sysctl").return ?, + kernel.function("compat_sys_sysctl").return ? +{ name = "sysctl" retstr = returnstr(1) } |