HEX
Server: nginx/1.16.1
System: Linux ecs-04358622 4.19.90-2107.6.0.0100.oe1.bclinux.x86_64 #1 SMP Wed Dec 1 19:59:44 CST 2021 x86_64
User: nginx (994)
PHP: 8.0.0
Disabled: NONE
Upload Files
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())
}