MOON
Server: Apache
System: Linux cl1170g 4.19.62-mod-std-ipv6-64-rescue #828825 SMP Tue Jul 30 13:54:49 UTC 2019 x86_64
User: wh0f20bb (1057)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //usr/share/systemtap/tapset/linux/powerpc/sysc_ppc_rtas.stp
# ppc_rtas ________________________________________
#
# int ppc_rtas(struct rtas_args __user *uargs)
#

@define _SYSCALL_PPC_RTAS_NAME
%(
	name = "ppc_rtas"
%)

@define _SYSCALL_PPC_RTAS_ARGSTR
%(
	argstr = sprintf("%p", uargs_uaddr)
%)

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

# dw_ppc_rtas _____________________________________________________

probe dw_syscall.ppc_rtas = kernel.function("ppc_rtas") ?
{
	@_SYSCALL_PPC_RTAS_NAME
	uargs_uaddr = $uargs
	@_SYSCALL_PPC_RTAS_ARGSTR
}
probe dw_syscall.ppc_rtas.return = kernel.function("ppc_rtas").return ?
{
	@_SYSCALL_PPC_RTAS_NAME
	@SYSC_RETVALSTR($return)
}

# nd_ppc_rtas _____________________________________________________

probe nd_syscall.ppc_rtas = kprobe.function("ppc_rtas") ?
{
	@_SYSCALL_PPC_RTAS_NAME
	asmlinkage()
	uargs_uaddr = pointer_arg(1)
	@_SYSCALL_PPC_RTAS_ARGSTR
}
probe nd_syscall.ppc_rtas.return = kprobe.function("ppc_rtas").return ?
{
	@_SYSCALL_PPC_RTAS_NAME
	@SYSC_RETVALSTR(returnval())
}