How can I access ULONG_MAX constant without using -g option?

Frank Ch. Eigler fche@redhat.com
Tue May 6 20:44:00 GMT 2014


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



More information about the Systemtap mailing list