Re: [PATCH v10 08/10] dyndbg: add print-to-tracefs, selftest with it - RFC

From: Steven Rostedt
Date: Fri Nov 12 2021 - 12:54:58 EST


On Fri, 12 Nov 2021 12:32:23 -0500
Jason Baron <jbaron@xxxxxxxxxx> wrote:

> Ok, it looks like Vincent's patch defines a dyndbg event and then uses
> 'trace_dyndbg()' to output to the 'main' log. So all dynamic output to
> the 'main' ftrace buffer goes through that event if I understand it
> correctly. Here's a pointer to it for reference:
>
> https://lore.kernel.org/lkml/20200825153338.17061-3-vincent.whitchurch@xxxxxxxx/
>
> Would you be ok with that approach?

Yes that approach is fine, because it doesn't actually go to the main log
unless you enable the dyndbg trace event in the main buffer. You could
also enable that event in an instance and have it go there.

-- Steve