Re: [PATCH 0/1] tracing: Provide more parseable hist trigger output

From: Tom Zanussi
Date: Fri Aug 13 2021 - 11:31:09 EST


Hi Masami,

On Fri, 2021-08-13 at 18:24 +0900, Masami Hiramatsu wrote:
> Hi Tom,
>
> On Thu, 12 Aug 2021 17:43:23 -0500
> Tom Zanussi <zanussi@xxxxxxxxxx> wrote:
>
> > Hi Steve and Daniel,
> >
> > Following our discussion last week about more parseable hist
> > trigger
> > output, I started trying to implement the 'csv' output you had
> > mentioned, but realized that since it was more than just table
> > output
> > that was needed, JSON would be a better fit, so implemented that in
> > this patch instead.
>
> This seems really good feature! BTW, what about adding an tracing
> option to switch the hist output format?
> e.g.
>
> $ echo 1 > /sys/kernel/tracing/options/hist-json
>
> This will no need to add additional pseudo file but just add an
> option to
> the ftrace.
>

That sounds like a good idea, thanks for the suggestion!

Tom