Hi ,
I am getting the below error when executed the following script on S10
U5 x86
but same script works fine on s10 sparc. Any clues?.
$uttsc_print_args.d 17726 1
dtrace: failed to compile script uttsc_print_args.d:
"/usr/lib/dtrace/sched.d", line 39: invalid cast expression:
"struct
polled_device" to "processor_info_t *"
# cat /uttsc_print_args.d
#!/usr/sbin/dtrace -s
# pragma D option quiet
pid$1::unlink:entry
{
/* @[ustack()]=count(); */
printf("%s: arg%d=%s\n",probefunc,$2,
$2==0 ? copyinstr(arg0) : $2==1 ? copyinstr(arg1) :
$2==2 ? copyinstr(arg2) : $2==3 ? copyinstr(arg1) :
$2==4 ? copyinstr(arg4) : $2==5 ? copyinstr(arg5) :
$2==6 ? copyinstr(arg6) : $2==7 ? copyinstr(arg7) :
$2==8 ? copyinstr(arg8) : $2==9 ? copyinstr(arg9) : "");
}
Thanks
P.S.M.Swamiji