From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 10 08:21:03 2011 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 D6497106566B for ; Wed, 10 Aug 2011 08:21:03 +0000 (UTC) (envelope-from shrikanth07@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6E6458FC17 for ; Wed, 10 Aug 2011 08:21:03 +0000 (UTC) Received: by fxe4 with SMTP id 4so951711fxe.13 for ; Wed, 10 Aug 2011 01:21:02 -0700 (PDT) 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=QSelSszN5h2DgLktDhiOL7EK02DKdYwxFflyJ6z+znw=; b=dqTmHto2pdsVuiCwbNyDNgyCTYzBN8Ax7AWV9bjFMGR7N6A97zVDESaGcAqBw2Lv8Y K0K03FzV5CS1MVwxsn71fG0PF7IBxFbImvLZBhQB/sVgPenib/JGXtSG7R5nE4Ikc4cY B9kLpbrD77pa/iR8OE3d1BjQN3n4hikghDr64= MIME-Version: 1.0 Received: by 10.223.75.194 with SMTP id z2mr1106629faj.89.1312963146430; Wed, 10 Aug 2011 00:59:06 -0700 (PDT) Received: by 10.223.159.68 with HTTP; Wed, 10 Aug 2011 00:59:06 -0700 (PDT) Date: Wed, 10 Aug 2011 13:29:06 +0530 Message-ID: From: Shrikanth Kamath To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: DTrace unable to dump typedef'ed argument 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, 10 Aug 2011 08:21:03 -0000 I found this on a FreeBSD 8.1 box... %dtrace -l -f rtalloc_fib -v ... Argument Types args[0]: struct route * args[1]: (unknown) The function defined in sys/net/route.c: void rtalloc_fib(struct route *ro, u_int fibnum) u_int is typedef unsigned int I checked the ctfdump for /boot/kernel/kernel and found u_int is a resolved type. [14077] FUNC (rtalloc_fib) returns: 29 args: (1335, 5) Checking the CTF table "5" is found to be a resolved typedef. <4> INTEGER unsigned int encoding=0x0 offset=0 bits=32 <5> TYPEDEF u_int refers to 4 But since it shows unknown with dtrace -l -f o/p, one cannot directly use args[1]. Is this a known problem, any fix or workaround? -- Shrikanth R K