Hi, dtracers.

Sometimes I have trouble with dtracing at complicated structure access.

DTrace seems to make mistakes at calculation of:

(1) nested structures' alignment
(2) total size of structure, which has un-aligned field at the end of it

Bugster 6734858 seems to be as same as (2) of my problems.

# http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6734858

I think these mistakes are caused by:

(1) ctf_type_align() does not care about structure fields other than first
(2) ctf_type_size() does not calculate tail padding for alignment

and I confirmed these are fixed by the patch attached to this post, 
on OpenSolaris 2009.06, with onnv_111 sources.

Please comment on these problems and my patch !
-- 
This message posted from opensolaris.org

Attachment: ctf_badalign.patch
Description: Binary data

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

Reply via email to