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

Steven Rostedt rostedt at goodmis.org
Thu Jun 13 06:32:33 PDT 2024


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.

-- Steve



More information about the linux-riscv mailing list