ftrace: Replace uses of _ftrace_direct APIs with _ftrace_direct_multi
authorFlorent Revest <revest@chromium.org>
Tue, 21 Mar 2023 14:04:19 +0000 (15:04 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 21 Mar 2023 17:42:12 +0000 (13:42 -0400)
commit23edf48309b14a201481b75fba049802eaf0baa6
treee57ddfac1d8f16bfbaa9d846aa52ced3259166e7
parent59495740f79524bebe4ecb8097cf206f86587b25
ftrace: Replace uses of _ftrace_direct APIs with _ftrace_direct_multi

The _multi API requires that users keep their own ops but can enforce
that an op is only associated to one direct call.

Link: https://lkml.kernel.org/r/20230321140424.345218-3-revest@chromium.org
Signed-off-by: Florent Revest <revest@chromium.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_selftest.c
samples/ftrace/ftrace-direct-modify.c
samples/ftrace/ftrace-direct-too.c
samples/ftrace/ftrace-direct.c