Skip to content

libtracefs: Add tracefs_function_filter()

Steven Rostedt linux-trace-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 13 repliesIn review
  2. v17 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- tracefs_function_filter() man page was added
- Now thread safe with pthread_mutex_lock()
- Use of flags instead of reset parameter
- Added TRACEFS_FL_CONTINUE flag
- Fixed glob or regex test

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13libtracefs: An API to set the filtering of functionsinclude/tracefs.h src/tracefs-tools.c+113 -10 replies
2/13libtracefs: Document function_filter APIDocumentation/libtracefs-function-filter.txt+120 -00 replies
3/13libtracefs: Fix notations of tracefs_function_filter() and module parameterDocumentation/libtracefs-function-filter.txt+3 -40 replies
4/13libtracefs: Move opening of file out of controlled_write()src/tracefs-tools.c+14 -100 replies
5/13libtracefs: Add add_errors() helper function for control_write()src/tracefs-tools.c+33 -280 replies
6/13libtracefs: Add checking of available_filter_functions to tracefs_function_filter()src/tracefs-tools.c+178 -50 replies
7/13libtracefs: Add write_filter() helper functionsrc/tracefs-tools.c+39 -190 replies
8/13libtracefs: Allow for setting filters with regex expressionsDocumentation/libtracefs-function-filter.txt src/tracefs-tools.c+128 -214 replies
9/13libtracefs: Add indexing to set functions in tracefs_function_filter()src/tracefs-tools.c+116 -70 replies
10/13libtracefs: Pass in reset via flags to tracefs_function_filter()Documentation/libtracefs-function-filter.txt include/tracefs.h src/tracefs-tools.c+38 -172 replies
11/13libtracefs: Add pthread_mutex_lock() around tracefs_function_filter()src/tracefs-tools.c+9 -30 replies
12/13libtracefs: Move struct tracefs_instance to tracefs-local.hinclude/tracefs-local.h src/tracefs-instance.c+6 -50 replies
13/13libtracefs: Add CONTINUE to tracefs_function_filter()Documentation/libtracefs-function-filter.txt include/tracefs-local.h include/tracefs.h +2 more+64 -125 replies

Reviews trailers per patch

1 of 13 patches has a Reviewed-by or Acked-by.

PatchTzvetomir Stoyanov (VMware)
1/13A-b
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 00/13 v2] libtracefs: Add tracefs_function_filter()

Changes since v1:

- tracefs_function_filter() man page was added
- Now thread safe with pthread_mutex_lock()
- Use of flags instead of reset parameter
- Added TRACEFS_FL_CONTINUE flag
- Fixed glob or regex test

Sameeruddin shaik (2):
libtracefs: An API to set the filtering of functions
libtracefs: Document function_filter API

Steven Rostedt (VMware) (11):
libtracefs: Fix notations of tracefs_function_filter() and module parameter
libtracefs: Move opening of file out of controlled_write()
libtracefs: Add add_errors() helper function for control_write()
libtracefs: Add checking of available_filter_functions to tracefs_function_filter()
libtracefs: Add write_filter() helper function
libtracefs: Allow for setting filters with regex expressions
libtracefs: Add indexing to set functions in tracefs_function_filter()
libtracefs: Pass in reset via flags to tracefs_function_filter()
libtracefs: Add pthread_mutex_lock() around tracefs_function_filter()
libtracefs: Move struct tracefs_instance to tracefs-local.h
libtracefs: Add CONTINUE to tracefs_function_filter()

----

 Documentation/libtracefs-function-filter.txt | 161 ++++++++
 include/tracefs-local.h                      |   7 +
 include/tracefs.h                            |  11 +
 src/tracefs-instance.c                       |   7 +-
 src/tracefs-tools.c                          | 555 ++++++++++++++++++++++++++-
 5 files changed, 735 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/libtracefs-function-filter.txt