This adds a new API tracefs_function_filter() as described in: https://bugzilla.kernel.org/show_bug.cgi?id=210643 It will use regular expressions against available_filter_functions (or even the kernel glob expression) to enable the function by the index method if it is supported. If it is not supported, it will go back to the writing of the filter strings directly into the set_ftrace_filter file. Sameeruddin shaik (1): libtracefs: An API to set the filtering of functions Steven Rostedt (VMware) (6): 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() ---- include/tracefs.h | 3 +- src/tracefs-tools.c | 521 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 522 insertions(+), 2 deletions(-)
![]() |