|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/share/systemtap/tapset/linux/ |
Upload File : |
# sgetmask ___________________________________________________
#
# sys_sgetmask(void)
#
@define _SYSCALL_SGETMASK_NAME
%(
name = "sgetmask"
%)
@define _SYSCALL_SGETMASK_ARGSTR
%(
argstr = ""
%)
probe syscall.sgetmask = dw_syscall.sgetmask !, nd_syscall.sgetmask ? {}
probe syscall.sgetmask.return = dw_syscall.sgetmask.return !,
nd_syscall.sgetmask.return ? {}
# dw_sgetmask _____________________________________________________
probe dw_syscall.sgetmask = kernel.function("sys_sgetmask").call ?
{
@_SYSCALL_SGETMASK_NAME
@_SYSCALL_SGETMASK_ARGSTR
}
probe dw_syscall.sgetmask.return = kernel.function("sys_sgetmask").return ?
{
@_SYSCALL_SGETMASK_NAME
@SYSC_RETVALSTR($return)
}
# nd_sgetmask _____________________________________________________
probe nd_syscall.sgetmask = nd1_syscall.sgetmask!, nd2_syscall.sgetmask!, tp_syscall.sgetmask
{ }
probe nd1_syscall.sgetmask = kprobe.function("sys_sgetmask") ?
{
@_SYSCALL_SGETMASK_NAME
@_SYSCALL_SGETMASK_ARGSTR
}
/* kernel 4.17+ */
probe nd2_syscall.sgetmask = kprobe.function(@arch_syscall0_prefix "sys_sgetmask") ?
{
@_SYSCALL_SGETMASK_NAME
@_SYSCALL_SGETMASK_ARGSTR
}
/* kernel 3.5+, but undesirable because it affects all syscalls */
probe tp_syscall.sgetmask = kernel.trace("sys_enter") ?
{
@__syscall_compat_gate(@const("__NR_sgetmask"), @const("__NR_compat_sgetmask"))
@_SYSCALL_SGETMASK_NAME
@_SYSCALL_SGETMASK_ARGSTR
}
probe nd_syscall.sgetmask.return = nd1_syscall.sgetmask.return!, nd2_syscall.sgetmask.return!, tp_syscall.sgetmask.return
{ }
probe nd1_syscall.sgetmask.return = kprobe.function("sys_sgetmask").return ?
{
@_SYSCALL_SGETMASK_NAME
@SYSC_RETVALSTR(returnval())
}
/* kernel 4.17+ */
probe nd2_syscall.sgetmask.return = kprobe.function(@arch_syscall0_prefix "sys_sgetmask").return ?
{
@_SYSCALL_SGETMASK_NAME
@SYSC_RETVALSTR(returnval())
}
/* kernel 3.5+, but undesirable because it affects all syscalls */
probe tp_syscall.sgetmask.return = kernel.trace("sys_exit")
{
__set_syscall_pt_regs($regs)
@__syscall_compat_gate(@const("__NR_sgetmask"), @const("__NR_compat_sgetmask"))
@_SYSCALL_SGETMASK_NAME
@SYSC_RETVALSTR($ret)
}