libtraceevent: Add NEED_RESCHED_LAZY flag
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.
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(-)
include/traceevent/event-parse.h +1 -1
@@ -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
@@ -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