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: $return in wildcarded void functions


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


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