]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tracing: Skip update_last_data() if cleared and remove active check for save_mod()
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 11 Mar 2025 01:30:03 +0000 (10:30 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 28 Mar 2025 12:39:56 +0000 (08:39 -0400)
commit486fbcb3806c0c7a5dbeea326c4a146fd4ed4eff
treec7c22dfcc95ff0ec996a2ca682d2a96f05b000ec
parent5dbeb56bb9589e1051f6af6877cd375f3a901afb
tracing: Skip update_last_data() if cleared and remove active check for save_mod()

If the last boot data is already cleared, there is no reason to update it
again. Skip if the TRACE_ARRAY_FL_LAST_BOOT is cleared.
Also, for calling save_mod() when module loading, we don't need to check
the trace is active or not because any module address can be on the
stacktrace.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/174165660328.1173316.15529357882704817499.stgit@devnote2
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c