From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 15 00:59:06 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 49DBB106564A for ; Mon, 15 Aug 2011 00:59:06 +0000 (UTC) (envelope-from ambrosehua@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0A0E68FC17 for ; Mon, 15 Aug 2011 00:59:05 +0000 (UTC) Received: by qwc9 with SMTP id 9so3002390qwc.13 for ; Sun, 14 Aug 2011 17:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3H4FQyz0tJq/30Yzs1E1NFz+ElVaFHUjD0aMBNB4+I0=; b=UQYwkRuu960LeK3BVRNgSJJUET3oL5YaYY/AVMXGtk4B9Zb1Xo0HRkc3ThWX8IORHp UNJmDkNyetURaIuIxhiZqDdEkhWK4sdwF1i4ACTcg/PF27RCaq+t5ppWTiS4J4ib1+j/ tBcal2owt2Sho307mpS+waYqdelk70f4fNMLA= MIME-Version: 1.0 Received: by 10.229.31.67 with SMTP id x3mr861672qcc.292.1313369945179; Sun, 14 Aug 2011 17:59:05 -0700 (PDT) Received: by 10.229.53.212 with HTTP; Sun, 14 Aug 2011 17:59:05 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Aug 2011 08:59:05 +0800 Message-ID: From: ambrosehuang ambrose To: Shrikanth Kamath Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: 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: Mon, 15 Aug 2011 00:59:06 -0000 it has been fixed by kern/159064: [dtrace] MFC request for dtrace to fix "invalid probe specifier" 2011/8/14 ambrosehuang ambrose > same problem on 8.2-stable > > > 2011/8/10 Shrikanth Kamath > >> 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 >> _______________________________________________ >> 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 >> " >> > >