Al Viro discovered some breakage with the parsing of the set_ftrace_filter
as well as the removing of function probes.

This fixes the code with Al's suggestions. I also added a few selftests
to test the broken cases such that they wont happen again.

Please pull the latest trace-v4.16-rc1 tree, which can be found at:


Tag SHA1: 38464a5598493ad973eab28f67e40068212a8922
Head SHA1: 878cb3fb06c67e8f1a452346e0bc6bb85f29b0a0

Steven Rostedt (VMware) (6):
      ftrace: Remove incorrect setting of glob search field
      tracing: Fix parsing of globs with a wildcard at the beginning
      selftests/ftrace: Have reset_ftrace_filter handle modules
      selftests/ftrace: Have reset_ftrace_filter handle multiple instances
      selftests/ftrace: Add some missing glob checks
      selftests/ftrace: Add more tests for removing of function probes

 kernel/trace/ftrace.c                              |  1 -
 kernel/trace/trace_events_filter.c                 |  9 +++---
 .../ftrace/test.d/ftrace/       |  6 ++++
 .../ftrace/test.d/ftrace/   | 37 ++++++++++++++++++++++
 tools/testing/selftests/ftrace/test.d/functions    | 10 ++++--
 5 files changed, 54 insertions(+), 9 deletions(-)

Reply via email to