Re: gdb error for 32 bit Ubuntu No symbol table is loaded. Use the "file" command.

2010-08-31 Thread Mulyadi Santosa
On Tue, Aug 31, 2010 at 17:05, Tapas Mishra  wrote:
> I tried to run gdb on a 32 bit kernel image.
> gdb /boot/vmlinuz-2.6.28-11-generic /proc/kcore

two ways:
1. if you're compiling the image by yourself, besides getting bzImage,
you shall see vmlinux in the main directory of extracted source tree.
that is what you need (symbol file). It's better if it's compiled
using frame pointer enabled and CONFIG_DEBUG_KERNEL=y

2. if  you use stock kernel from your distro, most likely you need the
kernel package that provides debug info. fedora has it, and I think so
does Ubuntu, Debian, Mandriva...etc. Check your package manager
documentation on how to enable the related repository

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: qdisc_restart and pid ?

2010-08-31 Thread Mulyadi Santosa
On Tue, Aug 31, 2010 at 16:09, ratheesh k  wrote:
>  qdisc_restart(struct net_device *dev)     function as part of kernel thread ?
>  i  could do printk in this function for  current->pid ,  pid shows
> some user space process .Y it so ?

whatever that is, i think it's piggybacking any running process

IOW, successfully printing current->pid just reveal the current pid
currently executed by processor. But that doesn't mean the processor
doesn't currently serving interrupts too

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



RE: gdb error for 32 bit Ubuntu No symbol table is loaded. Use the "file" command.

2010-08-31 Thread Smital Desai

From: kernelnewbies-bou...@nl.linux.org [kernelnewbies-bou...@nl.linux.org] On 
Behalf Of Tapas Mishra [mightydre...@gmail.com]
Sent: Tuesday, August 31, 2010 7:07 PM
To: mayur nande
Cc: Kernel Newbies
Subject: Re: gdb error for 32 bit Ubuntu No symbol table is loaded. Use the 
"file" command.

On Tue, Aug 31, 2010 at 4:56 PM, mayur nande  wrote:
>> Hello,
>>
>> I guess you need to load the uncompressed kernel image (vmlinux)
>> instead of the compressed one (vmlinuz).
>Ok so for that what do I need to do?
>Do you mean to say I need to compile a new kernel and then use that?

Please try this out : Decompressing the vmlinuz and then getting vmlinux out of 
that.

dd if=/boot/vmlinuz skip=`grep -a -b -o -m 1 -e $'\x1f\x8b\x08\x00'
 /boot/vmlinuz | cut -d: -f 1` bs=1 | zcat > /tmp/vmlinux

Hope this helps.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Smital Desai
__

This Email may contain confidential or privileged information for the intended 
recipient (s) If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.

__

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: gdb error for 32 bit Ubuntu No symbol table is loaded. Use the "file" command.

2010-08-31 Thread mayur nande
Hi,

>>Do you mean to say I need to compile a new kernel and then use that?
Yep, or may be there is some package that provides the uncompressed
image for your distro. For example, some days ago there was a
discussion on this mailing list regarding uncompressed kernel image
for Ubuntu:

You can find vmlinux files in linux-image-*gdbsym*.deb packages.

Because of their _huge_ size, their are not present in the defaults
repositories, and only available from the Ubuntu buildd.

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


HTH,
Mayur

On Tue, Aug 31, 2010 at 7:07 PM, Tapas Mishra  wrote:
> On Tue, Aug 31, 2010 at 4:56 PM, mayur nande  wrote:
>> Hello,
>>
>> I guess you need to load the uncompressed kernel image (vmlinux)
>> instead of the compressed one (vmlinuz).
> Ok so for that what do I need to do?
> Do you mean to say I need to compile a new kernel and then use that?
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: gdb error for 32 bit Ubuntu No symbol table is loaded. Use the "file" command.

2010-08-31 Thread Tapas Mishra
On Tue, Aug 31, 2010 at 4:56 PM, mayur nande  wrote:
> Hello,
>
> I guess you need to load the uncompressed kernel image (vmlinux)
> instead of the compressed one (vmlinuz).
Ok so for that what do I need to do?
Do you mean to say I need to compile a new kernel and then use that?

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: gdb error for 32 bit Ubuntu No symbol table is loaded. Use the "file" command.

2010-08-31 Thread mayur nande
Hello,

I guess you need to load the uncompressed kernel image (vmlinux)
instead of the compressed one (vmlinuz).

Best Regards
Mayur

On Tue, Aug 31, 2010 at 3:35 PM, Tapas Mishra  wrote:
> I tried to run gdb on a 32 bit kernel image.
> gdb /boot/vmlinuz-2.6.28-11-generic /proc/kcore
>
> and tried to check loops_per_jiffy via gdb
>
>  gdb vmlinuz-2.6.28-11-generic /proc/kcore
> GNU gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "i486-linux-gnu"...
> "/tmp/vmlinuz-2.6.28-11-generic": not in executable format: File
> format not recognized
> Core was generated by `root=UUID=1c1bc84c-9ef5-4daa-a630-8fe29b5d12d1
> ro quiet splash'.
> [New process 0]
> #0  0x in ?? ()
> (gdb) whatis loops_per_jiffy
> No symbol table is loaded.  Use the "file" command.
> (gdb)
>
>
> The last line of above message says
> "no symbol table is loaded Use the "file" command."
>
> where as while invoking gdb I had used it.
>
>
> --
> Tapas
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecar...@nl.linux.org
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



gdb error for 32 bit Ubuntu No symbol table is loaded. Use the "file" command.

2010-08-31 Thread Tapas Mishra
I tried to run gdb on a 32 bit kernel image.
gdb /boot/vmlinuz-2.6.28-11-generic /proc/kcore

and tried to check loops_per_jiffy via gdb

 gdb vmlinuz-2.6.28-11-generic /proc/kcore
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
"/tmp/vmlinuz-2.6.28-11-generic": not in executable format: File
format not recognized
Core was generated by `root=UUID=1c1bc84c-9ef5-4daa-a630-8fe29b5d12d1
ro quiet splash'.
[New process 0]
#0  0x in ?? ()
(gdb) whatis loops_per_jiffy
No symbol table is loaded.  Use the "file" command.
(gdb)


The last line of above message says
"no symbol table is loaded Use the "file" command."

where as while invoking gdb I had used it.


-- 
Tapas

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: process checkpointing

2010-08-31 Thread rahul patil
http://esky.sourceforge.net/

On Mon, Aug 30, 2010 at 12:17 AM, Bond  wrote:

>
>
> On Sun, Aug 29, 2010 at 10:09 PM, Anupam Kapoor 
> wrote:
>
>> On Sun, Aug 29, 2010 at 9:44 PM, James Bond 
>> wrote:
>> > Please share some link if you feel worth sharing here in this thread.
>> http://cryopid.berlios.de/
>>
>> have fun.
>>
>> Wow :) thanks.
>
> --
> Everything is okay in the end, if it's not ok, then it's not the end.
>



-- 
Regards,
Rahul Patil


qdisc_restart and pid ?

2010-08-31 Thread ratheesh k
 qdisc_restart(struct net_device *dev) function as part of kernel thread ?
 i  could do printk in this function for  current->pid ,  pid shows
some user space process .Y it so ?



-Ratheesh

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ