This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH 2/2] PR5434: Use proper $vars according to CONFIG_NFSD in syscall.nfsservctl.
- From: Przemyslaw Pawelczyk <przemyslaw at pawelczyk dot it>
- To: systemtap at sourceware dot org
- Date: Sat, 10 Oct 2009 12:28:29 +0200
- Subject: [PATCH 2/2] PR5434: Use proper $vars according to CONFIG_NFSD in syscall.nfsservctl.
- Mail-from: 4cc1e3943a3d748431ab82b91631bb051c240d56 Mon Sep 17 00:00:00 2001
---
tapset/syscalls2.stp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tapset/syscalls2.stp b/tapset/syscalls2.stp
index 5e97aef..d29a6d2 100644
--- a/tapset/syscalls2.stp
+++ b/tapset/syscalls2.stp
@@ -66,9 +66,15 @@ probe syscall.nfsservctl = kernel.function("sys_nfsservctl").call ?,
{
name = "nfsservctl"
cmd = $cmd
+%( CONFIG_NFSD == "y" || CONFIG_NFDS == "m" %?
argp_uaddr = $arg
resp_uaddr = $res
argstr = sprintf("%s, %p, %p", _nfsctl_cmd_str($cmd), $arg, $res)
+%:
+ argp_uaddr = $notused
+ resp_uaddr = $notused2
+ argstr = sprintf("%s, %p, %p", _nfsctl_cmd_str($cmd), $notused, $notused2)
+%)
}
probe syscall.nfsservctl.return = kernel.function("sys_nfsservctl").return ?,
kernel.function("compat_sys_nfsservctl").return ?
--
1.5.6.5