On Wed, May 12, 2010 at 06:53:47PM +0200, Mark Phalan wrote:
> Are the padding rules supposed to be consistent between the compiler and
> dtrace on x64?
> 
> 
> # cat /tmp/s.d 
> ...
> 
> # cat /tmp/s.d 
> ...

Did you mean to catn /tmp/x.c and /tmp/s.d?

> $ cc -m64 /tmp/x.c -o /tmp/x

Dunno what x.c contains...  I'm assuming something very similar to what
s.d contains.

> $ /tmp/x
> my_data: 16
> more_data: 24
> offset: 8
> 
> # dtrace -qs /tmp/s.d
> my_data: 16
> more_data: 20
> offset: 4
> 
> Bug?

Probably, I think.  The code here is all 64-bit, so differences in
alignment in ILP32 vs. LP64 cannot be the problem.

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

Reply via email to