From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 14 00:41:49 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 8BCAD106564A for ; Sun, 14 Aug 2011 00:41:49 +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 44DC28FC18 for ; Sun, 14 Aug 2011 00:41:49 +0000 (UTC) Received: by qwc9 with SMTP id 9so2700659qwc.13 for ; Sat, 13 Aug 2011 17:41:48 -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=uhwWosuAxrXnUm1qi1oVnxbv02bfAXLJCjWxFg02i0I=; b=DKnAjxg8vKixxURPvmClhUV5L81V+GWEp1luLOyedyxHdyO/bycmgJrqqFXj0+3EJ8 V79d4oEG/9FgdOimtJyxuNHm0kW1H9cK46nZBiRtcE5NYJxNE93rbvHJGDCT3QId5zdL Cfh9LmyxUhDoCgK6zT9brGDt+qScqffqq+1iE= MIME-Version: 1.0 Received: by 10.229.68.12 with SMTP id t12mr1552676qci.254.1313282508593; Sat, 13 Aug 2011 17:41:48 -0700 (PDT) Received: by 10.229.53.212 with HTTP; Sat, 13 Aug 2011 17:41:48 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Aug 2011 08:41:48 +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: Sun, 14 Aug 2011 00:41:49 -0000 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" >