<div dir="ltr"><div><div>Please use make menuconfig and press / then search for DEBUG_KMEMLEAK_EARLY_LOG_SIZE and adjust value then save and exit.<br></div><br></div>You will find it under Kernel Hacking  -&gt; Memory Debugging -|&gt; Kernel memory leak detector<div>
<br>Symbol: DEBUG_KMEMLEAK_EARLY_LOG_SIZE [=]                                                                                             <br>  │ Type  : integer                                                                                                                       <br>
  │ Prompt: Maximum kmemleak early log entries                                                                                            <br>  │   Location:                                                                                                                            <br>
  │     -&gt; Kernel hacking                                                                                                              <br>  │       -&gt; Memory Debugging                                                                                                             <br>
  │ (3)     -&gt; Kernel memory leak detector (DEBUG_KMEMLEAK [=n])                                                                         <br>  │   Defined at lib/Kconfig.debug:459                                                                                                   <br>
  │   Depends on: DEBUG_KMEMLEAK [=n]                            <br><div class="gmail_extra"><br><br><br><br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 1:39 PM, m silverstri <span dir="ltr">&lt;<a href="mailto:michael.j.silverstri@gmail.com" target="_blank">michael.j.silverstri@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks Sankar.<br>
<br>
If I just modify .config file to enable CONFIG_DEBUG_KMEMLEAK, how can<br>
I &#39;Increase the config option &quot;Maximum kmemleak early log entires&quot;<br>
value to a sufficiently large number like 1200. The default value of<br>
400 may not work correctly in all configurations.&#39;?<br>
<div class=""><div class="h5"><br>
On Thu, Mar 13, 2014 at 9:34 AM, Sankar P &lt;<a href="mailto:sankar.curiosity@gmail.com">sankar.curiosity@gmail.com</a>&gt; wrote:<br>
&gt; 2014-03-10 10:44 GMT+05:30 m silverstri &lt;<a href="mailto:michael.j.silverstri@gmail.com">michael.j.silverstri@gmail.com</a>&gt;:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I am developing a kernel driver. What should I test to make sure my<br>
&gt;&gt; kernel driver is not leaking memory?<br>
&gt;&gt; 1. under normal operation (when applications open and close my driver properly)<br>
&gt;&gt; 2. in error situation (when application open my driver and then it<br>
&gt;&gt; crashes without close my driver property)<br>
&gt;&gt;<br>
&gt;&gt; How can I find out the memory usage used by my driver? so that I can<br>
&gt;&gt; monitor it over time.<br>
&gt;&gt;<br>
&gt;<br>
&gt; I have earlier come across a similar situation and kmemleak was very helpful.<br>
&gt;<br>
&gt; I documented my steps and you may find it useful:<br>
&gt;<br>
&gt; <a href="http://psankar.blogspot.in/2010/11/detecting-memory-leaks-in-kernel.html" target="_blank">http://psankar.blogspot.in/2010/11/detecting-memory-leaks-in-kernel.html</a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Sankar P<br>
&gt; <a href="http://psankar.blogspot.com" target="_blank">http://psankar.blogspot.com</a><br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br></div></div></div>