This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: $return in wildcarded void functions
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Mike Mason <mmlnx at us dot ibm dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: 06 Mar 2007 00:41:05 -0500
- Subject: Re: $return in wildcarded void functions
- References: <45ECC45B.4080809@us.ibm.com>
Mike Mason <mmlnx@us.ibm.com> writes:
> [...] Is there any way around this problem short of writing a return
> probe for each function?
Not at present. However, one could overload the probe optional flag
probe foo.bar("*") ? { $zoo }
to skip probes where complications such as a bad $zoo cause a probe
to be deemed erroneous. Nonexistent functions are handled like that;
perhaps nonexistent variables could be too.
> Is there any way to treat a variable as conditional? That would be
> a useful feature, especially for wildcarded return probes.
Not at present. One might imagine a "$?variable" syntax for optional
values. (This would be an independent facility from the optional
probe widgetry above.)
- FChE