Skip to content

Commit 24e0e61

Browse files
Shrikanth Hegderostedt
authored andcommitted
tracing: Print lazy preemption model
Print lazy preemption model in ftrace header when latency-format=1. # cat /sys/kernel/debug/sched/preempt none voluntary full (lazy) Without patch: latency: 0 us, #232946/232946, CPU#40 | (M:unknown VP:0, KP:0, SP:0 HP:0 #P:80) ^^^^^^^ With Patch: latency: 0 us, #1897938/25566788, CPU#16 | (M:lazy VP:0, KP:0, SP:0 HP:0 #P:80) ^^^^ Now that lazy preemption is part of the kernel, make sure the tracing infrastructure reflects that. Link: https://lore.kernel.org/[email protected] Signed-off-by: Shrikanth Hegde <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent a485ea9 commit 24e0e61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/trace/trace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4122,6 +4122,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
41224122
preempt_model_none() ? "server" :
41234123
preempt_model_voluntary() ? "desktop" :
41244124
preempt_model_full() ? "preempt" :
4125+
preempt_model_lazy() ? "lazy" :
41254126
preempt_model_rt() ? "preempt_rt" :
41264127
"unknown",
41274128
/* These are reserved for later use */

0 commit comments

Comments
 (0)