linux-next/samples/ftrace
Florent Revest 59495740f7 ftrace: Let unregister_ftrace_direct_multi() call ftrace_free_filter()
A common pattern when using the ftrace_direct_multi API is to unregister
the ops and also immediately free its filter. We've noticed it's very
easy for users to miss calling ftrace_free_filter().

This adds a "free_filters" argument to unregister_ftrace_direct_multi()
to both remind the user they should free filters and also to make their
life easier.

Link: https://lkml.kernel.org/r/20230321140424.345218-2-revest@chromium.org

Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Florent Revest <revest@chromium.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-03-21 13:42:11 -04:00
..
ftrace-direct-modify.c samples: ftrace: Include the nospec-branch.h only for x86 2023-02-07 12:44:39 -05:00
ftrace-direct-multi-modify.c ftrace: Let unregister_ftrace_direct_multi() call ftrace_free_filter() 2023-03-21 13:42:11 -04:00
ftrace-direct-multi.c ftrace: Let unregister_ftrace_direct_multi() call ftrace_free_filter() 2023-03-21 13:42:11 -04:00
ftrace-direct-too.c samples: ftrace: Include the nospec-branch.h only for x86 2023-02-07 12:44:39 -05:00
ftrace-direct.c samples: ftrace: Include the nospec-branch.h only for x86 2023-02-07 12:44:39 -05:00
ftrace-ops.c samples: ftrace: Make some global variables static 2023-02-07 12:48:00 -05:00
Makefile ftrace: Add sample with custom ops 2023-01-25 10:31:23 -05:00
sample-trace-array.c sample-trace-array: Remove trace_array 'sample-instance' 2020-06-16 21:21:02 -04:00
sample-trace-array.h tracing: Sample module to demonstrate kernel access to Ftrace instances. 2019-11-22 19:41:08 -05:00