Re: [BUG] no ORC stacktrace from kretprobe.multi bpf program
From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Date: 2025-10-12 04:09:35
Also in:
bpf
From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Date: 2025-10-12 04:09:35
Also in:
bpf
On Wed, 8 Oct 2025 23:08:26 +0200 Jiri Olsa [off-list ref] wrote:
hi, I'm getting no stacktrace from bpf program attached on kretprobe.multi probe (which means on top of return fprobe) on x86. I think we need some kind of treatment we do for rethook, AFAICS the ORC unwind stops on return_to_handler, because the stack and the function itself are not adjusted for unwind_recover_ret_addr call If it's any help I pushed the bpf/selftest for that in here: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/log/?h=stacktrace_test just execute: # test_progs -t stacktrace_map/kretprobe_multi
Hmm, curious. as far as we are using fgraph, stacktrace should work. May this happen if function-graph tracer is enabled too? Thank you,
thanks, jirka
-- Masami Hiramatsu (Google) [off-list ref]