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. -- 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(-) >