summaryrefslogtreecommitdiffstats
path: root/man/tapset::scsi.3stap
blob: 63266e9396a2c58737406f45a6537cce700c02c0 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
.\" -*- nroff -*-
.TH TAPSET::SCSI 3stap "" "IBM"
.SH NAME
tapset::scsi \- systemtap scsi probe points

.\" macros
.de SAMPLE
.br
.RS
.nf
.nh
..
.de ESAMPLE
.hy
.fi
.RE
..

.SH DESCRIPTION

This family of probe points is used to probe the SCSI activities.
It contains the following probe points:

.P
.TP 
.B scsi.ioentry
Fires when SCSI mid layer prepares a SCSI request

.B Arguments:

.I disk_major
  The major number of the disk

.I disk_minor
  The minor number of the disk

.I device_state
  The current state of the device. The possible values could be:

        SDEV_CREATED = 1,    /* device created but not added to sysfs
                              * Only internal commands allowed (for inq) */
        SDEV_RUNNING = 2,    /* device properly configured
                              * All commands allowed */
        SDEV_CANCEL = 3,     /* beginning to delete device
                              * Only error handler commands allowed */
        SDEV_DEL = 4,        /* device deleted
                              * no commands allowed */
        SDEV_QUIESCE = 5,    /* Device quiescent.  No block commands
                              * will be accepted, only specials (which
                              * originate in the mid-layer) */
        SDEV_OFFLINE = 6,    /* Device offlined (by error handling or
                              * user request */
        SDEV_BLOCK = 7,      /* Device blocked by scsi lld.  No scsi
                              * commands from user or midlayer should be issued
                              * to the scsi lld. */

.P
.TP 
.B scsi.iodispatching
Fires when the SCSI mid layer dispatches a SCSI command to the low level driver

.B Arguments:

.I host_no
  The host number

.I channel
  The channel number

.I lun
  The lun number

.I dev_id
  The scsi device id

.I device_state
  The current state of the device. 

.I data_direction
  The data_direction specifies whether this command is from/to the device.
  The possible values could be:

        DMA_BIDIRECTIONAL = 0,
        DMA_TO_DEVICE = 1,
        DMA_FROM_DEVICE = 2,
        DMA_NONE = 3,

.I request_buffer
  The request buffer address

.I req_bufflen
  The request buffer length

.P
.TP 
.B scsi.iodone
Fires when a SCSI command is done by low level driver and enqueued into the done queue.

.B Arguments:

.I host_no
  The host number

.I channel
  The channel number

.I lun
  The lun number

.I dev_id
  The scsi device id

.I device_state
  The current state of the device

.I data_direction
  The data_direction specifies whether this command is from/to the device.

.P
.TP 
.B scsi.iocompleted
Fires when SCSI mid layer runs the completion processing for 
block device I/O requests

.B Arguments:

.I host_no
  The host number

.I channel
  The channel number

.I lun
  The lun number

.I dev_id
  The scsi device id

.I device_state
  The current state of the device

.I data_direction
  The data_direction specifies whether this command is from/to the device.

.I goodbytes
  The bytes completed.

.SH SEE ALSO
.IR stap (1),
.IR stapprobes (3stap)