This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
tap function args:long on x86
- From: Dave Nomura <dcnltc at us dot ibm dot com>
- To: systemtap at sourceware dot org
- Date: Tue, 25 Sep 2007 14:58:04 -0700
- Subject: tap function args:long on x86
- Organization: LTC Power Linux Toolchain
- Reply-to: dcnltc at us dot ibm dot com
I'm working on an x86 system where in C sizeof(int)==sizeof(long)=4
My understanding is that stap function arguments are all either string or
long. But I was expecting long to match C's idea of long (32 bits.
I have a stap function that looks like:
function init_user(block_step:long, handler:long, init:long)
but if I look in the generated source module code I see
struct function_init_user_locals {
int64_t block_step;
int64_t handler;
int64_t init;
/* no return value */
Is this the behavior that I should expect? stap's long == 64bits on
both 32bit and 64bit architectures
--
Dave Nomura
LTC Linux Power Toolchain