Re: How vmlinux is recognized?

2011-05-12 Thread Sudheer Divakaran
On Thu, May 12, 2011 at 10:02 AM, Sudheer Divakaran inbox1.sudh...@gmail.com wrote: Hi Vikram, On Thu, May 12, 2011 at 9:02 AM, Vikram Narayanan vikram...@gmail.com wrote: On Thu, May 12, 2011 at 1:51 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Thu, May 12, 2011 at 03:11, Vikram

Re: How vmlinux is recognized?

2011-05-12 Thread luca ellero
On 12/05/2011 8.21, Sudheer Divakaran wrote: On Thu, May 12, 2011 at 10:02 AM, Sudheer Divakaran inbox1.sudh...@gmail.com wrote: Hi Vikram, On Thu, May 12, 2011 at 9:02 AM, Vikram Narayananvikram...@gmail.com wrote: On Thu, May 12, 2011 at 1:51 AM, Mulyadi Santosa

Re: tools to identify bugs in driver

2011-05-12 Thread Daniel Baluta
On Thu, May 12, 2011 at 7:34 AM, Amit Nagal helloin.a...@gmail.com wrote: Hi , What are the mandatory tools that must be run to identify potential bugs ( say memory , locking etc ) in a linux device driver ? Turning on DEBUG_SLAB might be a good option. Have a look for all available options

Re: How vmlinux is recognized?

2011-05-12 Thread Mulyadi Santosa
Hi... On Thu, May 12, 2011 at 10:32, Vikram Narayanan vikram...@gmail.com wrote: I think you got it wrong. I will try to put my question more elaborately. 1) The system is on and BIOS code runs. It gives the control to the boot loader, say GRUB. 2) Grub picks up the kernel from the specific

Re: module loading order

2011-05-12 Thread Simon Leung
But the problem here is that pl2303 should not be loaded at all as it's for USB-serial adapter, not 3G modem. I'm not sure what controls that. The descriptors of the device itself. What does 'lsusb' show with this device plugged in? And what kernel version are you using here? I'm using

Re: How vmlinux is recognized?

2011-05-12 Thread अनुज
Hi All On Thu, May 12, 2011 at 9:02 AM, Vikram Narayanan vikram...@gmail.comwrote: On Thu, May 12, 2011 at 1:51 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Thu, May 12, 2011 at 03:11, Vikram Narayanan vikram...@gmail.com wrote: Yes. I agree. But how who converts the ELF binary

Identifying whether a user-process or kernel-thread execution takes place by looking at CPU registers

2011-05-12 Thread limp
Hi all, About a month ago I've made a question in the ML regarding the contents of the CR3 register and how the value of this register change when different processes/threads are executed. One of the conclusions of the conversation we had was that when kernel threads are executed, the CR3

Re: Identifying whether a user-process or kernel-thread execution takes place by looking at CPU registers

2011-05-12 Thread Mulyadi Santosa
Hi On Thu, May 12, 2011 at 17:55, limp johnky...@hotmail.com wrote: I was wondering if any other CPU register (apart from CR3) can indicate if a user-process or a kernel thread under it (and which one) is executed. Is it possible to know such a thing *only* by looking at CPU registers?

Re: KGDB Setup problem

2011-05-12 Thread Prabhu nath
Dear All, With another day of effort I am was able to set up the KGDB with target C1 to host C2. The only change I did was changed my host from FC6 to FC12. Now both my target and host are FC12. C1(target) C2 (host) Grub setting on the target is

Re: module loading order

2011-05-12 Thread Greg KH
On Thu, May 12, 2011 at 09:33:32AM +0100, Simon Leung wrote: But the problem here is that pl2303 should not be loaded at all as it's for USB-serial adapter, not 3G modem. I'm not sure what controls that. The descriptors of the device itself. What does 'lsusb' show with this device

Module to sanitize freed memory ?

2011-05-12 Thread Chris Laberti
Hi, Is there a kernel module that sanitizes (overwrites) freed memory ? Or maybe does sysctl offer something like this ? Regards, Chris ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Module to sanitize freed memory ?

2011-05-12 Thread Greg KH
On Thu, May 12, 2011 at 05:12:19PM +0200, Chris Laberti wrote: Hi, Is there a kernel module that sanitizes (overwrites) freed memory ? Or maybe does sysctl offer something like this ? What's wrong with the kernel option that does this for you (CONFIG_DEBUG_SLAB)? No need to write a separate

Re: How vmlinux is recognized?

2011-05-12 Thread mindentropy
This way, GRUB doesn't need to know how to decode ELF files and the job is left to the kernel code. GRUB has a elf decoder, but it should have multiboot header. http://osdev.berlios.de/grub.html#multiboot Hope this answers your doubt. ___

Re: How vmlinux is recognized?

2011-05-12 Thread Vikram Narayanan
On Thu, May 12, 2011 at 1:47 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi... On Thu, May 12, 2011 at 10:32, Vikram Narayanan vikram...@gmail.com wrote: I think you got it wrong. I will try to put my question more elaborately. 1) The system is on and BIOS code runs. It gives the

Re: How vmlinux is recognized?

2011-05-12 Thread Dave Hylands
Hi Vikram, ...snip... So when compiling the kernel, what is the purpose of the other files(mentioned below) linux-2.6/vmlinux - ELF executable, not stripped linux-2.6/arch/x86/boot/vmlinux.bin - Raw binary (Guess this is the one which is inside the bzImage)

Re: Identifying whether a user-process or kernel-thread execution takes place by looking at CPU registers

2011-05-12 Thread Dave Hylands
Hi guys, On Thu, May 12, 2011 at 4:53 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi On Thu, May 12, 2011 at 17:55, limp johnky...@hotmail.com wrote: I was wondering if any other CPU register (apart from CR3) can indicate if a user-process or a kernel thread under it (and which