/
usr
/
share
/
systemtap
/
tapset
/
linux
/
powerpc
/
/usr/share/systemtap/tapset/linux/powerpc
mkdir
upload
Name
Size
Mode
Actions
aux_syscalls.stp
4963
0644
edit
dl
rm
syscall_num.stp
71086
0644
edit
dl
rm
sysc_compat_clock_settime.stp
1592
0644
edit
dl
rm
sysc_compat_fadvise64.stp
5239
0644
edit
dl
rm
sysc_compat_fallocate.stp
2652
0644
edit
dl
rm
sysc_compat_ftruncate64.stp
1579
0644
edit
dl
rm
sysc_compat_get_mempolicy.stp
1835
0644
edit
dl
rm
sysc_compat_lookup_dcookie.stp
3217
0644
edit
dl
rm
sysc_compat_mbind.stp
1652
0644
edit
dl
rm
sysc_compat_readahead.stp
1632
0644
edit
dl
rm
sysc_compat_set_mempolicy.stp
1662
0644
edit
dl
rm
sysc_compat_timer_gettime.stp
1601
0644
edit
dl
rm
sysc_compat_timer_settime.stp
1809
0644
edit
dl
rm
sysc_compat_truncate64.stp
1643
0644
edit
dl
rm
sysc_execve.stp
3414
0644
edit
dl
rm
sysc_ipc.stp
1507
0644
edit
dl
rm
sysc_mmap.stp
1898
0644
edit
dl
rm
sysc_mmap2.stp
2350
0644
edit
dl
rm
sysc_ppc32_timer_create.stp
1685
0644
edit
dl
rm
sysc_ppc64_newuname.stp
1614
0644
edit
dl
rm
sysc_ppc64_personality.stp
2252
0644
edit
dl
rm
sysc_ppc64_sys32_stime.stp
1390
0644
edit
dl
rm
sysc_ppc64_sys_stime.stp
1359
0644
edit
dl
rm
sysc_ppc_rtas.stp
1154
0644
edit
dl
rm
sysc_sigaltstack.stp
3450
0644
edit
dl
rm
sysc_sys32_adjtimex.stp
1300
0644
edit
dl
rm
sysc_sys32_getdents.stp
1473
0644
edit
dl
rm
sysc_sys32_ptrace.stp
1433
0644
edit
dl
rm
sysc_sys32_rt_sigpending.stp
1561
0644
edit
dl
rm
sysc_sys32_rt_sigqueueinfo.stp
1692
0644
edit
dl
rm
sysc_sys32_rt_sigtimedwait.stp
1858
0644
edit
dl
rm
sysc_sys32_sched_rr_get_interval.stp
1790
0644
edit
dl
rm
sysc_sys32_sched_setparam.stp
1568
0644
edit
dl
rm
sysc_sys32_sendfile64.stp
1578
0644
edit
dl
rm
sysc_sys32_sigreturn.stp
1566
0644
edit
dl
rm
sysc_sys32_swapcontext.stp
1822
0644
edit
dl
rm
sysc_sys32_sysinfo.stp
1306
0644
edit
dl
rm
sysc_sys32_utimes.stp
1427
0644
edit
dl
rm
sysc_sys64_time.stp
1122
0644
edit
dl
rm
sysc_sysctl32.stp
2359
0644
edit
dl
rm
Edit:
/usr/share/systemtap/tapset/linux/powerpc/sysc_execve.stp
(3414B)
%( kernel_v < "3.7" %? # execve _____________________________________________________ # # In kernels < 3.7, sys_execve() was in arch-specific code (and had # varying arguments). It was just a wrapper around generic # do_execve(), but the wrapper could error out before calling # do_execve(). So, we'll have to handle it in arch-specific tapset # code to catch all calls. # # int sys_execve(unsigned long a0, unsigned long a1, unsigned long a2, # unsigned long a3, unsigned long a4, unsigned long a5, # struct pt_regs *regs) @define _SYSCALL_EXECVE_NAME %( name = "execve" %) @define _SYSCALL_EXECVE_ARGSTR %( argstr = sprintf("%s, %s, %s", filename, args, env_str) %) probe syscall.execve = dw_syscall.execve !, nd_syscall.execve {} probe syscall.execve.return = dw_syscall.execve.return !, nd_syscall.execve.return {} # dw_execve _____________________________________________________ probe dw_syscall.execve = kernel.function("sys_execve").call { @_SYSCALL_EXECVE_NAME filename = user_string_quoted($a0) args = __get_argv($a1, 0) env_str = __get_argv($a2, 0) @_SYSCALL_EXECVE_ARGSTR } probe dw_syscall.execve.return = kernel.function("sys_execve").return { @_SYSCALL_EXECVE_NAME @SYSC_RETVALSTR($return) } # nd_execve _____________________________________________________ probe nd_syscall.execve = kprobe.function("sys_execve") { @_SYSCALL_EXECVE_NAME filename = user_string_quoted(pointer_arg(1)) args = __get_argv(pointer_arg(2), 0) env_str = __get_argv(pointer_arg(3), 0) @_SYSCALL_EXECVE_ARGSTR } probe nd_syscall.execve.return = kprobe.function("sys_execve").return { @_SYSCALL_EXECVE_NAME @SYSC_RETVALSTR(returnval()) } # # In kernels < 3.7, sys_execve() was in arch-specific code (and had # varying arguments). It was just a wrapper around generic # do_execve(), but the wrapper could error out before calling # do_execve(). So, we'll have to handle it in arch-specific tapset # code to catch all calls. # execve _____________________________________________________ # # long compat_sys_execve(unsigned long a0, unsigned long a1, unsigned long a2, # unsigned long a3, unsigned long a4, unsigned long a5, # struct pt_regs *regs) probe syscall.compat_execve = dw_syscall.compat_execve !, nd_syscall.compat_execve ? {} probe syscall.compat_execve.return = dw_syscall.compat_execve.return !, nd_syscall.compat_execve.return ? {} # dw_compat_execve _____________________________________________________ probe dw_syscall.compat_execve = kernel.function("compat_sys_execve").call ? { @_SYSCALL_EXECVE_NAME filename = user_string_quoted($a0) args = __get_compat_argv($a1, 0) env_str = __get_compat_argv($a2, 0) @_SYSCALL_EXECVE_ARGSTR } probe dw_syscall.compat_execve.return = kernel.function("compat_sys_execve").return ? { @_SYSCALL_EXECVE_NAME @SYSC_RETVALSTR($return) } # nd_compat_execve _____________________________________________________ probe nd_syscall.compat_execve = kprobe.function("compat_sys_execve") ? { @_SYSCALL_EXECVE_NAME filename = user_string_quoted(pointer_arg(1)) args = __get_compat_argv(pointer_arg(2), 0) env_str = __get_compat_argv(pointer_arg(3), 0) @_SYSCALL_EXECVE_ARGSTR } probe nd_syscall.compat_execve.return = kprobe.function("compat_sys_execve").return ? { @_SYSCALL_EXECVE_NAME @SYSC_RETVALSTR(returnval()) } %)
Save
cmd:
run