[PATCH 2/8] tracing: do not trace kernel_text_address()
Andy Chiu
andy.chiu at sifive.com
Sun Jun 16 19:10:09 PDT 2024
On Thu, Jun 13, 2024 at 9:32 PM Steven Rostedt <rostedt at goodmis.org> wrote:
>
> On Thu, 13 Jun 2024 15:11:07 +0800
> Andy Chiu <andy.chiu at sifive.com> wrote:
>
> > 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
More information about the linux-riscv
mailing list