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: How can I access ULONG_MAX constant without using -g option?


penguin-kernel wrote:

> [...]
>   # stap -e 'probe begin { printf("current=%lx\n", task_current()); exit(); }'
>   current=ffffffffc1681aa0
> In the example output above, current=c1681aa0 is the expected value on i686.

To an extent, this is expected from use of signed pointer types.  They
are sign-extended when widened.  Is there some operational impact from
the upper 32-bits being set in your script, or just an aesthetic
preference?

- FChE


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