linux-stable/samples/ftrace
GONG, Ruiqi e332938e6f samples: ftrace: Replace bti assembly with hint for older compiler
When cross-building the arm64 kernel with allmodconfig using GCC 9.4,
the following error occurs on multiple files under samples/ftrace/:

/tmp/ccPC1ODs.s: Assembler messages:
/tmp/ccPC1ODs.s:8: Error: selected processor does not support `bti c'

Fix this issue by replacing `bti c` with `hint 34`, which is compatible
for the older compiler.

Link: https://lore.kernel.org/linux-trace-kernel/20230820111509.1470826-1-gongruiqi@huaweicloud.com

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Florent Revest <revest@chromium.org>
Fixes: 8c3526fb86 ("arm64: ftrace: Add direct call trampoline samples support")
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-08-21 22:03:58 -04:00
..
Makefile ftrace: Add sample with custom ops 2023-01-25 10:31:23 -05:00
ftrace-direct-modify.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-direct-multi-modify.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-direct-multi.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-direct-too.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -04:00
ftrace-direct.c samples: ftrace: Replace bti assembly with hint for older compiler 2023-08-21 22:03:58 -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