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]

Re: [Patch]Fix the args' output of syscall execve


Martin Hunt <hunt@redhat.com> writes:

> [...]  argv[0] was being skipped because it is typically just the
> filename again. But you are correct that it should be in args.

Indeed.

> However for argstr, I think it makes things less readable to include
> it.  So I changed __get_argv and __compat_get_argv to optionally
> skip argv[0].

Let's not improvise unnecessarily.  strace shows execve* this way:

strace -f sh -c ls |& grep exec
execve("/bin/sh", ["sh", "-c", "ls"], [/* 53 vars */]) = 0
execve("/bin/ls", ["ls"...], [/* 52 vars */]) = 0
 

- FChE


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