x86/fgraph,bpf: Fix ORC stack unwind from kprobe_multi
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 2 repliesApplied 6/6
- v14 patches 12 repliesSuperseded
Changes in v2 from the cover letter
- keep the unwind same as for kprobes, attached function
is part of entry probe stacktrace, not kretprobe [Steven]
- several change in trigger bench [Andrii]
- added selftests for standard kprobes and fentry/fexit probes [Andrii]
Patches in v2 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | x86/fgraph: Fix return_to_handler regs.rsp valuearch/ | +4 | 1 reply | Applied |
| 2/6 | x86/fgraph,bpf: Switch kprobe_multi program stack unwind to hw_regs patharch/ | +1 | 1 reply | Applied |
| 3/6 | selftests/bpf: Fix kprobe multi stacktrace_ips testtools/ | +14 | 0 replies | Applied |
| 4/6 | selftests/bpf: Add stacktrace ips test for kprobe/kretprobetools/ tools/ | +57 | 0 replies | Applied |
| 5/6 | selftests/bpf: Add stacktrace ips test for fentry/fexittools/ tools/ | +71 | 0 replies | Applied |
| 6/6 | selftests/bpf: Allow to benchmark trigger with stacktracetools/ tools/ tools/ +1 more | +43 | 0 replies | Applied |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Steven Rostedt (Google) |
|---|---|
| 1/6 | R-b |
| 2/6 | A-b |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHv2 bpf-next 0/6] x86/fgraph,bpf: Fix ORC stack unwind from kprobe_multi
hi,
Mahe reported missing function from stack trace on top of kprobe multi program. It turned out the latest fix [1] needs some more fixing.
v2 changes:
- keep the unwind same as for kprobes, attached function
is part of entry probe stacktrace, not kretprobe [Steven]
- several change in trigger bench [Andrii]
- added selftests for standard kprobes and fentry/fexit probes [Andrii]
Note I'll try to add similar stacktrace adjustment for fentry/fexit in separate patchset to not complicate this change.
thanks,
jirka
[1] https://lore.kernel.org/bpf/[email protected]/
---
Jiri Olsa (6):
x86/fgraph: Fix return_to_handler regs.rsp value x86/fgraph,bpf: Switch kprobe_multi program stack unwind to hw_regs path selftests/bpf: Fix kprobe multi stacktrace_ips test selftests/bpf: Add stacktrace ips test for kprobe/kretprobe selftests/bpf: Add stacktrace ips test for fentry/fexit selftests/bpf: Allow to benchmark trigger with stacktrace
arch/x86/include/asm/ftrace.h | 2 +- arch/x86/kernel/ftrace_64.S | 5 +++- tools/testing/selftests/bpf/bench.c | 4 ++++ tools/testing/selftests/bpf/bench.h | 1 + tools/testing/selftests/bpf/benchs/bench_trigger.c | 1 + tools/testing/selftests/bpf/prog_tests/stacktrace_ips.c | 120 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- tools/testing/selftests/bpf/progs/stacktrace_ips.c | 27 ++++++++++++++++++++++ tools/testing/selftests/bpf/progs/trigger_bench.c | 46 +++++++++++++++++++++++++++++-------- 8 files changed, 190 insertions(+), 16 deletions(-)