On Thu, Jun 13, 2024 at 9:32 PM Steven Rostedt <[email protected]> wrote: > > On Thu, 13 Jun 2024 15:11:07 +0800 > Andy Chiu <[email protected]> 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

