%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/systemtap/tapset/linux/powerpc/
Upload File :
Create Path :
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())
}

Zerion Mini Shell 1.0