diff options
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index ff57367f5f0c..be1722a4163a 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -70,6 +70,9 @@ | |||
70 | #include <linux/pm_runtime.h> | 70 | #include <linux/pm_runtime.h> |
71 | #include <linux/platform_device.h> | 71 | #include <linux/platform_device.h> |
72 | 72 | ||
73 | #define CREATE_TRACE_POINTS | ||
74 | #include <trace/events/libata.h> | ||
75 | |||
73 | #include "libata.h" | 76 | #include "libata.h" |
74 | #include "libata-transport.h" | 77 | #include "libata-transport.h" |
75 | 78 | ||
@@ -4904,6 +4907,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc) | |||
4904 | */ | 4907 | */ |
4905 | if (unlikely(ata_tag_internal(qc->tag))) { | 4908 | if (unlikely(ata_tag_internal(qc->tag))) { |
4906 | fill_result_tf(qc); | 4909 | fill_result_tf(qc); |
4910 | trace_ata_qc_complete_internal(qc); | ||
4907 | __ata_qc_complete(qc); | 4911 | __ata_qc_complete(qc); |
4908 | return; | 4912 | return; |
4909 | } | 4913 | } |
@@ -4914,6 +4918,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc) | |||
4914 | */ | 4918 | */ |
4915 | if (unlikely(qc->flags & ATA_QCFLAG_FAILED)) { | 4919 | if (unlikely(qc->flags & ATA_QCFLAG_FAILED)) { |
4916 | fill_result_tf(qc); | 4920 | fill_result_tf(qc); |
4921 | trace_ata_qc_complete_failed(qc); | ||
4917 | ata_qc_schedule_eh(qc); | 4922 | ata_qc_schedule_eh(qc); |
4918 | return; | 4923 | return; |
4919 | } | 4924 | } |
@@ -4924,6 +4929,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc) | |||
4924 | if (qc->flags & ATA_QCFLAG_RESULT_TF) | 4929 | if (qc->flags & ATA_QCFLAG_RESULT_TF) |
4925 | fill_result_tf(qc); | 4930 | fill_result_tf(qc); |
4926 | 4931 | ||
4932 | trace_ata_qc_complete_done(qc); | ||
4927 | /* Some commands need post-processing after successful | 4933 | /* Some commands need post-processing after successful |
4928 | * completion. | 4934 | * completion. |
4929 | */ | 4935 | */ |
@@ -5071,7 +5077,7 @@ void ata_qc_issue(struct ata_queued_cmd *qc) | |||
5071 | } | 5077 | } |
5072 | 5078 | ||
5073 | ap->ops->qc_prep(qc); | 5079 | ap->ops->qc_prep(qc); |
5074 | 5080 | trace_ata_qc_issue(qc); | |
5075 | qc->err_mask |= ap->ops->qc_issue(qc); | 5081 | qc->err_mask |= ap->ops->qc_issue(qc); |
5076 | if (unlikely(qc->err_mask)) | 5082 | if (unlikely(qc->err_mask)) |
5077 | goto err; | 5083 | goto err; |