Re: Issue using faddr2line on kernel modules

From: Josh Poimboeuf
Date: Sun Feb 06 2022 - 15:36:20 EST


On Fri, Jan 21, 2022 at 01:35:13AM +0530, Kaiwan N Billimoria wrote:
> > Try this one?
>
> Definitely better !
> This is the o/p i now get:
>
> $ <...>linux-5.10.60/scripts/faddr2line ./oops_tryv2.ko
> do_the_work.cold+0x68/0x126
> do_the_work.cold+0x68/0x126:
> delay_sec at <...>/oops_tryv2/../../convenient.h:279
> $
>
> The source file+line-no doesn't show up here though... (as it's a foo.cold()?).
> (I'm unsure why the line delay_sec at <...>convenient.h:279 shows up
> ; i don't call this delay_sec() func directly... anyway, that's my
> problem.)

Hm... do you get the same result with addr2line?

--
Josh