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: rethinking syscall tapset


Hi -

> > [...]  Can you provide a script scenario where a run-time
> > type-code conditional is needed?
> [...]
> probe syscall.*.return {
>     printf("%d\n", returnval())
> }
> 
> How do I know that the returnvalue is not an address and should be
> printed in hex?

One is the same way as for syscall arguments - the tapset alias can
provide a formatted value analogous to "argstr".

- FChE


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