1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 17:23:25 -05:00
linux/samples/ftrace
Song Shuai 01678fbce3 samples: ftrace: Include the nospec-branch.h only for x86
When other architectures without the nospec functionality write their
direct-call functions of samples/ftrace/*.c, the including of
asm/nospec-branch.h must be taken care to fix the no header file found
error in building process.

This commit (ee3e2469b3 "x86/ftrace: Make it call depth tracking aware")
file-globally includes asm/nospec-branch.h providing CALL_DEPTH_ACCOUNT
for only x86 direct-call functions.

It seems better to move the including to `#ifdef CONFIG_X86_64`.

Link: https://lore.kernel.org/linux-trace-kernel/20230130085954.647845-1-suagrfillet@gmail.com

Signed-off-by: Song Shuai <suagrfillet@gmail.com>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-02-07 12:44:39 -05: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 samples: ftrace: Include the nospec-branch.h only for x86 2023-02-07 12:44:39 -05:00
ftrace-direct-multi.c samples: ftrace: Include the nospec-branch.h only for x86 2023-02-07 12:44:39 -05: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 ftrace: Add sample with custom ops 2023-01-25 10:31:23 -05:00
Makefile ftrace: Add sample with custom ops 2023-01-25 10:31:23 -05:00
sample-trace-array.c
sample-trace-array.h