linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] libtracefs: More updates to tracefs_function_filter()
@ 2021-03-30 18:33 Steven Rostedt
  2021-03-30 18:33 ` [PATCH 1/4] libtracefs: Only allow RESET flag if file is not already opened Steven Rostedt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Steven Rostedt @ 2021-03-30 18:33 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: Sameeruddin shaik

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/20210330005247.397966909@goodmis.org/


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-30 18:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30 18:33 [PATCH 0/4] libtracefs: More updates to tracefs_function_filter() Steven Rostedt
2021-03-30 18:33 ` [PATCH 1/4] libtracefs: Only allow RESET flag if file is not already opened Steven Rostedt
2021-03-30 18:33 ` [PATCH 2/4] libtracefs: Allow filter be NULL if RESET flag is set Steven Rostedt
2021-03-30 18:33 ` [PATCH 3/4] libtracefs: Allow filter to be NULL if module is set in tracefs_function_filter() Steven Rostedt
2021-03-30 18:33 ` [PATCH 4/4] libtracefs: Add TRACEFS_FL_FUTURE flag for future module filtering Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).