summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
Diffstat (limited to 'tapset')
-rw-r--r--tapset/syscalls2.stp30
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)
}