<div class="gmail_quote">Dear All,<br><br> I am writing a kernel module which will accept user process id (PID) as input and dump all the address space of that user process,like stack,heap segment.<br><br>I took mm->start_brk as start of heap ,mm->brk as end of heap,then i am seeing, even though user process is not using 33 pages heap size shows as 33 pages<br>
(mm->brk -mm->start_brk) . (This i verified using /proc/pid/maps) .Stack also behaves in similar way,<br><br><b>So is there any way i can find out the really used heap staring from mm->start_brk,So that i can dump only the used heap</b><br>
<br>--<br>Thanks <br><span class="HOEnZb"><font color="#888888">Dhyan<br><br>
</font></span></div><br>