RFC powerpc64/bpf: Add support for BPF Trampolines
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ftrace: Add ftrace_location_lookup() to lookup address of ftrace locationinclude/ kernel/ kernel/ | +28 | 0 replies | |
| 2/3 | powerpc/ftrace: Override ftrace_location_lookup() for MPROFILE_KERNELarch/ arch/ | +12 | 8 replies | |
| 3/3 | powerpc64/bpf: Add support for bpf trampolinesarch/ arch/ arch/ | +630 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/3] powerpc64/bpf: Add support for BPF Trampolines
This is an early RFC series that adds support for BPF Trampolines on powerpc64. Some of the selftests are passing for me, but this needs more testing and I've likely missed a few things as well. A review of the patches and feedback about the overall approach will be great.
This series depends on some of the other BPF JIT fixes and enhancements posted previously, as well as on ftrace direct enablement on powerpc which has also been posted in the past.
- Naveen
Naveen N. Rao (3):
ftrace: Add ftrace_location_lookup() to lookup address of ftrace
location
powerpc/ftrace: Override ftrace_location_lookup() for MPROFILE_KERNEL powerpc64/bpf: Add support for bpf trampolines
arch/powerpc/kernel/kprobes.c | 8 +- arch/powerpc/kernel/trace/ftrace.c | 11 + arch/powerpc/net/bpf_jit.h | 8 + arch/powerpc/net/bpf_jit_comp.c | 5 +- arch/powerpc/net/bpf_jit_comp64.c | 619 ++++++++++++++++++++++++++++- include/linux/ftrace.h | 5 + kernel/bpf/trampoline.c | 27 +- kernel/trace/ftrace.c | 14 + 8 files changed, 670 insertions(+), 27 deletions(-)
base-commit: 33ecb3e590194051dc57eee1125c1d372b14c946 -- 2.34.1