This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: How can I access ULONG_MAX constant without using -g option?
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Tetsuo Handa <penguin-kernel at I-love dot SAKURA dot ne dot jp>
- Cc: systemtap at sourceware dot org
- Date: Tue, 06 May 2014 16:00:06 -0400
- Subject: Re: How can I access ULONG_MAX constant without using -g option?
- Authentication-results: sourceware.org; auth=none
- References: <201405061502 dot JDC34371 dot FFVOSFQtOOHMJL at I-love dot SAKURA dot ne dot jp>
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