mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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:
parent
a1524f226a
commit
255c03d15a
5 changed files with 488 additions and 3 deletions
|
@ -70,6 +70,9 @@
|
|||
#include <linux/pm_runtime.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include <trace/events/libata.h>
|
||||
|
||||
#include "libata.h"
|
||||
#include "libata-transport.h"
|
||||
|
||||
|
@ -4904,6 +4907,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc)
|
|||
*/
|
||||
if (unlikely(ata_tag_internal(qc->tag))) {
|
||||
fill_result_tf(qc);
|
||||
trace_ata_qc_complete_internal(qc);
|
||||
__ata_qc_complete(qc);
|
||||
return;
|
||||
}
|
||||
|
@ -4914,6 +4918,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc)
|
|||
*/
|
||||
if (unlikely(qc->flags & ATA_QCFLAG_FAILED)) {
|
||||
fill_result_tf(qc);
|
||||
trace_ata_qc_complete_failed(qc);
|
||||
ata_qc_schedule_eh(qc);
|
||||
return;
|
||||
}
|
||||
|
@ -4924,6 +4929,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc)
|
|||
if (qc->flags & ATA_QCFLAG_RESULT_TF)
|
||||
fill_result_tf(qc);
|
||||
|
||||
trace_ata_qc_complete_done(qc);
|
||||
/* Some commands need post-processing after successful
|
||||
* completion.
|
||||
*/
|
||||
|
@ -5071,7 +5077,7 @@ void ata_qc_issue(struct ata_queued_cmd *qc)
|
|||
}
|
||||
|
||||
ap->ops->qc_prep(qc);
|
||||
|
||||
trace_ata_qc_issue(qc);
|
||||
qc->err_mask |= ap->ops->qc_issue(qc);
|
||||
if (unlikely(qc->err_mask))
|
||||
goto err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue