This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [Patch]Fix the bug of missing definition of argstr and retstr
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Cai Fei <caifei at cn dot fujitsu dot com>
- Cc: systemtap at sourceware dot org
- Date: Thu, 16 Aug 2007 22:41:01 -0400
- Subject: Re: [Patch]Fix the bug of missing definition of argstr and retstr
- References: <46C503C7.5050305@cn.fujitsu.com>
Cai Fei <caifei@cn.fujitsu.com> writes:
> [...]
> After adding definition of pid and argstr for syscall getpgid, I
> checked the tapset
> for other syscalls. The same problems of missing definition of argstr
> and retstr exist.
There is generally no need to create variables that simply carry empty
strings. The translator will do that automatically if necessary.
>
> kernel.function("sys_getegid")
> {
> name = "getegid"
> + argstr = ""
> }
The only substantial effect of this is to prevent a probe based on
this alias from using "argstr" as a *numeric* variable.
- FChE