By user12625760 on Mar 13, 2007
With thanks to Brendan Gregg for the encouragement I have improved the argument handling in scsi.d. I asy improved carefully as it is still not right. Mainly as I am too subborn to wrap the thing in a shell script when dtrace can so nearly do what I want. Then new argument syntax is as follows:
scsi.d [ @T timeinseconds ] [ hba [ instamce ]]
The “@T” is because dtrace won't let you use “-T” as it does not stop argument processing after reading the arguments on the first line of the script. If/When it does I will change it to be “-T”.
So now you can trace a particular HBA without setting a timeout, something you previously could not do and all the strange quotes are no longer required.
Additionally all the thread local variables have become clause local variables,“self “ becomes “this” which should reduce the impact of the script on the system.
So I bring you version 1.10 of scsi.d.