Andreas Sinz ??:
> This doesnt work too. Now i get this message:
>
> dtrace: failed to compile script ./amrr.d: line 5: operands have incompatible
> types: "long [15][1024]" + "struct pcinfo"
>
>
> Dexter
>
Hi Andreas,
I have verified the dtrace script on my Dell 1530 laptop, and the error
message does not come out. Did you just excute command 'dtrace -s
amrr.d' or './amrr.d'? And please check whether your script is the same
as below.
#!/usr/sbin/dtrace -s
#pragma D option quiet
fbt:iwh:iwh_amrr_ratectl:entry
{
printf("Now choose rate %d\n",
args[1]->in_rates.ir_rates[args[1]->in_txrate]);
}
And you can also try the one below.
#!/usr/sbin/dtrace -s
#pragma D option quiet
fbt:iwh:iwh_amrr_ratectl:entry
{
printf("Now the rate index is %x\n", args[1]->in_txrate);
}
------
Thanks,
Felix