In case anybody is curious, my colleague suggested to
try arg1, and that works.
Thanks Kazuo, cheers, sam
sang-suan gam wrote:
> Hi,
>
> i''ve just tried the following and it doesn''t work:
>
> bind_common:entry
> / self->bind == 0 /
> {
> self->bind = 1;
> }
>
> fbt:::entry
> / self->bind == 1 /
> {
> }
>
> fbt:::return
> / self->bind /
> {
> trace(args[1]);
> }
>
> bind_common:return
> / self->bind == 1 /
> {
> self->bind = 0;
> }
>
> i got the following error:
>
> [s10_74L2a.3]# dtrace -s sys.d
> dtrace: failed to compile script sys.d: line 15: args[ ] may not be
> referenced because probe description fbt:::return matches more than
> one probe
> [s10_74L2a.3]#
>
> is there a way to get at the return arguments for non-specified
> funtions ?
>
> i''m hoping to use the above to create a general purpose script to
> capture the return values for functions that may return the results
> of tail-called functions.
>
> Thanks,
> sam
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org