Re: Intepreting an oops

From: Bob Copeland
Date: Sun Apr 05 2009 - 10:43:31 EST


On Sun, Apr 5, 2009 at 9:01 AM, Avi Kivity <avi@xxxxxxxxxx> wrote:
> Peter Hallberg wrote:
>>
>> How does one translate the offset in the function to a line number in the
>> source code?
>> [  218.418473] Call Trace:
>> [  218.418484]  [] :nnpfs:nnpfs_writepage+0xab/0x230
>>
>
> You can use 'objdump -Sr nnpfs.ko' and look for the address of
> nnpfs_writepage, plus 0xab.

I use the above sometimes, also you can do:

gdb nnpfs.ko
gdb> l *(nnpfs_writepage+0xab)

Documentation/oops-tracing.txt has some helpful tips.

--
Bob Copeland %% www.bobcopeland.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/