| 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 : |
# getcpu _____________________________________________________
# getcpu() was added in kernel 2.6.19 for x86_64 and i386.
# Note that the 'tcache' argument is unused since Linux 2.6.24.
#
# SYSCALL_DEFINE3(getcpu, unsigned __user *, cpup, unsigned __user *, nodep,
# struct getcpu_cache __user *, unused)
@define _SYSCALL_GETCPU_NAME
%(
name = "getcpu"
%)
@define _SYSCALL_GETCPU_ARGSTR
%(
argstr = sprintf("%p, %p, %p", cpu_uaddr, node_uaddr, tcache_uaddr)
%)
probe syscall.getcpu = dw_syscall.getcpu !, nd_syscall.getcpu ? {}
probe syscall.getcpu.return = dw_syscall.getcpu.return !, nd_syscall.getcpu.return ? {}
# dw_getcpu _____________________________________________________
probe dw_syscall.getcpu = kernel.function("sys_getcpu").call ?
{
@_SYSCALL_GETCPU_NAME
cpu_uaddr = $cpup
node_uaddr = $nodep
tcache_uaddr = @choose_defined($unused, $cache)
@_SYSCALL_GETCPU_ARGSTR
}
probe dw_syscall.getcpu.return = kernel.function("sys_getcpu").return ?
{
@_SYSCALL_GETCPU_NAME
retstr = return_str(1, $return)
}
# nd_getcpu _____________________________________________________
probe nd_syscall.getcpu = kprobe.function("sys_getcpu") ?
{
@_SYSCALL_GETCPU_NAME
asmlinkage()
cpu_uaddr = pointer_arg(1)
node_uaddr = pointer_arg(2)
tcache_uaddr = pointer_arg(3)
@_SYSCALL_GETCPU_ARGSTR
}
probe nd_syscall.getcpu.return = kprobe.function("sys_getcpu").return ?
{
@_SYSCALL_GETCPU_NAME
retstr = returnstr(1)
}