OpenCloudOS-Kernel/samples/ftrace
Florent Revest 8c3526fb86 arm64: ftrace: Add direct call trampoline samples support
The ftrace samples need per-architecture trampoline implementations
to save and restore argument registers around the calls to
my_direct_func* and to restore polluted registers (eg: x30).

These samples also include <asm/asm-offsets.h> which, on arm64, is not
necessary and redefines previously defined macros (resulting in
warnings) so these includes are guarded by !CONFIG_ARM64.

Link: https://lkml.kernel.org/r/20230427140700.625241-3-revest@chromium.org

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Florent Revest <revest@chromium.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-07-10 17:51:54 -04:00
..
Makefile ftrace: Add sample with custom ops 2023-01-25 10:31:23 -05:00
ftrace-direct-modify.c arm64: ftrace: Add direct call trampoline samples support 2023-07-10 17:51:54 -04:00
ftrace-direct-multi-modify.c arm64: ftrace: Add direct call trampoline samples support 2023-07-10 17:51:54 -04:00
ftrace-direct-multi.c arm64: ftrace: Add direct call trampoline samples support 2023-07-10 17:51:54 -04:00
ftrace-direct-too.c arm64: ftrace: Add direct call trampoline samples support 2023-07-10 17:51:54 -04:00
ftrace-direct.c arm64: ftrace: Add direct call trampoline samples support 2023-07-10 17:51:54 -04:00
ftrace-ops.c samples: ftrace: Make some global variables static 2023-02-07 12:48:00 -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