# 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
	retstr = return_str(1, $return)
}

# nd_sgetmask _____________________________________________________

probe nd_syscall.sgetmask = kprobe.function("sys_sgetmask") ?
{
	@_SYSCALL_SGETMASK_NAME
	@_SYSCALL_SGETMASK_ARGSTR
}
probe nd_syscall.sgetmask.return = kprobe.function("sys_sgetmask").return ?
{
	@_SYSCALL_SGETMASK_NAME
	retstr = returnstr(1)
}
