Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /usr/share/systemtap/tapset/linux/powerpc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/systemtap/tapset/linux/powerpc/sysc_sys64_time.stp
# sys64_time ________________________________________
#
# time_t sys64_time(time_t __user * tloc)
#

@define _SYSCALL_SYS64_TIME_NAME
%(
	name = "sys64_time"
%)

@define _SYSCALL_SYS64_TIME_ARGSTR
%(
	argstr = sprintf("%p", tloc)
%)

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

# dw_sys64_time _____________________________________________________

probe dw_syscall.sys64_time = kernel.function("sys64_time") ?
{
	@_SYSCALL_SYS64_TIME_NAME
	tloc = $tloc
	@_SYSCALL_SYS64_TIME_ARGSTR
}
probe dw_syscall.sys64_time.return = kernel.function("sys64_time").return ?
{
	@_SYSCALL_SYS64_TIME_NAME
	@SYSC_RETVALSTR($return)
}

# nd_sys64_time _____________________________________________________

probe nd_syscall.sys64_time = kprobe.function("sys64_time") ?
{
	@_SYSCALL_SYS64_TIME_NAME
	asmlinkage()
	tloc = pointer_arg(1)
	@_SYSCALL_SYS64_TIME_ARGSTR
}
probe nd_syscall.sys64_time.return = kprobe.function("sys64_time").return ?
{
	@_SYSCALL_SYS64_TIME_NAME
	@SYSC_RETVALSTR(returnval())
}

Hry