This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/2] PR5434: Use proper $vars according to CONFIG_NFSD in syscall.nfsservctl.


---
 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]