Re: [RFC PATCH v2 00/30] unwind: Minimal DWARF CFI unwinding for user and kernel space

From: Gary Guo

Date: Wed Nov 25 2026 - 11:28:24 EST


On Wed Nov 25, 2026 at 6:14 AM GMT, Ian Rogers wrote:
> Overview
> ========
>
> This RFC v2 series introduces Minimal DWARF Call Frame Information (CFI)
> stack unwinding in the Linux kernel for both user-space deferred
> callchains (unwind_user / PERF_RECORD_CALLCHAIN_DEFERRED) and
> kernel-space stack traces (stacktrace.h / HAVE_RELIABLE_STACKTRACE)
> across x86-64, ARM64, and RISC-V, paired with an optional standalone C
> build-time .eh_frame minifier (scripts/min_eh_frame.c).
>
> It enables reliable stack unwinding across kernel and user-space
> binaries compiled with or without frame pointers (-fomit-frame-pointer),
> without introducing duplicate .sframe sections in user-space ELF files
> or requiring new compiler, assembler, or dynamic-loader formats.
>

Hi Ian,

I'm a big fan of using DWARF. I haven't got the time to look into the details,
but minifying the info so only IP/CFA is kept sounds like a reasonable approach.

A quick question: how do you plan to get this working on 32-bit ARM which has
its own EHABI?

Best,
Gary