Re: How can i track all process context switches in the kernel ?

2008-05-20 Thread Henrik Austad
On Saturday 17 May 2008 14:09:17 Manish Katiyar wrote: On Sat, May 17, 2008 at 5:34 PM, Indraneel Mukherjee [EMAIL PROTECTED] wrote: Hi, I've put the following print in context_switch() in kernel/sched.c printk( %d , next-pid); Can that serve the purpose as well? It might, but as

Re: ask for help. question about snprintf()

2008-05-20 Thread Rene Herman
On 20-05-08 05:47, Payphone LIOU wrote: in a kernel modules, i used snprintf() to ouput some strings to the terminal. snprintf() doesn't output to anything; it writes to the buffer it's given as its first parameter. To actually output something you need printk() and friends. Rene. -- To

Re: Virtual addresses below 0x8048000

2008-05-20 Thread Mulyadi Santosa
Hi all.. On Tue, May 20, 2008 at 8:03 PM, srinivasa ds [EMAIL PROTECTED] wrote: If you use -pie(position independent executable) option of gcc, load address will be randomly picked. Hence doesn't remain 0x8048000. thanks for reminding me about PIE...i forgot that term...g Address space

Re: Virtual addresses below 0x8048000

2008-05-20 Thread srinivasa DS
Mulyadi Santosa wrote: Hi all.. On Tue, May 20, 2008 at 8:03 PM, srinivasa ds [EMAIL PROTECTED] wrote: If you use -pie(position independent executable) option of gcc, load address will be randomly picked. Hence doesn't remain 0x8048000. thanks for reminding me about PIE...i forgot

Re: Virtual addresses below 0x8048000

2008-05-20 Thread Sandeep K Sinha
Its used for dll's. On Mon, May 19, 2008 at 9:36 PM, Vivek Kutal [EMAIL PROTECTED] wrote: What could be the rationale behind not using addresses 0x0 - 0x08048000 in previous versions. Kernel version 2.4 also shows libc to be at address 0x40xx i.e. above 1GB address I tried to find the

Re: ELF file and GOT entries

2008-05-20 Thread Sandeep K Sinha
Hi, Send it to the binutils mailing list, they work on objdump and dis-assemblers. You will more specific and too the point answers. On Tue, May 20, 2008 at 6:06 PM, Mulyadi Santosa [EMAIL PROTECTED] wrote: Hi... On Tue, May 20, 2008 at 4:11 PM, Shyamal Shukla [EMAIL PROTECTED] wrote: The

how do get kernel memory size

2008-05-20 Thread Kathiresan, Lekshmanan
Hi , I want to know how much memory allocated kernel space and user space when system booted. Is there any function in kernel to find out these memory. Please guide me With Thanks Regards, Lekshmanan

Re: how do get kernel memory size

2008-05-20 Thread Mulyadi Santosa
hi On Wed, May 21, 2008 at 12:17 PM, Kathiresan, Lekshmanan [EMAIL PROTECTED] wrote: Hi , I want to know how much memory allocated kernel space and user space when system booted. Is there any function in kernel to find out these memory. pls define when system booted. Do you mean it is

RE: how do get kernel memory size

2008-05-20 Thread Kathiresan, Lekshmanan
Hi Mulyadi, I have some requirement to get memory size(kernel and user space) from kernel module. That purpose I want to know function name to get those memories. hi On Wed, May 21, 2008 at 12:17 PM, Kathiresan, Lekshmanan [EMAIL PROTECTED] wrote: Hi , I want to know how much memory

Re: how do get kernel memory size

2008-05-20 Thread Manish Katiyar
On Wed, May 21, 2008 at 10:47 AM, Kathiresan, Lekshmanan [EMAIL PROTECTED] wrote: Hi , I want to know how much memory allocated kernel space and user space when system booted. Is there any function in kernel to find out these memory. In the output of dmesg you will see some entries like