Skip to content

libtracefs: More updates to tracefs_function_filter()

Steven Rostedt linux-trace-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libtracefs: Only allow RESET flag if file is not already openedDocumentation/libtracefs-function-filter.txt src/tracefs-tools.c+25 -120 replies
2/4libtracefs: Allow filter be NULL if RESET flag is setDocumentation/libtracefs-function-filter.txt src/tracefs-tools.c+31 -110 replies
3/4libtracefs: Allow filter to be NULL if module is set in tracefs_function_filter()Documentation/libtracefs-function-filter.txt src/tracefs-tools.c+7 -10 replies
4/4libtracefs: Add TRACEFS_FL_FUTURE flag for future module filteringDocumentation/libtracefs-function-filter.txt include/tracefs.h src/tracefs-tools.c+58 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] libtracefs: More updates to tracefs_function_filter()

Allow filter to be NULL when RESET flag is set, or to commit an already opened filter.

Also add a "FUTURE" flag to match modules that have yet to be loaded. Starting in Linux v4.13, module functions can be added to the filter file before the module is loaded (and does not have any matching function). If the FUTURE flag is set, it will write the filter directly, and this only works for globs or direct function names.

This patch set is based on top of:

https://patchwork.kernel.org/project/linux-trace-devel/list/?series=457711
https://lore.kernel.org/linux-trace-devel/[email protected]/

Steven Rostedt (VMware) (4):
libtracefs: Only allow RESET flag if file is not already opened
libtracefs: Allow filter be NULL if RESET flag is set
libtracefs: Allow filter to be NULL if module is set in tracefs_function_filter()
libtracefs: Add TRACEFS_FL_FUTURE flag for future module filtering

----

 Documentation/libtracefs-function-filter.txt | 52 +++++++++++++----
 include/tracefs.h                            |  3 +
 src/tracefs-tools.c                          | 83 ++++++++++++++++++++++++----
 3 files changed, 114 insertions(+), 24 deletions(-)