Thread (18 messages) 18 messages, 5 authors, 2024-06-25

Re: [PATCH 2/8] tracing: do not trace kernel_text_address()

From: Andy Chiu <hidden>
Date: 2024-06-17 02:10:21
Also in: linux-riscv, lkml, llvm

On Thu, Jun 13, 2024 at 9:32 PM Steven Rostedt [off-list ref] wrote:
On Thu, 13 Jun 2024 15:11:07 +0800
Andy Chiu [off-list ref] wrote:
quoted
kernel_text_address() and __kernel_text_address() are called in
arch_stack_walk() of riscv. This results in excess amount of un-related
traces when the kernel is compiled with CONFIG_TRACE_IRQFLAGS. The
situation worsens when function_graph is active, as it calls
local_irq_save/restore in each function's entry/exit. This patch adds
both functions to notrace, so they won't show up on the trace records.
I rather not add notrace just because something is noisy.

You can always just add:

 echo '*kernel_text_address' > /sys/kernel/tracing/set_ftrace_notrace

and achieve the same result.
Sounds good, I am going to drop this patch for the next revision
-- Steve
Thanks,
Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help