]> www.infradead.org Git - users/hch/misc.git/commit
tracing: Print lazy preemption model
authorShrikanth Hegde <sshegde@linux.ibm.com>
Fri, 3 Jan 2025 09:36:47 +0000 (15:06 +0530)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 14 Jan 2025 14:44:33 +0000 (09:44 -0500)
commit24e0e610400aa2c765ee87b1b3c1401732b20fc5
tree10477c6787ec267f55ed71cf7ffa6107b1706201
parenta485ea9e3ef31ac4e3a2245cdb11fa73352b950f
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/20250103093647.575919-1-sshegde@linux.ibm.com
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c