diff options
author | hunt <hunt> | 2007-08-15 19:17:35 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-08-15 19:17:35 +0000 |
commit | 4d5b9fbb6c1ef63869ff84d6565a168125355f84 (patch) | |
tree | bd0463335cb7d8aef047314da2a7142ae2facb1e /tapset/x86_64 | |
parent | 4d66d71756f43e4cc1a0b31b4228b400a58d795d (diff) | |
download | systemtap-steved-4d5b9fbb6c1ef63869ff84d6565a168125355f84.tar.gz systemtap-steved-4d5b9fbb6c1ef63869ff84d6565a168125355f84.tar.xz systemtap-steved-4d5b9fbb6c1ef63869ff84d6565a168125355f84.zip |
2007-08-15 Martin Hunt <hunt@redhat.com>
* x86_64/syscalls.stp: Add support for sys32_mmap[2],
sys32_vm86_warning, and sys32_pipe.
* s390x/syscalls.stp (get_mmap_args): Move to aux_syscalls.
* aux_syscalls.stp (get_mmap_args): Moved here.
* syscalls.stp: Add sys32_alarm.
* syscalls2.stp: Add sys32_uname.
Diffstat (limited to 'tapset/x86_64')
-rw-r--r-- | tapset/x86_64/syscalls.stp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tapset/x86_64/syscalls.stp b/tapset/x86_64/syscalls.stp index 32a43cc1..1b39e04e 100644 --- a/tapset/x86_64/syscalls.stp +++ b/tapset/x86_64/syscalls.stp @@ -82,4 +82,54 @@ probe syscall.mmap.return = kernel.function("sys_mmap").return ? { name = "mmap" retstr = returnstr(2) } +# +# sys32_mmap(struct mmap_arg_struct __user *arg) +# +probe syscall.mmap32 = kernel.function("sys32_mmap") { + name = "mmap" + argstr = get_mmap_args($arg) +} + +probe syscall.mmap32.return = kernel.function("sys32_mmap").return { + name = "mmap" + retstr = returnstr(2) +} +# sys32_mmap2(unsigned long addr, unsigned long len, +# unsigned long prot, unsigned long flags, +# unsigned long fd, unsigned long pgoff) +# +probe syscall.mmap2 = kernel.function("sys32_mmap2") { + name = "mmap2" + argstr = sprintf("%p, %d, %s, %s, %d, %d", $addr, $len, + _mprotect_prot_str($prot), _mmap_flags($flags), $fd, $pgoff) +} + +probe syscall.mmap2.return = kernel.function("sys32_mmap2").return { + name = "mmap2" + retstr = returnstr(2) +} + +# vm86_warning _____________________________________________________ +# +# long sys32_vm86_warning(void) +# +probe syscall.vm86_warning = kernel.function("sys32_vm86_warning") { + name = "vm86_warning" +} +probe syscall.vm86_warning.return = kernel.function("sys32_vm86_warning").return { + name = "wm86_warning" + retstr = returnstr(1) +} +# pipe _______________________________________________________ +# +# long sys32_pipe(int __user *fd) +# +probe syscall.pipe32 = kernel.function("sys32_pipe") { + name = "pipe" + argstr = sprintf("%p", fd) +} +probe syscall.pipe32.return = kernel.function("sys32_pipe").return { + name = "pipe" + retstr = returnstr(1) +} |