| 1 |
# compat_set_mempolicy ________________________________________ |
| 2 |
# |
| 3 |
# asmlinkage long compat_set_mempolicy(int mode, compat_ulong_t __user *nmask, |
| 4 |
# compat_ulong_t maxnode) |
| 5 |
# |
| 6 |
|
| 7 |
@define _SYSCALL_COMPAT_SET_MEMPOLICY_NAME |
| 8 |
%( |
| 9 |
name = "compat_set_mempolicy" |
| 10 |
%) |
| 11 |
|
| 12 |
@define _SYSCALL_COMPAT_SET_MEMPOLICY_ARGSTR |
| 13 |
%( |
| 14 |
argstr = sprintf("%d, %p, %d", policy, nodemask_uaddr, maxnode) |
| 15 |
%) |
| 16 |
|
| 17 |
probe syscall.compat_set_mempolicy = dw_syscall.compat_set_mempolicy !, |
| 18 |
nd_syscall.compat_set_mempolicy ? {} |
| 19 |
probe syscall.compat_set_mempolicy.return = dw_syscall.compat_set_mempolicy.return !, |
| 20 |
nd_syscall.compat_set_mempolicy.return ? {} |
| 21 |
|
| 22 |
# dw_compat_set_mempolicy _____________________________________________________ |
| 23 |
|
| 24 |
probe dw_syscall.compat_set_mempolicy = kernel.function("compat_set_mempolicy") ? |
| 25 |
{ |
| 26 |
@_SYSCALL_COMPAT_SET_MEMPOLICY_NAME |
| 27 |
policy = $mode |
| 28 |
nodemask_uaddr = $nmask |
| 29 |
maxnode = $maxnode |
| 30 |
@_SYSCALL_COMPAT_SET_MEMPOLICY_ARGSTR |
| 31 |
} |
| 32 |
probe dw_syscall.compat_set_mempolicy.return = kernel.function("compat_set_mempolicy").return ? |
| 33 |
{ |
| 34 |
@_SYSCALL_COMPAT_SET_MEMPOLICY_NAME |
| 35 |
@SYSC_RETVALSTR($return) |
| 36 |
} |
| 37 |
|
| 38 |
# nd_compat_set_mempolicy _____________________________________________________ |
| 39 |
|
| 40 |
probe nd_syscall.compat_set_mempolicy = kprobe.function("compat_set_mempolicy") ? |
| 41 |
{ |
| 42 |
@_SYSCALL_COMPAT_SET_MEMPOLICY_NAME |
| 43 |
asmlinkage() |
| 44 |
policy = int_arg(1) |
| 45 |
nodemask_uaddr = uint_arg(2) |
| 46 |
maxnode = uint_arg(3) |
| 47 |
@_SYSCALL_COMPAT_SET_MEMPOLICY_ARGSTR |
| 48 |
} |
| 49 |
probe nd_syscall.compat_set_mempolicy.return = kprobe.function("compat_set_mempolicy").return ? |
| 50 |
{ |
| 51 |
@_SYSCALL_COMPAT_SET_MEMPOLICY_NAME |
| 52 |
@SYSC_RETVALSTR(returnval()) |
| 53 |
} |