Re: How to check if my kernel driver is leaking memory

2014-03-13 Thread sanjeev sharma
Hi, Are you writing driver on X86 or some other Architecture ? if it is X86 then use *KEDR framework(http://kedr.berlios.de/ ).* *RegardsSanjeev Sharma* On Mon, Mar 10, 2014 at 7:28 PM, wrote: > On Sun, 09 Mar 2014 22:14:24 -0700, m silverstri said: > > > I am deve

Re: kernel build problems with KDB patch

2014-03-13 Thread sanjeev sharma
Hi, Are you also getting same issue with other Version also ? Regards Sanjeev Sharma On Thu, Mar 13, 2014 at 7:39 AM, RS wrote: > Hello > > I want to use KDB to debug the module. > I have done this: > 1. make mrproper > 2. download the patch from the site > (ftp://oss.sgi.com/www/projects/kdb

RE: where is the printf source for busybox?

2014-03-13 Thread Kim Chan
Hi, Dave, Thank you for the kind explanation and I think it will help much for me. I searched down the uClib as you told me and could locate the kernel sys_write function. In my case, the arch is sparc, and it is defined in fs/read_write.c as you said(in linux kernel source). I've checked tha

Re: How to check if my kernel driver is leaking memory

2014-03-13 Thread Sankar P
2014-03-10 10:44 GMT+05:30 m silverstri : > Hi, > > I am developing a kernel driver. What should I test to make sure my > kernel driver is not leaking memory? > 1. under normal operation (when applications open and close my driver > properly) > 2. in error situation (when application open my drive

Re: How to check if my kernel driver is leaking memory

2014-03-13 Thread m silverstri
Thanks Sankar. If I just modify .config file to enable CONFIG_DEBUG_KMEMLEAK, how can I 'Increase the config option "Maximum kmemleak early log entires" value to a sufficiently large number like 1200. The default value of 400 may not work correctly in all configurations.'? On Thu, Mar 13, 2014 at

Re: How to check if my kernel driver is leaking memory

2014-03-13 Thread Aruna Hewapathirane
Please use make menuconfig and press / then search for DEBUG_KMEMLEAK_EARLY_LOG_SIZE and adjust value then save and exit. You will find it under Kernel Hacking -> Memory Debugging -|> Kernel memory leak detector Symbol: DEBUG_KMEMLEAK_EARLY_LOG_SIZE [=] │ Type : integer │ Prompt: Maximum

Re: Rebuild kernel so complicated?

2014-03-13 Thread Razvan Ghitulete
On 12/07/2013 12:57 PM, ??? wrote: AFAIK, rebuild the kernel should follow those steps at least: * /copy /boot/system-$(uname -r).map to ${kernel_src}/ * /copy /boot/config-$(uname -r) to ${kernel_src}/ * /cd ${kernel_src}/ * /make menuconfig/, save config(If I don't wanna change anythin