| 1 |
# ppc_rtas ________________________________________ |
| 2 |
# |
| 3 |
# int ppc_rtas(struct rtas_args __user *uargs) |
| 4 |
# |
| 5 |
|
| 6 |
@define _SYSCALL_PPC_RTAS_NAME |
| 7 |
%( |
| 8 |
name = "ppc_rtas" |
| 9 |
%) |
| 10 |
|
| 11 |
@define _SYSCALL_PPC_RTAS_ARGSTR |
| 12 |
%( |
| 13 |
argstr = sprintf("%p", uargs_uaddr) |
| 14 |
%) |
| 15 |
|
| 16 |
probe syscall.ppc_rtas = dw_syscall.ppc_rtas !, |
| 17 |
nd_syscall.ppc_rtas ? {} |
| 18 |
probe syscall.ppc_rtas.return = dw_syscall.ppc_rtas.return !, |
| 19 |
nd_syscall.ppc_rtas.return ? {} |
| 20 |
|
| 21 |
# dw_ppc_rtas _____________________________________________________ |
| 22 |
|
| 23 |
probe dw_syscall.ppc_rtas = kernel.function("ppc_rtas") ? |
| 24 |
{ |
| 25 |
@_SYSCALL_PPC_RTAS_NAME |
| 26 |
uargs_uaddr = $uargs |
| 27 |
@_SYSCALL_PPC_RTAS_ARGSTR |
| 28 |
} |
| 29 |
probe dw_syscall.ppc_rtas.return = kernel.function("ppc_rtas").return ? |
| 30 |
{ |
| 31 |
@_SYSCALL_PPC_RTAS_NAME |
| 32 |
@SYSC_RETVALSTR($return) |
| 33 |
} |
| 34 |
|
| 35 |
# nd_ppc_rtas _____________________________________________________ |
| 36 |
|
| 37 |
probe nd_syscall.ppc_rtas = kprobe.function("ppc_rtas") ? |
| 38 |
{ |
| 39 |
@_SYSCALL_PPC_RTAS_NAME |
| 40 |
asmlinkage() |
| 41 |
uargs_uaddr = pointer_arg(1) |
| 42 |
@_SYSCALL_PPC_RTAS_ARGSTR |
| 43 |
} |
| 44 |
probe nd_syscall.ppc_rtas.return = kprobe.function("ppc_rtas").return ? |
| 45 |
{ |
| 46 |
@_SYSCALL_PPC_RTAS_NAME |
| 47 |
@SYSC_RETVALSTR(returnval()) |
| 48 |
} |