libata: Add tracepoints
Add some tracepoints for ata_qc_issue, ata_qc_complete, and ata_eh_link_autopsy. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:

committed by
Tejun Heo

parent
a1524f226a
commit
255c03d15a
@@ -46,6 +46,7 @@
|
||||
|
||||
#include <linux/libata.h>
|
||||
|
||||
#include <trace/events/libata.h>
|
||||
#include "libata.h"
|
||||
|
||||
enum {
|
||||
@@ -2291,6 +2292,7 @@ static void ata_eh_link_autopsy(struct ata_link *link)
|
||||
all_err_mask |= qc->err_mask;
|
||||
if (qc->flags & ATA_QCFLAG_IO)
|
||||
eflags |= ATA_EFLAG_IS_IO;
|
||||
trace_ata_eh_link_autopsy_qc(qc);
|
||||
}
|
||||
|
||||
/* enforce default EH actions */
|
||||
@@ -2325,7 +2327,7 @@ static void ata_eh_link_autopsy(struct ata_link *link)
|
||||
eflags |= ATA_EFLAG_DUBIOUS_XFER;
|
||||
ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask);
|
||||
}
|
||||
|
||||
trace_ata_eh_link_autopsy(dev, ehc->i.action, all_err_mask);
|
||||
DPRINTK("EXIT\n");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user