On 03. 12. 24, 1:51, Andrii Nakryiko wrote:
On Thu, Nov 28, 2024 at 1:33 AM Jiri Slaby <jslaby@suse.cz> wrote:
On 27. 11. 24, 20:15, Andrii Nakryiko wrote:
You can do DWARF unwinding in the kernel as well (as well as
Here "kernel"
stack capturing for FP based unwinding).
Not really. Kernel itself doesn't support it, and if you were to
Here "kernel".
implement it in a BPF program yourself you'd run into many practical issues. The most damning would be inability to page in memory that contains .eh_frame section contents from non-sleepable context, in which stack trace is typically captured (NMI, tracepoints, kprobes). See above.
We won't enable FPs in kernels in any case. Assembler is annotated only
I follow "kernel".
by ORC and many asm functions do not save/restore FP, so it'd be kind of useless anyway.
Are you sure we are discussing the same topic here? This proposal is about frame pointers and capturing stack traces **for user space**. But you keep bringing up kernel stack traces.
I didn't start this "kernel" subthread. But OK, good to know/be assured this is only about userspace. thanks, -- js suse labs