summaryrefslogtreecommitdiffstats
path: root/tapset/ppc64
diff options
context:
space:
mode:
authorhunt <hunt>2007-08-16 12:55:19 +0000
committerhunt <hunt>2007-08-16 12:55:19 +0000
commit48c53a66e4ffe18158d6f34f288160570609627e (patch)
treea4c3d839da5cdbd826dc914387759a116516459b /tapset/ppc64
parent79d4965dd7aa252bd8580f9d828a5a1ee8401649 (diff)
downloadsystemtap-steved-48c53a66e4ffe18158d6f34f288160570609627e.tar.gz
systemtap-steved-48c53a66e4ffe18158d6f34f288160570609627e.tar.xz
systemtap-steved-48c53a66e4ffe18158d6f34f288160570609627e.zip
2007-08-16 Martin Hunt <hunt@redhat.com>
* aux_syscalls.stp (__get_argv): Add parameter to optionally skip the first argv (argv[0]). (__get_compat_argv): Ditto. * syscalls.stp (execve): Set args to the whole argv. For argstr use filename plus argv starting at [1]. (compat_execve): Ditto. * ppc64/syscalls.stp (sys32_exevve): Ditto. From Cai Fei <caifei@cn.fujitsu.com> * syscalls.stp (sts_getpgid): Add pid arg.
Diffstat (limited to 'tapset/ppc64')
-rw-r--r--tapset/ppc64/syscalls.stp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/ppc64/syscalls.stp b/tapset/ppc64/syscalls.stp
index c6396b7e..7c7a6d7b 100644
--- a/tapset/ppc64/syscalls.stp
+++ b/tapset/ppc64/syscalls.stp
@@ -423,8 +423,8 @@ probe syscall.ppc_rtas.return = kernel.function("ppc_rtas").return {
probe syscall.sys32_execve = kernel.function("sys32_execve") ? {
name = "sys32_execve"
filename = user_string($a0)
- args = __get_argv($a1)
- argstr = sprintf("%s %s", user_string_quoted($a0), args)
+ args = __get_argv($a1, 0)
+ argstr = sprintf("%s %s", user_string_quoted($a0), __get_argv($a1, 1))
}
probe syscall.sys32_execve.return =
kernel.function("sys32_execve").return ? {