powerpc/ftrace: refactor and add support for -fpatchable-function-entry
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 21 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | powerpc/ftrace: Fix dropping weak symbols with older toolchainsarch/ | +1 | 1 reply | |
| 2/17 | powerpc/module: Remove unused .ftrace.tramp sectionarch/ | +0 | 1 reply | |
| 3/17 | powerpc64/ftrace: Move ELFv1 and -pg support code into a separate filearch/ arch/ arch/ | +855 | 1 reply | |
| 4/17 | powerpc/ftrace: Simplify function_graph support in ftrace.carch/ | +7 | 1 reply | |
| 5/17 | powerpc/ftrace: Use FTRACE_REGS_ADDR to identify the correct ftrace trampolinearch/ | +1 | 1 reply | |
| 6/17 | powerpc/ftrace: Extend ftrace support for large kernels to ppc32arch/ arch/ arch/ +2 more | +32 | 1 reply | |
| 7/17 | powerpc/ftrace: Consolidate ftrace support into fewer filesarch/ arch/ arch/ +2 more | +130 | 2 replies | |
| 8/17 | powerpc/ftrace: Refactor ftrace_modify_code()arch/ | +29 | 1 reply | |
| 9/17 | powerpc/ftrace: Stop re-purposing linker generated long branches for ftracearch/ | +17 | 1 reply | |
| 10/17 | powerpc/ftrace: Add separate ftrace_init_nop() with additional validationarch/ arch/ | +77 | 1 reply | |
| 11/17 | powerpc/ftrace: Simplify ftrace_make_nop()arch/ | +32 | 1 reply | |
| 12/17 | powerpc/ftrace: Simplify ftrace_make_call()arch/ | +31 | 1 reply | |
| 13/17 | powerpc/ftrace: Simplify ftrace_modify_call()arch/ | +21 | 1 reply | |
| 14/17 | powerpc/ftrace: Replace use of ftrace_call_replace() with ftrace_create_branch_inst()arch/ | +2 | 1 reply | |
| 15/17 | powerpc/ftrace: Implement ftrace_replace_code()arch/ | +96 | 1 reply | |
| 16/17 | powerpc/ftrace: Add support for -fpatchable-function-entryarch/ arch/ arch/ +5 more | +64 | 2 replies | |
| 17/17 | powerpc/ftrace: Create a dummy stackframe to fix stack unwindarch/ arch/ | +12 | 2 replies |
Reviews trailers per patch
All 17 patches have a Reviewed-by or Acked-by.
| Patch | Christophe Leroy |
|---|---|
| 1/17 | R-b |
| 2/17 | R-b |
| 3/17 | R-b |
| 4/17 | R-b |
| 5/17 | R-b |
| 6/17 | R-b |
| 7/17 | R-b |
| 8/17 | R-b |
| 9/17 | R-b |
| 10/17 | R-b |
| 11/17 | R-b |
| 12/17 | R-b |
| 13/17 | R-b |
| 14/17 | R-b |
| 15/17 | R-b |
| 16/17 | R-b |
| 17/17 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/17] powerpc/ftrace: refactor and add support for -fpatchable-function-entry
Since RFC (*):
- Patches 1 and 17 have been included in this series due to dependencies. Both had been posted out separately.
- Patch 10 has a small change to not throw errors when checking instruction sequence generated by older toolchains.
This has had more testing since and this looks good to me. Christophe mentioned that this results in a slowdown with ftrace [de-]activation on ppc32, but that isn't performance critical and we can address that separately.
(*) http://lore.kernel.org/[email protected]
- Naveen
Naveen N Rao (17):
powerpc/ftrace: Fix dropping weak symbols with older toolchains powerpc/module: Remove unused .ftrace.tramp section powerpc64/ftrace: Move ELFv1 and -pg support code into a separate file powerpc/ftrace: Simplify function_graph support in ftrace.c powerpc/ftrace: Use FTRACE_REGS_ADDR to identify the correct ftrace
trampoline
powerpc/ftrace: Extend ftrace support for large kernels to ppc32 powerpc/ftrace: Consolidate ftrace support into fewer files powerpc/ftrace: Refactor ftrace_modify_code() powerpc/ftrace: Stop re-purposing linker generated long branches for
ftrace
powerpc/ftrace: Add separate ftrace_init_nop() with additional
validation
powerpc/ftrace: Simplify ftrace_make_nop()
powerpc/ftrace: Simplify ftrace_make_call() powerpc/ftrace: Simplify ftrace_modify_call() powerpc/ftrace: Replace use of ftrace_call_replace() with
ftrace_create_branch_inst()
powerpc/ftrace: Implement ftrace_replace_code() powerpc/ftrace: Add support for -fpatchable-function-entry powerpc/ftrace: Create a dummy stackframe to fix stack unwind
arch/powerpc/Kconfig | 14 +-
arch/powerpc/Makefile | 5 +
arch/powerpc/include/asm/ftrace.h | 24 +-
arch/powerpc/include/asm/module.h | 4 -
arch/powerpc/include/asm/sections.h | 2 +
arch/powerpc/include/asm/vermagic.h | 4 +-
arch/powerpc/kernel/module_64.c | 2 +-
arch/powerpc/kernel/trace/Makefile | 12 +-
arch/powerpc/kernel/trace/ftrace.c | 910 +++++-------------
arch/powerpc/kernel/trace/ftrace_64_pg.S | 67 --
arch/powerpc/kernel/trace/ftrace_64_pg.c | 846 ++++++++++++++++
.../{ftrace_low.S => ftrace_64_pg_entry.S} | 64 +-
.../{ftrace_mprofile.S => ftrace_entry.S} | 78 +-
arch/powerpc/kernel/vmlinux.lds.S | 4 -
.../gcc-check-fpatchable-function-entry.sh | 26 +
15 files changed, 1288 insertions(+), 774 deletions(-)
delete mode 100644 arch/powerpc/kernel/trace/ftrace_64_pg.S
create mode 100644 arch/powerpc/kernel/trace/ftrace_64_pg.c
rename arch/powerpc/kernel/trace/{ftrace_low.S => ftrace_64_pg_entry.S} (54%)
rename arch/powerpc/kernel/trace/{ftrace_mprofile.S => ftrace_entry.S} (79%)
create mode 100755 arch/powerpc/tools/gcc-check-fpatchable-function-entry.shbase-commit: 12ffddc6444780aec83fa5086673ec005c0bace4
Signature · 1 line
2.40.1