[PATCH] libtraceevent: Add NEED_RESCHED_LAZY flag
Steven Rostedt <[email protected]> Wed, 2 Apr 2025 12:23:03 -0400
| Newsgroups | org.kernel.vger.linux-trace-devel |
|---|---|
| Message-ID | <[email protected]> |
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. Signed-off-by: Steven Rostedt (Google) <[email protected]> --- include/traceevent/event-parse.h | 2 +- src/event-parse.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/traceevent/event-parse.h b/include/traceevent/event-parse.h index 2b39b38..1a7984b 100644 --- a/include/traceevent/event-parse.h +++ b/include/traceevent/event-parse.h @@ -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, diff --git a/src/event-parse.c b/src/event-parse.c index f2e50b0..dcaf27b 100644 --- a/src/event-parse.c +++ b/src/event-parse.c @@ -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' : '.'); -- 2.47.2