DTrace and CTF interpretation

Eduardo Morras nec556 at retena.com
Wed Jan 4 10:37:30 UTC 2012


At 10:34 04/01/2012, Shrikanth Kamath wrote:
>I am facing problem with the CTF interpretation of a member in structure,
>
>e.g
>struct foo {
>     struct bar a;
>     uint32_t   b;
>     ...
>     uint32_t  prefix[1];
>}
>
>When converting the above member prefix, I enabled the CTF debugs,
>here is the o/p
>
>DEBUG: die 87324: mem 87636: creating member
>DEBUG: die 87324: got mloff ffffffffffffffc0
>DEBUG: die 87324: mem 87636: created "prefix" (off 4294966784 sz 0)
>
>When I use DTrace to dump this prefix field (in a structure that is
>argument to a function)
>it gives invalid access error. I guess that is expected because of the
>strange offset.
>
>Anybody knowing how to fix this in CTF convert path?

Perhaps DTrace gives the error because size is 0. Offset isn't strange.

>_______________________________________________
>freebsd-hackers at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"




More information about the freebsd-hackers mailing list