ARM: ftrace fixes and cleanups
Status from this message: Applied to sudeep.holla/linux (for-next/scmi), thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest13 patches 13 repliesApplied
- v212 patches 12 repliesSuperseded
- v18 patches 7 repliesSuperseded
Changes in v3 from the cover letter
- simplify kprobes patch and avoid global FPREG_ macros
- update cacheflush code to avoid R7 and R11 entirely, instead of preserving/restoring them
- add new patch to disable ftrace in Broadcom Kona SMC code
- add acks from various folks (thanks!)
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | ARM: ftrace: ensure that ADR takes the Thumb bit into accountarch/ | +1 | 0 replies | |
| 2/13 | ARM: ftrace: use ADD not POP to counter PUSH at entryarch/ arch/ | +14 | 0 replies | |
| 3/13 | ARM: ftrace: use trampolines to keep .init.text in branching rangearch/ arch/ | +36 | 0 replies | |
| 4/13 | ARM: ftrace: avoid redundant loads or clobbering IParch/ | +22 | 0 replies | |
| 5/13 | ARM: ftrace: avoid unnecessary literal loadsarch/ | +11 | 0 replies | |
| 6/13 | ARM: ftrace: enable HAVE_FUNCTION_GRAPH_FP_TESTarch/ arch/ arch/ | +8 | 0 replies | |
| 7/13 | ARM: unwind: track location of LR value in stack framearch/ arch/ arch/ | +8 | 1 reply | |
| 8/13 | ARM: ftrace: enable the graph tracer with the EABI unwinderarch/ arch/ arch/ +3 more | +40 | 4 replies | |
| 9/13 | ARM: kprobes: treat R7 as the frame pointer register in Thumb2 buildsarch/ arch/ | +17 | 0 replies | |
| 10/13 | drivers/firmware/scmi: disable ftrace for Clang Thumb2 buildsdrivers/ | +7 | 3 replies | |
| 11/13 | ARM: cacheflush: avoid clobbering the frame pointerarch/ arch/ arch/ | +23 | 4 replies | |
| 12/13 | ARM: mach-bcm: disable ftrace in SMC invocation routinesarch/ | +1 | 1 reply | |
| 13/13 | Revert "ARM: 9144/1: forbid ftrace with clang and thumb2_kernel"arch/ | +1 | 0 replies |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by.
| Patch | Nick Desaulniers | Steven Rostedt (Google) | Linus Walleij | Masami Hiramatsu | Sudeep Holla |
|---|---|---|---|---|---|
| 1/13 | R-b | R-b | R-b | ||
| 2/13 | R-b | R-b | R-b | ||
| 3/13 | R-b | R-b | R-b | ||
| 4/13 | R-b | ||||
| 5/13 | R-b | R-b | |||
| 6/13 | R-b | ||||
| 7/13 | R-b | ||||
| 8/13 | R-b | ||||
| 9/13 | R-b | ||||
| 10/13 | R-b | A-b | |||
| 11/13 | R-b | ||||
| 12/13 | A-b | ||||
| 13/13 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v3 00/13] ARM: ftrace fixes and cleanups
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 v2:
- simplify kprobes patch and avoid global FPREG_ macros
- update cacheflush code to avoid R7 and R11 entirely, instead of preserving/restoring them
- add new patch to disable ftrace in Broadcom Kona SMC code
- add acks from various folks (thanks!)
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
Ard Biesheuvel (13):
ARM: ftrace: ensure that ADR takes the 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
ARM: mach-bcm: disable ftrace in SMC invocation routines Revert "ARM: 9144/1: forbid ftrace with clang and thumb2_kernel"
arch/arm/Kconfig | 4 +- arch/arm/Kconfig.debug | 2 +- arch/arm/include/asm/cacheflush.h | 12 +- arch/arm/include/asm/ftrace.h | 20 +-- arch/arm/include/asm/stacktrace.h | 3 + arch/arm/kernel/Makefile | 6 +- arch/arm/kernel/entry-ftrace.S | 128 +++++++++++--------- arch/arm/kernel/ftrace.c | 62 ++++++++-- arch/arm/kernel/unwind.c | 7 +- arch/arm/mach-bcm/Makefile | 1 + arch/arm/mach-exynos/mcpm-exynos.c | 6 +- arch/arm/mm/cache-v7.S | 40 +++--- arch/arm/probes/kprobes/actions-common.c | 8 +- arch/arm/probes/kprobes/actions-thumb.c | 16 ++- drivers/firmware/arm_scmi/Makefile | 7 ++ 15 files changed, 189 insertions(+), 133 deletions(-)
Signature · 7 lines
2.30.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel