diff options
author | Mark Rutland <mark.rutland@arm.com> | 2018-11-15 23:42:00 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-11-30 14:29:04 +0100 |
commit | 5c176aff5b5a7027840c37da9d48a8f9cedb08b9 (patch) | |
tree | 10c88db9406e45311306c98077174aa713085bf3 /arch/arm64/include/asm/ftrace.h | |
parent | arm64: ftrace: use GLOBAL() (diff) | |
download | linux-5c176aff5b5a7027840c37da9d48a8f9cedb08b9.tar.xz linux-5c176aff5b5a7027840c37da9d48a8f9cedb08b9.zip |
arm64: ftrace: enable graph FP test
The core frace code has an optional sanity check on the frame pointer
passed by ftrace_graph_caller and return_to_handler. This is cheap,
useful, and enabled unconditionally on x86, sparc, and riscv.
Let's do the same on arm64, so that we can catch any problems early.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Torsten Duwe <duwe@suse.de>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/ftrace.h')
-rw-r--r-- | arch/arm64/include/asm/ftrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/ftrace.h b/arch/arm64/include/asm/ftrace.h index caa955f10e19..6795c147cbcc 100644 --- a/arch/arm64/include/asm/ftrace.h +++ b/arch/arm64/include/asm/ftrace.h @@ -13,6 +13,7 @@ #include <asm/insn.h> +#define HAVE_FUNCTION_GRAPH_FP_TEST #define MCOUNT_ADDR ((unsigned long)_mcount) #define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE |