Re: [PATCH v2] tracing: Add a debug_trace_printk() function
From: Steven Rostedt
Date: Mon Jul 31 2023 - 10:34:54 EST
On Sun, 30 Jul 2023 10:43:21 +0900
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx> wrote:
> Sorry, I missed this patch.
> As far as it depends CONFIG_FTRACE_DEBUG_PRINT, this looks good to me.
>
> Reviewed-by: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
Thanks, note I've been holding off on applying it to make sure I really do
need it. I have used it twice since posting. It's great to debug something
in the tracing infrastructure ;-)
>
> BTW, what about adding generic trace_loglvl_printk(loglvl, fmt, ...)?
>
> This is a macro that will be expanded to 'trace_loglvl_<N>_printk(fmt, ...)'
> where N is 0-9. Then we can filter the trace_loglvl_N_printk event to a
> specific instance.
Hmm, interesting idea. I'll have to think about it.
-- Steve