What is the status of DTrace substr function? It was integrated into Neveda build 15 and it is available on Solaris 10 systems (U4 - u8 x64) I am working on. I cannot find any documentation on it, and there appears to be a bug in it that I cannot reproduced on OpenSolaris.
bash-3.00# more tst.d #!/usr/sbin/dtrace BEGIN { e = "/devices/pci-89789/jjjk"; seconds=5; } profile:::tick-1sec { printf("clause 1:string=%s\n", substr(e,0,9 )== "/devices/" ? "equal" : "notequal") } profile:::tick-1sec { printf("clause 2:string=%s\n", substr(e,0,9 )== "/devices/" ? "equal" : "notequal") } profile:::tick-1sec { seconds--; } profile:::tick-1sec / seconds < 1/ { exit(0); } bash-3.00# dtrace -s./tst.d dtrace: script './tst.d' matched 5 probes CPU ID FUNCTION:NAME 0 58853 :tick-1sec clause 1:string=equal 0 58853 :tick-1sec clause 2:string=equal 0 58853 :tick-1sec clause 1:string=equal 0 58853 :tick-1sec clause 2:string=equal 0 58853 :tick-1sec clause 1:string=notequal 0 58853 :tick-1sec clause 2:string=equal 0 58853 :tick-1sec clause 1:string=notequal 0 58853 :tick-1sec clause 2:string=equal 0 58853 :tick-1sec clause 1:string=notequal 0 58853 :tick-1sec clause 2:string=equal 0 58853 :tick-1sec thxs -- This message posted from opensolaris.org _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org