From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 10:54:55 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 8EB681065672 for ; Tue, 16 Aug 2011 10:54:55 +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 237678FC12 for ; Tue, 16 Aug 2011 10:54:54 +0000 (UTC) Received: by fxe4 with SMTP id 4so5350664fxe.13 for ; Tue, 16 Aug 2011 03:54:54 -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:content-transfer-encoding; bh=4Obz9CSQtIpUEKOlxI8A1cE5PLb1MaXpSBKHoomQTA4=; b=lS/zJcLGNmCS1I68f0AQUGdTjqDmSiy5kUupS+hWFxvrpyN7fKVokIuH26mmMs/9bH hafdR89OMBMJRcH7uMueHXtqWscnl1ealmXgN+u+AKvGXjnT9k+LqBlyDzrbKUjNK+5X 9ga6YaLxti6gJyAVrQr3uU5YvRpK986gh7cI8= MIME-Version: 1.0 Received: by 10.223.30.214 with SMTP id v22mr6952642fac.108.1313492093791; Tue, 16 Aug 2011 03:54:53 -0700 (PDT) Received: by 10.223.159.68 with HTTP; Tue, 16 Aug 2011 03:54:53 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Aug 2011 16:24:53 +0530 Message-ID: From: Shrikanth Kamath To: ambrosehuang ambrose Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 16 Aug 2011 10:54:55 -0000 Nice. I checked that, things are looking more interesting now :) Thanks Ambrose. On Mon, Aug 15, 2011 at 6:29 AM, ambrosehuang ambrose wrote: > 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 >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0args[0]: struct route * >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0args[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=3D0x0 offset=3D0 bits=3D32 >>> <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" >> > >