DTrace unable to dump typedef'ed argument

2011-08-10 Thread 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-unsubscr...@freebsd.org"


Re: DTrace unable to dump typedef'ed argument

2011-08-13 Thread 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-unsubscr...@freebsd.org"
>
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: DTrace unable to dump typedef'ed argument

2011-08-14 Thread ambrosehuang ambrose
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-unsubscr...@freebsd.org
>> "
>>
>
>
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: DTrace unable to dump typedef'ed argument

2011-08-16 Thread Shrikanth Kamath
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
>>>              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-unsubscr...@freebsd.org"
>>
>
>
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"