1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
# tux ________________________________________________________
# long sys_tux (unsigned int action, user_req_t *u_info)
#
@define _SYSCALL_TUX_NAME
%(
name = "tux"
%)
@define _SYSCALL_TUX_ARGSTR
%(
argstr = sprintf("%d, %p", action, u_info_uaddr)
%)
probe syscall.tux = dw_syscall.tux !, nd_syscall.tux ? {}
probe syscall.tux.return = dw_syscall.tux.return !, nd_syscall.tux.return ? {}
# dw_tux _____________________________________________________
probe dw_syscall.tux = kernel.function("sys_tux").call ?
{
@_SYSCALL_TUX_NAME
action = $action
u_info_uaddr = $u_info
@_SYSCALL_TUX_ARGSTR
}
probe dw_syscall.tux.return = kernel.function("sys_tux").return ?
{
@_SYSCALL_TUX_NAME
@SYSC_RETVALSTR($return)
}
# nd_tux _____________________________________________________
probe nd_syscall.tux = kprobe.function("sys_tux") ?
{
@_SYSCALL_TUX_NAME
asmlinkage()
action = uint_arg(1)
u_info_uaddr = pointer_arg(2)
@_SYSCALL_TUX_ARGSTR
}
probe nd_syscall.tux.return = kprobe.function("sys_tux").return ?
{
@_SYSCALL_TUX_NAME
@SYSC_RETVALSTR(returnval())
}
|