FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 02-17-2011, 03:04 AM
Tetsuo Handa
 
Default Where is debuginfo package?

Hello.

I'm trying to identify the location of I/O hang problem.
http://www.spinics.net/lists/linux-fsdevel/msg42266.html

But I can't find debuginfo package. How can I get disassembly code?

Regards.

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 02-17-2011, 03:26 AM
Tim Gardner
 
Default Where is debuginfo package?

On 02/16/2011 09:04 PM, Tetsuo Handa wrote:

Hello.

I'm trying to identify the location of I/O hang problem.
http://www.spinics.net/lists/linux-fsdevel/msg42266.html

But I can't find debuginfo package. How can I get disassembly code?

Regards.



http://ddebs.ubuntu.com/pool/main/l/linux/

--
Tim Gardner tim.gardner@canonical.com

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 02-17-2011, 06:53 AM
Tetsuo Handa
 
Default Where is debuginfo package?

Tim Gardner wrote:
> http://ddebs.ubuntu.com/pool/main/l/linux/

Thanks.

I installed linux-image-2.6.32-28-generic-pae-dbgsym_2.6.32-28.55_i386.ddeb
and ran

objdump -S /usr/lib/debug/boot/vmlinux-2.6.32-28-generic-pae

but I couldn't get disassembly with source code mixed.
Thus, I manually ran

cp /boot/config-2.6.32-28-generic-pae .config
make fs/jbd/
make fs/jbd2/
objdump -S fs/jbd/transaction.o > 1.txt
objdump -S fs/jbd2/transaction.o > 2.txt

and guessed which start_this_handle() was called from the size of function.

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 02-17-2011, 01:38 PM
"Peter M. Petrakis"
 
Default Where is debuginfo package?

On 02/17/2011 02:53 AM, Tetsuo Handa wrote:
> Tim Gardner wrote:
>> http://ddebs.ubuntu.com/pool/main/l/linux/
>
> Thanks.
>
> I installed linux-image-2.6.32-28-generic-pae-dbgsym_2.6.32-28.55_i386.ddeb
> and ran
>
> objdump -S /usr/lib/debug/boot/vmlinux-2.6.32-28-generic-pae
>
> but I couldn't get disassembly with source code mixed.
> Thus, I manually ran
>

The debug kernel expects the source code to exist in
/build/buildd/linux-2.6.32, just create the proper
symlinks and try again.


> cp /boot/config-2.6.32-28-generic-pae .config
> make fs/jbd/
> make fs/jbd2/
> objdump -S fs/jbd/transaction.o > 1.txt
> objdump -S fs/jbd2/transaction.o > 2.txt
>
> and guessed which start_this_handle() was called from the size of function.
>

If you ran a disassembly with line numbers (-ld) it would have been
a little easier, source code is not necessary for this. I largely avoid
creating an interspersed obj dump, it just takes too long. Adding line
numbers takes only a few more minutes.

[This is *not* the kernel version you're referring too]

ffffffff81211b70 <start_this_handle>:
start_this_handle():
/build/buildd/linux-2.6.32/fs/jbd/transaction.c:85
ffffffff81211b70: 55 push %rbp
ffffffff81211b71: 48 89 e5 mov %rsp,%rbp
ffffffff81211b74: 41 57 push %r15
ffffffff81211b76: 41 56 push %r14
ffffffff81211b78: 41 55 push %r13
ffffffff81211b7a: 41 54 push %r12
ffffffff81211b7c: 53 push %rbx
ffffffff81211b7d: 48 83 ec 78 sub $0x78,%rsp
ffffffff81211b81: e8 fa 02 e0 ff callq ffffffff81011e80 <mcount>
ffffffff81211b86: 48 89 b5 78 ff ff ff mov %rsi,-0x88(%rbp)
/build/buildd/linux-2.6.32/fs/jbd/transaction.c:88
ffffffff81211b8d: 44 8b 76 08 mov 0x8(%rsi),%r14d
/build/buildd/linux-2.6.32/fs/jbd/transaction.c:85
ffffffff81211b91: 49 89 fc mov %rdi,%r12
/build/buildd/linux-2.6.32/fs/jbd/transaction.c:92
ffffffff81211b94: 8b 8f 80 01 00 00 mov 0x180(%rdi),%ecx
ffffffff81211b9a: 41 39 ce cmp %ecx,%r14d
ffffffff81211b9d: 0f 8f 7f 03 00 00 jg ffffffff81211f22 <start_this_handle+0x3b2>


BTW, if you tack on a .S suffix, you'll get proper C+ASM syntax highlighting.
Hope that helps.

Peter

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 01:44 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org