]> Gentwo Git Trees - linux/.git/commit
ftrace: Show timings of how long nop patching took
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 17 Oct 2024 15:31:05 +0000 (11:31 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 30 Oct 2024 23:20:53 +0000 (19:20 -0400)
commit36a367b8912a3aac023d9e35c815f7b1e609f4a3
tree300a357a0e9afc54dde72c81954695a1000eeb3d
parent8b0cb3a4c5e85dda8957ba6a4c8c081a9aec6e80
ftrace: Show timings of how long nop patching took

Since the beginning of ftrace, the code that did the patching had its
timings saved on how long it took to complete. But this information was
never exposed. It was used for debugging and exposing it was always
something that was on the TODO list. Now it's time to expose it. There's
even a file that is where it should go!

Also include how long patching modules took as a separate value.

 # cat /sys/kernel/tracing/dyn_ftrace_total_info
 57680 pages:231 groups: 9
 ftrace boot update time = 14024666 (ns)
 ftrace module total update time = 126070 (ns)

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/20241017113105.1edfa943@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.c
kernel/trace/trace.h