From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 4 10:37:30 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 309DF106566B for ; Wed, 4 Jan 2012 10:37:30 +0000 (UTC) (envelope-from nec556@retena.com) Received: from resmaa12.ono.com (smtp12.ono.com [62.42.230.20]) by mx1.freebsd.org (Postfix) with ESMTP id BC6E18FC1B for ; Wed, 4 Jan 2012 10:37:29 +0000 (UTC) Received: from GogPortatil.retena.com (85.219.45.167) by resmaa12.ono.com (8.5.113) (authenticated as nec556@retena.com) id 4EFDA3B5000F8242; Wed, 4 Jan 2012 11:37:28 +0100 Message-ID: <4EFDA3B5000F8242@> (added by postmaster@resmaa12.ono.com) X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 04 Jan 2012 11:37:22 +0100 To: Shrikanth Kamath ,freebsd-hackers@freebsd.org From: Eduardo Morras In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Antivirus: AVG for E-mail 10.0.1416 [2109/4121] Cc: Subject: Re: DTrace and CTF interpretation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 10:37:30 -0000 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"