RFC powerpc64: Add support for ftrace direct calls
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest14 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | ftrace: Fix updating FTRACE_FL_TRAMPkernel/ | +21 | 2 replies | |
| 2/14 | ftrace: Fix DYNAMIC_FTRACE_WITH_DIRECT_CALLS dependencykernel/ | +1 | 1 reply | |
| 3/14 | ftrace: Fix cleanup in error path of register_ftrace_direct()kernel/ | +1 | 1 reply | |
| 4/14 | ftrace: Remove ftrace_find_direct_func()include/ kernel/ | +4 | 0 replies | |
| 5/14 | ftrace: Add architectural helpers for [un]register_ftrace_direct()include/ kernel/ | +23 | 0 replies | |
| 6/14 | powerpc: Add support for CONFIG_HAVE_FUNCTION_ARG_ACCESS_APIarch/ arch/ | +32 | 0 replies | |
| 7/14 | powerpc/ftrace: Remove dead codearch/ | +0 | 0 replies | |
| 8/14 | powerpc/ftrace: Use FTRACE_REGS_ADDR to identify the correct ftrace trampolinearch/ | +2 | 0 replies | |
| 9/14 | powerpc/ftrace: Use a hash table for tracking ftrace stubsarch/ | +33 | 0 replies | |
| 10/14 | powerpc/ftrace: Drop assumptions about ftrace trampoline targetarch/ | +86 | 0 replies | |
| 11/14 | powerpc/ftrace: Use GPR save/restore macros in ftrace_graph_caller()arch/ | +7 | 0 replies | |
| 12/14 | powerpc/ftrace: Drop saving LR to stack save area for -mprofile-kernelarch/ | +0 | 0 replies | |
| 13/14 | powerpc/ftrace: Add support for register_ftrace_direct() for MPROFILE_KERNELarch/ arch/ arch/ +1 more | +182 | 0 replies | |
| 14/14 | samples/ftrace: Add powerpc support for ftrace direct samplessamples/ samples/ samples/ +1 more | +144 | 0 replies |
Reviews trailers per patch
1 of 14 patches has a Reviewed-by or Acked-by.
| Patch | Steven Rostedt (VMware) |
|---|---|
| 1/14 | |
| 2/14 | |
| 3/14 | R-b |
| 4/14 | |
| 5/14 | |
| 6/14 | |
| 7/14 | |
| 8/14 | |
| 9/14 | |
| 10/14 | |
| 11/14 | |
| 12/14 | |
| 13/14 | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 00/14] powerpc64: Add support for ftrace direct calls
This series adds support for DYNAMIC_FTRACE_WITH_DIRECT_CALLS for powerpc64le.
This is mostly working fine for me, except for a soft lockup I see with the ftrace direct selftest. It happens when irqsoff tracer is being tested with the ftrace direct modules. This appears to be an existing upstream issue since I am able to reproduce the lockup without these patches. I will be looking into that to see if I can figure out the cause of those lockups.
In the meantime, I would appreciate a review of these patches.
- Naveen
Naveen N. Rao (14):
ftrace: Fix updating FTRACE_FL_TRAMP
ftrace: Fix DYNAMIC_FTRACE_WITH_DIRECT_CALLS dependency
ftrace: Fix cleanup in error path of register_ftrace_direct()
ftrace: Remove ftrace_find_direct_func()
ftrace: Add architectural helpers for [un]register_ftrace_direct()
powerpc: Add support for CONFIG_HAVE_FUNCTION_ARG_ACCESS_API powerpc/ftrace: Remove dead code
powerpc/ftrace: Use FTRACE_REGS_ADDR to identify the correct ftrace
trampoline
powerpc/ftrace: Use a hash table for tracking ftrace stubs powerpc/ftrace: Drop assumptions about ftrace trampoline target powerpc/ftrace: Use GPR save/restore macros in ftrace_graph_caller() powerpc/ftrace: Drop saving LR to stack save area for -mprofile-kernel powerpc/ftrace: Add support for register_ftrace_direct() for
MPROFILE_KERNEL
samples/ftrace: Add powerpc support for ftrace direct samples
arch/powerpc/Kconfig | 2 + arch/powerpc/include/asm/ftrace.h | 14 + arch/powerpc/include/asm/ptrace.h | 31 ++ arch/powerpc/kernel/trace/ftrace.c | 314 +++++++++++++----- .../powerpc/kernel/trace/ftrace_64_mprofile.S | 70 ++-- include/linux/ftrace.h | 7 +- kernel/trace/Kconfig | 2 +- kernel/trace/ftrace.c | 130 +++----- samples/Kconfig | 2 +- samples/ftrace/ftrace-direct-modify.c | 58 ++++ samples/ftrace/ftrace-direct-too.c | 48 ++- samples/ftrace/ftrace-direct.c | 45 ++- 12 files changed, 519 insertions(+), 204 deletions(-)
base-commit: 4c202167192a77481310a3cacae9f12618b92216
Signature · 1 line
2.25.4