Skip to contentSkip to conversation

ata: libata: add qc->flags in ata_qc_complete_template tracepoint

PATCH Superseded Edward Wu 2 participants 8 messages Jun 16, 2022 – Jun 17, 2022

Subsystems (3)
lore
Share & tools
lore

Edward Wu

author
#0 lore raw

PATCH 1/1 ata: libata: add qc->flags in ata_qc_complete_template tracepoint

Add flags value to check the result of ata completion

---
 include/trace/events/libata.h | 1 +
 1 file changed, 1 insertion(+)
include/trace/events/libata.h +1 -0
index d4e631aa976f..6025dd8ba4aa 100644
@@ -288,6 +288,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 " \
Signature · 1 line
2.17.1
#1 lore raw
Quoted 12 lines · Edward Wu

Add flags value to check the result of ata completion

---
 include/trace/events/libata.h | 1 +
 1 file changed, 1 insertion(+)
include/trace/events/libata.h +0 -0
index d4e631aa976f..6025dd8ba4aa 100644

include/trace/events/libata.h DECLARE_EVENT_CLASS(ata_qc_complete_template, · line 294

Quoted 7 lines
include/trace/events/libata.h +1 -0
@@ -288,6 +288,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 " \

Doesn't this need a Fixes tag ?

Signature · 2 lines
Damien Le Moal
Western Digital Research
author
#2 lore raw

PATCH v2 1/1 ata: libata: add qc->flags in ata_qc_complete_template tracepoint

In reply to Edward Wu

Add flags value to check the result of ata completion

Fixes 255c03d15a29 ("libata: Add tracepoints")

---
v2:
- Add Fixes tag

 include/trace/events/libata.h | 1 +
 1 file changed, 1 insertion(+)
include/trace/events/libata.h +1 -0
index d4e631aa976f..6025dd8ba4aa 100644
@@ -288,6 +288,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 " \
Signature · 1 line
2.17.1
#3 lore raw
Quoted 4 lines · Edward Wu

Add flags value to check the result of ata completion

Fixes 255c03d15a29 ("libata: Add tracepoints")

What is this Link tag for ? I do not think it is needed. And please add:

Quoted 20 lines

---
v2:
- Add Fixes tag

  include/trace/events/libata.h | 1 +
  1 file changed, 1 insertion(+)
include/trace/events/libata.h +1 -0
index d4e631aa976f..6025dd8ba4aa 100644
@@ -288,6 +288,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 " \
Signature · 2 lines
Damien Le Moal
Western Digital Research
author
#4 lore raw

PATCH v3 1/1 ata: libata: add qc->flags in ata_qc_complete_template tracepoint

In reply to Edward Wu

Add flags value to check the result of ata completion

Fixes 255c03d15a29 ("libata: Add tracepoints")

---
Thanks for your kindly guiding.

 include/trace/events/libata.h | 1 +
 1 file changed, 1 insertion(+)
include/trace/events/libata.h +1 -0
index d4e631aa976f..6025dd8ba4aa 100644
@@ -288,6 +288,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 " \
Signature · 1 line
2.17.1
#5 lore raw
Quoted 5 lines · Edward Wu

Add flags value to check the result of ata completion

Fixes 255c03d15a29 ("libata: Add tracepoints")

Looks good. But please do not randomly add tags like the above ack. I never sent that ! And since I will be applying this patch, I will add my signed-of-by tag, not a acked-by tag.

Quoted 19 lines

---
Thanks for your kindly guiding.

 include/trace/events/libata.h | 1 +
 1 file changed, 1 insertion(+)
include/trace/events/libata.h +1 -0
index d4e631aa976f..6025dd8ba4aa 100644
@@ -288,6 +288,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 " \
Signature · 2 lines
Damien Le Moal
Western Digital Research
author
#6 lore raw

PATCH v4 1/1 ata: libata: add qc->flags in ata_qc_complete_template tracepoint

In reply to Edward Wu

Add flags value to check the result of ata completion

Fixes 255c03d15a29 ("libata: Add tracepoints")

---
Fixed, thanks again

 include/trace/events/libata.h | 1 +
 1 file changed, 1 insertion(+)
include/trace/events/libata.h +1 -0
index d4e631aa976f..6025dd8ba4aa 100644
@@ -288,6 +288,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 " \
Signature · 1 line
2.17.1
#7 lore raw
Quoted 16 lines · Edward Wu

Add flags value to check the result of ata completion

Fixes 255c03d15a29 ("libata: Add tracepoints")

---
Fixed, thanks again

 include/trace/events/libata.h | 1 +
 1 file changed, 1 insertion(+)
include/trace/events/libata.h +0 -0
index d4e631aa976f..6025dd8ba4aa 100644

include/trace/events/libata.h DECLARE_EVENT_CLASS(ata_qc_complete_template, · line 294

Quoted 7 lines
include/trace/events/libata.h +1 -0
@@ -288,6 +288,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 " \

Applied to for-5.19-fixes. Thanks !

Signature · 2 lines
Damien Le Moal
Western Digital Research