summaryrefslogtreecommitdiffstats
path: root/tapset/x86_64
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2010-03-22 13:14:18 -0500
committerDavid Smith <dsmith@redhat.com>2010-03-22 13:14:18 -0500
commit13045789c2760786a55f39ade4fe99109cd344ac (patch)
treea15cdaa7dc94ca47921beb661d6a326cc87e43e2 /tapset/x86_64
parent56f3dbb70a5faf56732a9b87f8ed688b85a4332c (diff)
downloadsystemtap-steved-13045789c2760786a55f39ade4fe99109cd344ac.tar.gz
systemtap-steved-13045789c2760786a55f39ade4fe99109cd344ac.tar.xz
systemtap-steved-13045789c2760786a55f39ade4fe99109cd344ac.zip
Partial fix for pr 11388 by adding 'sys_mmap_pgoff' support.
* tapset/i386/nd_syscalls.stp: Add support for 'sys_mmap_pgoff' (which is what the mmap syscall uses). * tapset/x86_64/nd_syscalls.stp: Ditto.
Diffstat (limited to 'tapset/x86_64')
-rw-r--r--tapset/x86_64/nd_syscalls.stp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tapset/x86_64/nd_syscalls.stp b/tapset/x86_64/nd_syscalls.stp
index b0b0686c..02a6af4d 100644
--- a/tapset/x86_64/nd_syscalls.stp
+++ b/tapset/x86_64/nd_syscalls.stp
@@ -87,7 +87,8 @@ probe nd_syscall.sysctl32.return = kprobe.function("sys32_sysctl").return ?
# long sys_mmap(unsigned long addr, unsigned long len,
# unsigned long prot, unsigned long flags,
# unsigned long fd, unsigned long off)
-probe nd_syscall.mmap = kprobe.function("sys_mmap") ?
+probe nd_syscall.mmap = kprobe.function("sys_mmap") ?,
+ kprobe.function("sys_mmap_pgoff") ?
{
name = "mmap"
// start = $addr
@@ -111,7 +112,8 @@ probe nd_syscall.mmap = kprobe.function("sys_mmap") ?
argstr = sprintf("%p, %d, %s, %s, %d, %d", start, len,
_mprotect_prot_str(prot), _mmap_flags(flags), fd, offset)
}
-probe nd_syscall.mmap.return = kprobe.function("sys_mmap").return ?
+probe nd_syscall.mmap.return = kprobe.function("sys_mmap").return ?,
+ kprobe.function("sys_mmap_pgoff").return ?
{
name = "mmap"
retstr = returnstr(2)