> If the kernel is 64-bit and the traced program is 32-bit,
> you'll want to change your structure definition so that
> it reflects the bitness of the traced program. This means
> that for pointers you should use a uint32_t rather than a
> char * for example.
> 
> Adam
> 
Ok Thanx. 

If my program is 32 bit I include this in DTrace script :
struct xxx
{
   int yyy;
   int zzz;
   uint32_t name;
};

If my program is 64 bit I include this in DTrace script :
struct xxx
{
   int yyy;
   int zzz;
   const char *name;
};


      
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to