| 1 |
# ppc32_timer_create ________________________________________ |
| 2 |
# |
| 3 |
# long ppc32_timer_create(clockid_t clock, |
| 4 |
# struct compat_sigevent __user *ev32, |
| 5 |
# timer_t __user *timer_id) |
| 6 |
# |
| 7 |
|
| 8 |
@define _SYSCALL_PPC32_TIMER_CREATE_NAME |
| 9 |
%( |
| 10 |
name = "ppc32_timer_create" |
| 11 |
%) |
| 12 |
|
| 13 |
@define _SYSCALL_PPC32_TIMER_CREATE_ARGSTR |
| 14 |
%( |
| 15 |
argstr = sprintf("%d, %p, %p", which_clock, |
| 16 |
timer_event_spec, created_timer_id) |
| 17 |
%) |
| 18 |
|
| 19 |
probe syscall.ppc32_timer_create = dw_syscall.ppc32_timer_create !, |
| 20 |
nd_syscall.ppc32_timer_create ? {} |
| 21 |
probe syscall.ppc32_timer_create.return = dw_syscall.ppc32_timer_create.return !, |
| 22 |
nd_syscall.ppc32_timer_create.return ? {} |
| 23 |
|
| 24 |
# dw_ppc32_timer_create _____________________________________________________ |
| 25 |
|
| 26 |
probe dw_syscall.ppc32_timer_create = kernel.function("ppc32_timer_create") ? |
| 27 |
{ |
| 28 |
@_SYSCALL_PPC32_TIMER_CREATE_NAME |
| 29 |
which_clock = $clock |
| 30 |
timer_event_spec = $ev32 |
| 31 |
created_timer_id = $timer_id |
| 32 |
@_SYSCALL_PPC32_TIMER_CREATE_ARGSTR |
| 33 |
} |
| 34 |
probe dw_syscall.ppc32_timer_create.return = kernel.function("ppc32_timer_create").return ? |
| 35 |
{ |
| 36 |
@_SYSCALL_PPC32_TIMER_CREATE_NAME |
| 37 |
@SYSC_RETVALSTR($return) |
| 38 |
} |
| 39 |
|
| 40 |
# nd_ppc32_timer_create _____________________________________________________ |
| 41 |
|
| 42 |
probe nd_syscall.ppc32_timer_create = kprobe.function("ppc32_timer_create") ? |
| 43 |
{ |
| 44 |
@_SYSCALL_PPC32_TIMER_CREATE_NAME |
| 45 |
asmlinkage() |
| 46 |
which_clock = int_arg(1) |
| 47 |
timer_event_spec = pointer_arg(2) |
| 48 |
created_timer_id = pointer_arg(3) |
| 49 |
@_SYSCALL_PPC32_TIMER_CREATE_ARGSTR |
| 50 |
} |
| 51 |
probe nd_syscall.ppc32_timer_create.return = kprobe.function("ppc32_timer_create").return ? |
| 52 |
{ |
| 53 |
@_SYSCALL_PPC32_TIMER_CREATE_NAME |
| 54 |
@SYSC_RETVALSTR(returnval()) |
| 55 |
} |