]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: core: Trace SCSI sense data
authorBart Van Assche <bvanassche@acm.org>
Thu, 18 May 2023 19:31:58 +0000 (12:31 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 31 May 2023 15:05:34 +0000 (11:05 -0400)
commit8bb1c6243c4ba397958fe67837e075bd1bb8d3b4
tree5c16364305fdf28ee18ee28d075a0974abbd3678
parent416dace649c45fdbf7a9d62dfc060fdbee9c8bea
scsi: core: Trace SCSI sense data

If a command fails, SCSI sense data is essential to determine why it
failed. Hence make the sense key, ASC and ASCQ codes available in the
ftrace output.

Cc: Niklas Cassel <niklas.cassel@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230518193159.1166304-3-bvanassche@acm.org
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/trace/events/scsi.h