HEX
Server: nginx/1.29.3
System: Linux 11979.bigscoots-wpo.com 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User: nginx (1068)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_open,proc_close,popen,show_source,cmd# Do not modify this line # 1684243876
Upload Files
File: //usr/share/systemtap/tapset/linux/sysc_sigreturn.stp
# sigreturn __________________________________________________
# int sys_sigreturn(unsigned long __unused)
#

@define _SYSCALL_SIGRETURN_NAME
%(
	name = "sigreturn"
%)

@define _SYSCALL_SIGRETURN_ARGSTR
%(
	argstr = ""
%)

probe syscall.sigreturn = dw_syscall.sigreturn !, nd_syscall.sigreturn ? {}
probe syscall.sigreturn.return = dw_syscall.sigreturn.return !,
                                 nd_syscall.sigreturn.return ? {}

# dw_sigreturn _____________________________________________________

probe dw_syscall.sigreturn = kernel.function("sys_sigreturn").call ?,
                          kernel.function("sys32_sigreturn").call ?
{
	@_SYSCALL_SIGRETURN_NAME
	@_SYSCALL_SIGRETURN_ARGSTR
}
probe dw_syscall.sigreturn.return = kernel.function("sys_sigreturn").return ?,
                                 kernel.function("sys32_sigreturn").return ?
{
	@_SYSCALL_SIGRETURN_NAME
%( arch == "mips" && CONFIG_TRAD_SIGNALS == "y" %?
	retstr = "void"
%:
	@SYSC_RETVALSTR($return)
%)
}

# nd_sigreturn _____________________________________________________

probe nd_syscall.sigreturn = kprobe.function("sys_sigreturn") ?,
                             kprobe.function("sys32_sigreturn") ?
{
	@_SYSCALL_SIGRETURN_NAME
	@_SYSCALL_SIGRETURN_ARGSTR
}
probe nd_syscall.sigreturn.return = kprobe.function("sys_sigreturn").return ?,
                                    kprobe.function("sys32_sigreturn").return ?
{
	@_SYSCALL_SIGRETURN_NAME
	@SYSC_RETVALSTR(returnval())
}