summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2010-03-22 16:49:03 -0500
committerDavid Smith <dsmith@redhat.com>2010-03-22 16:49:03 -0500
commita7ef7e55e1e1149d962c9fa17334de12eedcfc5c (patch)
treea734e82feaa15c77fb2247ccc34db1263d3f10f8
parentd5683f6561c8385b25709340d5c6dfe0e9c34442 (diff)
downloadsystemtap-steved-a7ef7e55e1e1149d962c9fa17334de12eedcfc5c.tar.gz
systemtap-steved-a7ef7e55e1e1149d962c9fa17334de12eedcfc5c.tar.xz
systemtap-steved-a7ef7e55e1e1149d962c9fa17334de12eedcfc5c.zip
Fixed nd_syscalls 'sys32_mmap2' problem on newer kernels.
* tapset/x86_64/nd_syscalls.stp: Made 'sys32_mmap2' probe point optional, since it doesn't exist on newer kernels.
-rw-r--r--tapset/x86_64/nd_syscalls.stp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/x86_64/nd_syscalls.stp b/tapset/x86_64/nd_syscalls.stp
index 02a6af4d..e1fde0a7 100644
--- a/tapset/x86_64/nd_syscalls.stp
+++ b/tapset/x86_64/nd_syscalls.stp
@@ -139,7 +139,7 @@ probe nd_syscall.mmap32.return = kprobe.function("sys32_mmap").return
# unsigned long prot, unsigned long flags,
# unsigned long fd, unsigned long pgoff)
#
-probe nd_syscall.mmap2 = kprobe.function("sys32_mmap2")
+probe nd_syscall.mmap2 = kprobe.function("sys32_mmap2") ?
{
name = "mmap2"
// argstr = sprintf("%p, %d, %s, %s, %d, %d", $addr, $len,
@@ -150,7 +150,7 @@ probe nd_syscall.mmap2 = kprobe.function("sys32_mmap2")
_mprotect_prot_str(ulong_arg(3)), _mmap_flags(ulong_arg(4)),
int_arg(5), ulong_arg(6))
}
-probe nd_syscall.mmap2.return = kprobe.function("sys32_mmap2").return
+probe nd_syscall.mmap2.return = kprobe.function("sys32_mmap2").return ?
{
name = "mmap2"
retstr = returnstr(2)