/usr/share/systemtap/tapset/linux/powerpc
NameSizeModeActions
aux_syscalls.stp49630644editdlrm
syscall_num.stp710860644editdlrm
sysc_compat_clock_settime.stp15920644editdlrm
sysc_compat_fadvise64.stp52390644editdlrm
sysc_compat_fallocate.stp26520644editdlrm
sysc_compat_ftruncate64.stp15790644editdlrm
sysc_compat_get_mempolicy.stp18350644editdlrm
sysc_compat_lookup_dcookie.stp32170644editdlrm
sysc_compat_mbind.stp16520644editdlrm
sysc_compat_readahead.stp16320644editdlrm
sysc_compat_set_mempolicy.stp16620644editdlrm
sysc_compat_timer_gettime.stp16010644editdlrm
sysc_compat_timer_settime.stp18090644editdlrm
sysc_compat_truncate64.stp16430644editdlrm
sysc_execve.stp34140644editdlrm
sysc_ipc.stp15070644editdlrm
sysc_mmap.stp18980644editdlrm
sysc_mmap2.stp23500644editdlrm
sysc_ppc32_timer_create.stp16850644editdlrm
sysc_ppc64_newuname.stp16140644editdlrm
sysc_ppc64_personality.stp22520644editdlrm
sysc_ppc64_sys32_stime.stp13900644editdlrm
sysc_ppc64_sys_stime.stp13590644editdlrm
sysc_ppc_rtas.stp11540644editdlrm
sysc_sigaltstack.stp34500644editdlrm
sysc_sys32_adjtimex.stp13000644editdlrm
sysc_sys32_getdents.stp14730644editdlrm
sysc_sys32_ptrace.stp14330644editdlrm
sysc_sys32_rt_sigpending.stp15610644editdlrm
sysc_sys32_rt_sigqueueinfo.stp16920644editdlrm
sysc_sys32_rt_sigtimedwait.stp18580644editdlrm
sysc_sys32_sched_rr_get_interval.stp17900644editdlrm
sysc_sys32_sched_setparam.stp15680644editdlrm
sysc_sys32_sendfile64.stp15780644editdlrm
sysc_sys32_sigreturn.stp15660644editdlrm
sysc_sys32_swapcontext.stp18220644editdlrm
sysc_sys32_sysinfo.stp13060644editdlrm
sysc_sys32_utimes.stp14270644editdlrm
sysc_sys64_time.stp11220644editdlrm
sysc_sysctl32.stp23590644editdlrm
Edit: /usr/share/systemtap/tapset/linux/powerpc/sysc_mmap.stp (1898B)
# In kernels < 2.6.33, mmap()/mmap2() was handled by arch-specific # code. In kernels >= 2.6.33, the arch-specific code just calls # generic sys_mmap_pgoff(). %( kernel_v < "2.6.33" %? # mmap # long sys_mmap(unsigned long addr, size_t len, # unsigned long prot, unsigned long flags, # unsigned long fd, off_t offset) # @define _SYSCALL_MMAP_NAME %( name = "mmap" %) @define _SYSCALL_MMAP_ARGSTR %( argstr = sprintf("%p, %u, %s, %s, %d, %d", start, len, prot_str, flags_str, fd, offset) %) probe syscall.mmap = dw_syscall.mmap !, nd_syscall.mmap ? {} probe syscall.mmap.return = dw_syscall.mmap.return !, nd_syscall.mmap.return ? {} # dw_mmap _____________________________________________________ probe dw_syscall.mmap = kernel.function("sys_mmap") ? { @_SYSCALL_MMAP_NAME start = $addr len = $len prot = $prot prot_str = _mprotect_prot_str(prot) flags = $flags flags_str = _mmap_flags(flags) # Although the kernel gets an unsigned long fd, on the # user-side it is a signed int. Fix this. fd = __int32($fd) offset = $offset @_SYSCALL_MMAP_ARGSTR } probe dw_syscall.mmap.return = kernel.function("sys_mmap").return ? { @_SYSCALL_MMAP_NAME @SYSC_RETVALSTR2($return) } # nd_mmap _____________________________________________________ probe nd_syscall.mmap = kprobe.function("sys_mmap") ? { @_SYSCALL_MMAP_NAME asmlinkage() start = ulong_arg(1) len = ulong_arg(2) prot = ulong_arg(3) prot_str = _mprotect_prot_str(prot) flags = ulong_arg(4) flags_str = _mmap_flags(flags) # Although the kernel gets an unsigned long fd, on the # user-side it is a signed int. Fix this. fd = int_arg(5) offset = ulong_arg(6) @_SYSCALL_MMAP_ARGSTR } probe nd_syscall.mmap.return = kprobe.function("sys_mmap").return ? { @_SYSCALL_MMAP_NAME @SYSC_RETVALSTR2(returnval()) } %)