Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Jan 2012 11:37:22 +0100
From:      Eduardo Morras <nec556@retena.com>
To:        Shrikanth Kamath <shrikanth07@gmail.com>,freebsd-hackers@freebsd.org
Subject:   Re: DTrace and CTF interpretation
Message-ID:  <4EFDA3B5000F8242@> (added by postmaster@resmaa12.ono.com)
In-Reply-To: <CAEOAkMWr9i7objdbi171oPLrJTY_0optL3QOKFgnDvDvx5XQxQ@mail.g mail.com>
References:  <CAEOAkMWr9i7objdbi171oPLrJTY_0optL3QOKFgnDvDvx5XQxQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EFDA3B5000F8242>