Skip to content

Commit

Permalink
ata: libata: add qc->flags in ata_qc_complete_template tracepoint
Browse files Browse the repository at this point in the history
commit 540a92b upstream.

Add flags value to check the result of ata completion

Fixes: 255c03d ("libata: Add tracepoints")
Cc: stable@vger.kernel.org
Signed-off-by: Edward Wu <edwardwu@realtek.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
netedwardwu authored and gregkh committed Jun 29, 2022
1 parent 156427b commit 273106c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/trace/events/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ DECLARE_EVENT_CLASS(ata_qc_complete_template,
__entry->hob_feature = qc->result_tf.hob_feature;
__entry->nsect = qc->result_tf.nsect;
__entry->hob_nsect = qc->result_tf.hob_nsect;
__entry->flags = qc->flags;
),

TP_printk("ata_port=%u ata_dev=%u tag=%d flags=%s status=%s " \
Expand Down

0 comments on commit 273106c

Please sign in to comment.