From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 4 10:05:42 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 F3F66106566B for ; Wed, 4 Jan 2012 10:05:41 +0000 (UTC) (envelope-from shrikanth07@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8D6238FC14 for ; Wed, 4 Jan 2012 10:05:41 +0000 (UTC) Received: by wibhr1 with SMTP id hr1so16877332wib.13 for ; Wed, 04 Jan 2012 02:05:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=NahQD0Af/8Www8ZOMN/HdaJJIqkKbqTV2pa4r+OtH4U=; b=TuYKWGdB6SY3GG2BztUQcYOlsY82E4pPJmnI7ta+zbbzQbGtGVbZCs68eGF8SqNZ+E qDXhcwgEYHoMdOgNSMtYhEDKqNxF/2WS8j31IM59QyQh3HedV6wmH1hdFre29QxEdtHu Y6cBs1kbpxyuaPeGZaBkMjwPCIA1H7zr/BrZI= MIME-Version: 1.0 Received: by 10.180.8.229 with SMTP id u5mr121033916wia.9.1325669682419; Wed, 04 Jan 2012 01:34:42 -0800 (PST) Received: by 10.223.52.92 with HTTP; Wed, 4 Jan 2012 01:34:42 -0800 (PST) Date: Wed, 4 Jan 2012 15:04:42 +0530 Message-ID: From: Shrikanth Kamath To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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:05:42 -0000 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?