mbox series

[v2,0/5] libtracefs: Update filtering functions

Message ID 20210408133431.2023697-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series libtracefs: Update filtering functions | expand

Message

Steven Rostedt April 8, 2021, 1:34 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

Add tracefs_function_notrace() to set the functions not to trace.
Create a per instance pthread mutex lock.

Changes since v1:

 - Close the file descriptors on freeing of the instance
 - Close the file descriptors on exec.


Steven Rostedt (VMware) (5):
  libtracefs: Close filter file descriptor on freeing of instance
  libtracefs: Close the filter file descriptor on exec()
  libtracefs: Move most functionality into helper function for
    tracefs_function_filter()
  libtracefs: Add tracefs_function_notrace() API
  libtracefs: Add a pthread_mutex per instance

 Documentation/libtracefs-function-filter.txt |  19 ++-
 include/tracefs-local.h                      |  12 +-
 include/tracefs.h                            |   3 +
 src/tracefs-instance.c                       |  13 ++
 src/tracefs-tools.c                          | 152 ++++++++++++-------
 5 files changed, 138 insertions(+), 61 deletions(-)