* Intepreting an oops
@ 2009-04-05 12:48 Peter Hallberg
2009-04-05 13:01 ` Avi Kivity
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Peter Hallberg @ 2009-04-05 12:48 UTC (permalink / raw)
To: linux-kernel
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
[ 218.418498] [] __writepage+0xa/0x30
[ 218.418503] [] write_cache_pages+0x250/0x340
[ 218.418509] [] __writepage+0x0/0x30
[ 218.418522] [] generic_file_aio_write+0x6f/0xd0
[ 218.418540] [] do_writepages+0x2b/0x40
[ 218.418545] [] __filemap_fdatawrite_range+0x52/0x60
[ 218.418558] [] filemap_write_and_wait+0x35/0x50
[ 218.418570] [] :nnpfs:nnpfs_fsync_int+0x47/0x1b0
[ 218.418599] [] :nnpfs:nnpfs_release_file+0x9d/0xc0
[ 218.418608] [] filp_close+0x33/0x90
[ 218.418615] [] sys_close+0x9f/0x100
[ 218.418622] [] system_call+0x7e/0x83
_________________________________________________________________
Hitta kärleken nu i vår!
http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Intepreting an oops
2009-04-05 12:48 Intepreting an oops Peter Hallberg
@ 2009-04-05 13:01 ` Avi Kivity
2009-04-05 14:43 ` Bob Copeland
2009-04-05 15:18 ` Arjan van de Ven
2009-04-07 8:50 ` Michal Hocko
2 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2009-04-05 13:01 UTC (permalink / raw)
To: Peter Hallberg; +Cc: linux-kernel
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.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intepreting an oops
2009-04-05 13:01 ` Avi Kivity
@ 2009-04-05 14:43 ` Bob Copeland
0 siblings, 0 replies; 5+ messages in thread
From: Bob Copeland @ 2009-04-05 14:43 UTC (permalink / raw)
To: Peter Hallberg; +Cc: Avi Kivity, linux-kernel
On Sun, Apr 5, 2009 at 9:01 AM, Avi Kivity <avi@redhat.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intepreting an oops
2009-04-05 12:48 Intepreting an oops Peter Hallberg
2009-04-05 13:01 ` Avi Kivity
@ 2009-04-05 15:18 ` Arjan van de Ven
2009-04-07 8:50 ` Michal Hocko
2 siblings, 0 replies; 5+ messages in thread
From: Arjan van de Ven @ 2009-04-05 15:18 UTC (permalink / raw)
To: Peter Hallberg; +Cc: linux-kernel
On Sun, 5 Apr 2009 14:48:19 +0200
Peter Hallberg <hallberg68@hotmail.com> wrote:
>
> How does one translate the offset in the function to a line number in
> the source code?
you take the whole oops and use the scripts/markup_oops.pl script
to pipe it through.. and it gives you this information quite nicely.
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intepreting an oops
2009-04-05 12:48 Intepreting an oops Peter Hallberg
2009-04-05 13:01 ` Avi Kivity
2009-04-05 15:18 ` Arjan van de Ven
@ 2009-04-07 8:50 ` Michal Hocko
2 siblings, 0 replies; 5+ messages in thread
From: Michal Hocko @ 2009-04-07 8:50 UTC (permalink / raw)
To: Peter Hallberg; +Cc: linux-kernel
On Sun 05-04-09 14:48:19, 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
> [ 218.418498] [] __writepage+0xa/0x30
> [ 218.418503] [] write_cache_pages+0x250/0x340
> [ 218.418509] [] __writepage+0x0/0x30
> [ 218.418522] [] generic_file_aio_write+0x6f/0xd0
> [ 218.418540] [] do_writepages+0x2b/0x40
> [ 218.418545] [] __filemap_fdatawrite_range+0x52/0x60
> [ 218.418558] [] filemap_write_and_wait+0x35/0x50
> [ 218.418570] [] :nnpfs:nnpfs_fsync_int+0x47/0x1b0
> [ 218.418599] [] :nnpfs:nnpfs_release_file+0x9d/0xc0
> [ 218.418608] [] filp_close+0x33/0x90
> [ 218.418615] [] sys_close+0x9f/0x100
> [ 218.418622] [] system_call+0x7e/0x83
>
addr2line is also an option
--
Michal Hocko
L3 team
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9
Czech Republic
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-04-07 8:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-05 12:48 Intepreting an oops Peter Hallberg
2009-04-05 13:01 ` Avi Kivity
2009-04-05 14:43 ` Bob Copeland
2009-04-05 15:18 ` Arjan van de Ven
2009-04-07 8:50 ` Michal Hocko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.