| Server IP : 118.27.122.120 / Your IP : 216.73.216.136 Web Server : Apache System : Linux web0216.sh.tyo1 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64 User : r4834334 ( 11094) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/opt/rh/devtoolset-8/root/usr/share/systemtap/tapset/linux/ |
Upload File : |
# reboot _____________________________________________________
#
# long sys_reboot(int magic1,
# int magic2,
# unsigned int cmd,
# void __user * arg)
#
@define _SYSCALL_REBOOT_NAME
%(
name = "reboot"
%)
@define _SYSCALL_REBOOT_ARGSTR
%(
argstr = sprintf("%s, %s, %s, %p", magic_str, magic2_str, flag_str, arg_uaddr)
%)
probe syscall.reboot = dw_syscall.reboot !, nd_syscall.reboot ? {}
probe syscall.reboot.return = dw_syscall.reboot.return !,
nd_syscall.reboot.return ? {}
# dw_reboot _____________________________________________________
probe dw_syscall.reboot = kernel.function("sys_reboot").call
{
@_SYSCALL_REBOOT_NAME
magic = __int32($magic1)
magic_str = _reboot_magic_str(__int32($magic1))
magic2 = __int32($magic2)
magic2_str =_reboot_magic_str(__int32($magic2))
flag = __uint32($cmd)
flag_str = _reboot_flag_str(__uint32($cmd))
arg_uaddr = $arg
@_SYSCALL_REBOOT_ARGSTR
}
probe dw_syscall.reboot.return = kernel.function("sys_reboot").return
{
@_SYSCALL_REBOOT_NAME
retstr = return_str(1, $return)
}
# nd_reboot _____________________________________________________
probe nd_syscall.reboot = kprobe.function("sys_reboot") ?
{
@_SYSCALL_REBOOT_NAME
asmlinkage()
magic = int_arg(1)
magic_str = _reboot_magic_str(magic)
magic2 = int_arg(2)
magic2_str =_reboot_magic_str(magic2)
flag = uint_arg(3)
flag_str = _reboot_flag_str(flag)
arg_uaddr = pointer_arg(4)
@_SYSCALL_REBOOT_ARGSTR
}
probe nd_syscall.reboot.return = kprobe.function("sys_reboot").return ?
{
@_SYSCALL_REBOOT_NAME
retstr = returnstr(1)
}