Skip to contentSkip to conversation

libtraceevent: Add NEED_RESCHED_LAZY flag

PATCH New Steven Rostedt 1 participant 1 message Apr 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtraceevent: Add NEED_RESCHED_LAZY flag

From: "Steven Rostedt (Google)" <[email protected]>

Starting with v6.13 the IRQS_NOSUPPORT latency flag was replaced by the NEED_RSCHED_LAZY flag. Update the library to do the same.

---
 include/traceevent/event-parse.h | 2 +-
 src/event-parse.c                | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)
include/traceevent/event-parse.h +1 -1
index 2b39b38..1a7984b 100644
@@ -406,7 +406,7 @@ static inline int tep_is_bigendian(void)
 /* taken from kernel/trace/trace.h */
 enum trace_flag_type {
 	TRACE_FLAG_IRQS_OFF		= 0x01,
-	TRACE_FLAG_IRQS_NOSUPPORT	= 0x02,
+	TRACE_FLAG_NEED_RESCHED_LAZY	= 0x02,
 	TRACE_FLAG_NEED_RESCHED		= 0x04,
 	TRACE_FLAG_HARDIRQ		= 0x08,
 	TRACE_FLAG_SOFTIRQ		= 0x10,
src/event-parse.c +2 -4
index f2e50b0..dcaf27b 100644
@@ -6809,11 +6809,9 @@ static void data_latency_format(struct tep_handle *tep, struct trace_seq *s,
 	softirq = lat_flags & TRACE_FLAG_SOFTIRQ;
 
 	trace_seq_printf(&sq, "%c%c%c",
-	       (lat_flags & TRACE_FLAG_IRQS_OFF) ? 'd' :
-	       (lat_flags & TRACE_FLAG_IRQS_NOSUPPORT) ?
-	       'X' : '.',
+	       (lat_flags & TRACE_FLAG_IRQS_OFF) ? 'd' : '.',
 	       (lat_flags & TRACE_FLAG_NEED_RESCHED) ?
-	       'N' : '.',
+	       'N' : (lat_flags &  TRACE_FLAG_NEED_RESCHED_LAZY) ? 'L' :'.',
 	       (hardirq && softirq) ? 'H' :
 	       hardirq ? 'h' : softirq ? 's' : '.');
 
Signature · 1 line
2.47.2