scsi.d improvements.

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.

Tags:

Comments:

Post a Comment:
Comments are closed for this entry.
About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today