Re: Debugging the linux kernel core dump

2011-08-05 Thread amit mehta
On Fri, Aug 5, 2011 at 10:53 AM, Akash email2akashj...@gmail.com wrote: I think it was not built with -g otherwise the symbols would have been there in the vmlinux itself, right ? Right. That is the reason I need to add symbols externally. Please dont ask me to rebuild the kernel, this is

Mapped more than Cached in /proc/meminfo

2011-08-05 Thread =/_00/\/\
Hi, I am trying to analyze memory usage on my system. As first step I am monitoring /proc/meminfo. Surprisingly I see Mapped value is more than Cached. So in which case is it possible to have Mapped more than Cached ? Regards, ~/ ___ Kernelnewbies

can i simply re-version the kernel down to 2.x?

2011-08-05 Thread Robert P. J. Day
for reasons that don't need explaining, i need to rebuild my current 3.0.0... kernel so that it returns a uname version number of 2.whatever. i simply have an app i want to run that checks the output of uname and if it doesn't see a major number of 2, it goes a bit squirrelly. there's no

Compiling kernel module ...

2011-08-05 Thread Abu Rasheda
I am compiling my driver and have run into following scenario. Socket create function got a new parameter in Vanila kenrel 2.6.33. while Scientific Linux has it back ported to 2.6.32. How do I handle this kind of situation ? so that my driver compiles for both kernel versions.

trouble with __aquires(lock) __releases(lock)

2011-08-05 Thread Jim Cromie
Im trying to use macros from include/linux/compiler.h and theyre giving me warnings that dont look right. after thrashing on my own hacks, I looked to well established uses for guidance. But make C=1 fs/file.o also gives errors, similar to mine. What am I missing ? or has some bitrot set in ?

Re: Reboot not calling module_exit of LKM

2011-08-05 Thread Ramesh.P
Thanks Greg. Appreciate your reply. Regards, Ramesh On Fri, Aug 5, 2011 at 12:06 PM, Greg KH g...@kroah.com wrote: On Fri, Aug 05, 2011 at 11:39:16AM -0700, Ramesh.P wrote: Hi, Good day! When a system is rebooted, the loadable kernel modules 'module_exit' functions are not called. I see

Re: can i simply re-version the kernel down to 2.x?

2011-08-05 Thread Josh Cartwright
On Fri, Aug 05, 2011 at 10:36:00AM -0400, Robert P. J. Day wrote: for reasons that don't need explaining, i need to rebuild my current 3.0.0... kernel so that it returns a uname version number of 2.whatever. i simply have an app i want to run that checks the output of uname and if it

Re: Debugging the linux kernel core dump

2011-08-05 Thread Mulyadi Santosa
Hi... On Fri, Aug 5, 2011 at 12:23, Akash email2akashj...@gmail.com wrote: I think it was not built with -g otherwise the symbols would have been there in the vmlinux itself, right ? That is the reason I need to add symbols externally. Please dont ask me to rebuild the kernel, this is vanilla

Re: Mapped more than Cached in /proc/meminfo

2011-08-05 Thread Mulyadi Santosa
On Fri, Aug 5, 2011 at 21:16, =/_00/\/\ z0032...@gmail.com wrote: Hi, I am trying to analyze memory usage on my system. As first step I am monitoring /proc/meminfo. Surprisingly I see Mapped value is more than Cached. So in which case is it possible to have Mapped more than Cached ? your

Re: how to freeze the 2.6 kernel on SMP m/c

2011-08-05 Thread Mulyadi Santosa
On Fri, Aug 5, 2011 at 17:24, san deep sandeep.al...@gmail.com wrote: Hi, Could you please suggest  how to freeze  the 2.6 kernel(SMP m/c) with my own dlkm with  less number of code. I tried the below mentioned code snippet, it hangs only the terminal on which i executed the insmod command.

Re: Debugging the linux kernel core dump

2011-08-05 Thread Akash
On Fri, Aug 5, 2011 at 9:23 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: Hi... On Fri, Aug 5, 2011 at 12:23, Akash email2akashj...@gmail.com wrote: I think it was not built with -g otherwise the symbols would have been there in the vmlinux itself, right ? That is the reason I