diff options
author | Hannes Reinecke <hare@suse.de> | 2015-03-27 11:46:38 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-03-27 11:59:22 -0400 |
commit | 255c03d15a29a3ccb7a40d247f02bf38ba3f3592 (patch) | |
tree | f5e7b15d1d04622a464a5eb3d22f5cd171af56f0 /drivers/ata/libata-eh.c | |
parent | a1524f226a02aa6edebd90ae0752e97cfd78b159 (diff) |
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>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 77ef43e320ea..07f41be38fbe 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -46,6 +46,7 @@ | |||
46 | 46 | ||
47 | #include <linux/libata.h> | 47 | #include <linux/libata.h> |
48 | 48 | ||
49 | #include <trace/events/libata.h> | ||
49 | #include "libata.h" | 50 | #include "libata.h" |
50 | 51 | ||
51 | enum { | 52 | enum { |
@@ -2291,6 +2292,7 @@ static void ata_eh_link_autopsy(struct ata_link *link) | |||
2291 | all_err_mask |= qc->err_mask; | 2292 | all_err_mask |= qc->err_mask; |
2292 | if (qc->flags & ATA_QCFLAG_IO) | 2293 | if (qc->flags & ATA_QCFLAG_IO) |
2293 | eflags |= ATA_EFLAG_IS_IO; | 2294 | eflags |= ATA_EFLAG_IS_IO; |
2295 | trace_ata_eh_link_autopsy_qc(qc); | ||
2294 | } | 2296 | } |
2295 | 2297 | ||
2296 | /* enforce default EH actions */ | 2298 | /* enforce default EH actions */ |
@@ -2325,7 +2327,7 @@ static void ata_eh_link_autopsy(struct ata_link *link) | |||
2325 | eflags |= ATA_EFLAG_DUBIOUS_XFER; | 2327 | eflags |= ATA_EFLAG_DUBIOUS_XFER; |
2326 | ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask); | 2328 | ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask); |
2327 | } | 2329 | } |
2328 | 2330 | trace_ata_eh_link_autopsy(dev, ehc->i.action, all_err_mask); | |
2329 | DPRINTK("EXIT\n"); | 2331 | DPRINTK("EXIT\n"); |
2330 | } | 2332 | } |
2331 | 2333 | ||