[PATCH v2 00/12] ARM: ftrace fixes and cleanups

Steven Rostedt rostedt at goodmis.org
Mon Jan 31 09:21:31 PST 2022


On Mon, 31 Jan 2022 18:03:35 +0100
Ard Biesheuvel <ardb at kernel.org> wrote:

> This series addresses a number of issues in the ARM support code for
> ftrace, mostly related to Thumb2 but affecting other configurations as
> well.
> 
> Changes since v1:
> - add a couple of patches to enable ftrace in Thumb2 mode when building
>   with Clang, which was the one remaining unsupported configuration
> - fix up some minor code issues caught by the bots
> - add some acks
> 
> Cc: Steven Rostedt <rostedt at goodmis.org>
> Cc: Sudeep Holla <sudeep.holla at arm.com>
> Cc: Cristian Marussi <cristian.marussi at arm.com>
> Cc: Nathan Chancellor <nathan at kernel.org>
> Cc: Nick Desaulniers <ndesaulniers at google.com>
> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: Masami Hiramatsu <mhiramat at kernel.org>
> 
> Ard Biesheuvel (12):
>   ARM: ftrace: ensure that ADR take Thumb bit into account
>   ARM: ftrace: use ADD not POP to counter PUSH at entry
>   ARM: ftrace: use trampolines to keep .init.text in branching range
>   ARM: ftrace: avoid redundant loads or clobbering IP
>   ARM: ftrace: avoid unnecessary literal loads
>   ARM: ftrace: enable HAVE_FUNCTION_GRAPH_FP_TEST
>   ARM: unwind: track location of LR value in stack frame
>   ARM: ftrace: enable the graph tracer with the EABI unwinder
>   ARM: kprobes: treat R7 as the frame pointer register in Thumb2 builds
>   drivers/firmware/scmi: disable ftrace for Clang Thumb2 builds
>   ARM: cacheflush: avoid clobbering the frame pointer in Thumb2 mode
>   Revert "ARM: 9144/1: forbid ftrace with clang and thumb2_kernel"
> 

I'm not strong on ARM assembly, but to the best of my ability and reading
the change logs, the "ftrace" portions look good.

Reviewed-by: Steven Rostedt (Google) <rostedt at goodmis.org>

-- Steve



More information about the linux-arm-kernel mailing list