---
name: "stapprobes.scsi"
section: "5"
platform: "linux"
package: "systemtap"
version: "0.0.20080705-1+lenny1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/stapprobes.scsi"
---

# stapprobes.scsi(5)

systemtap scsi probe points

## NAME

stapprobes.scsi - systemtap scsi probe points

## DESCRIPTION

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

- **scsi.ioentry**

  Fires when SCSI mid layer prepares a SCSI request

  **Arguments:**

  *disk\_major*\
     The major number of the disk

  *disk\_minor*\
     The minor number of the disk

  *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. \*/

- **scsi.iodispatching**

  Fires when the SCSI mid layer dispatches a SCSI command to the low level driver

  **Arguments:**

  *host\_no*\
     The host number

  *channel*\
     The channel number

  *lun*\
     The lun number

  *dev\_id*\
     The scsi device id

  *device\_state*\
     The current state of the device.

  *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,

  *request\_buffer*\
     The request buffer address

  *req\_bufflen*\
     The request buffer length

- **scsi.iodone**

  Fires when a SCSI command is done by low level driver and enqueued into the done queue.

  **Arguments:**

  *host\_no*\
     The host number

  *channel*\
     The channel number

  *lun*\
     The lun number

  *dev\_id*\
     The scsi device id

  *device\_state*\
     The current state of the device

  *data\_direction*\
     The data\_direction specifies whether this command is from/to the device.

- **scsi.iocompleted**

  Fires when SCSI mid layer runs the completion processing for  block device I/O requests

  **Arguments:**

  *host\_no*\
     The host number

  *channel*\
     The channel number

  *lun*\
     The lun number

  *dev\_id*\
     The scsi device id

  *device\_state*\
     The current state of the device

  *data\_direction*\
     The data\_direction specifies whether this command is from/to the device.

  *goodbytes*\
     The bytes completed.

## SEE ALSO

[*stap*(1)](/stap/1.md), [*stapprobes*(5)](/stapprobes/5.md),
