Re: [RFC] kallsyms: embed source file:line info in kernel stack traces

Helge Deller
2026-03-03T22:44:44Z

On 3/2/26 21:28, Sasha Levin wrote:
> Add CONFIG_KALLSYMS_LINEINFO, which embeds a compact address-to-line
> lookup table in the kernel image so stack traces directly print source
> file and line number information:
>
> root@localhost:~# echo c > /proc/sysrq-trigger
> [ 11.201987] sysrq: Trigger a crash
> [ 11.202831] Kernel panic - not syncing: sysrq triggered crash
> [ 11.206218] Call Trace:
> [ 11.206501] <TASK>
> [ 11.206749] dump_stack_lvl+0x5d/0x80 (lib/dump_stack.c:94)

Thanks Sasha!
That's exactly what I often needed.
I've just tested it on the parisc architecture and it works nicely.

So, I'd appreciate if it would be included in the upstream kernel
(with the memory optimizations others already suggested).

Helge