Date: Tue, 16 Aug 2011 16:24:53 +0530 From: Shrikanth Kamath <shrikanth07@gmail.com> To: ambrosehuang ambrose <ambrosehua@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace unable to dump typedef'ed argument Message-ID: <CAEOAkMVHMWKd4nw_kpJVb2PSwFQXMomBc2SYaZ96P%2BRS1KppoA@mail.gmail.com> In-Reply-To: <CAMwoQQ4WmY1V=_j1oJn46GGu_KA0kMe8ikodSckN_5eRbwu8aQ@mail.gmail.com> References: <CAEOAkMXqWiO6QZQ8qAxH6ToX%2B2Em9mrTLU6h8Nqa=AUmc_LkYg@mail.gmail.com> <CAMwoQQ7i9_zB52U98jx0S2ZzfYTupM8Jfte94Rp3MrfuYApahA@mail.gmail.com> <CAMwoQQ4WmY1V=_j1oJn46GGu_KA0kMe8ikodSckN_5eRbwu8aQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Nice. I checked that, things are looking more interesting now :) Thanks Ambrose. On Mon, Aug 15, 2011 at 6:29 AM, ambrosehuang ambrose <ambrosehua@gmail.com> wrote: > it has been fixed by > kern/159064: [dtrace] MFC request for dtrace to fix "invalid probe > specifier" > > 2011/8/14 ambrosehuang ambrose <ambrosehua@gmail.com> >> >> same problem on 8.2-stable >> >> 2011/8/10 Shrikanth Kamath <shrikanth07@gmail.com> >>> >>> 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" >> > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEOAkMVHMWKd4nw_kpJVb2PSwFQXMomBc2SYaZ96P%2BRS1KppoA>