On Tue, Mar 28, 2023 at 6:13 PM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > > On Tue, 28 Mar 2023 18:03:05 +0300 > "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@xxxxxxxxx> wrote: > > > A new API tracefs_instance_reset() for resetting instance to its default > > state, based on the logic from "trace-cmd reset" command. > > HAH!!! > > I was just thinking that I needed to implement this earlier today. > > I'm so happy when someone else does my work for me :-D > > Thanks Tzvetomir, I'll hopefully get a chance to review this sometime this > week. ping Did you have time to take a look at these patches? I'm planing to use the library in a new project and need this new functionality. > > -- Steve > > > > > Tzvetomir Stoyanov (VMware) (3): > > libtracefs: New API to reset ftrace instance > > libtracefs: Documentation for tracefs_instance_reset() > > libtracefs: Unit test for tracefs_instance_reset() > > > > Documentation/libtracefs-instances-manage.txt | 7 +- > > Documentation/libtracefs.txt | 1 + > > include/tracefs-local.h | 1 + > > include/tracefs.h | 1 + > > src/tracefs-instance.c | 196 ++++++++++++++++++ > > src/tracefs-utils.c | 20 ++ > > utest/tracefs-utest.c | 183 ++++++++++++++++ > > 7 files changed, 407 insertions(+), 2 deletions(-) > > > -- Tzvetomir (Ceco) Stoyanov VMware Open Source Technology Center