Re: [PATCH v2 05/15] perf ftrace: factor out function write_tracing_file_int()

From: Steven Rostedt
Date: Tue Jul 07 2020 - 12:10:45 EST


On Tue, 7 Jul 2020 12:09:23 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Sat, 27 Jun 2020 21:36:44 +0800
> Changbin Du <changbin.du@xxxxxxxxx> wrote:
>
> > We will reuse this function later.
> >
>
> BTW, trace-cmd.git now has a libtracefs.so library, which I'm hoping
> within a month to have as a stand alone (probably along with
> libtraceevent and even a libtracecmd).
>
> https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/tree/lib/tracefs

And the API is defined in this header:

https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/tree/include/tracefs/tracefs.h

-- Steve

>
> This is a library made to interact with the tracefs directory to remove
> reimplementing it all over the place.