Prv8 Shell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current 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())
}

haha - 2025