Tracing allocators of virtual memory and main memory
Nicholas Krause
xerofoify at gmail.com
Wed Mar 11 13:30:55 EDT 2015
On March 11, 2015 12:07:29 PM EDT, sahil aggarwal <sahil.agg15 at gmail.com> wrote:
>Hi all
>
>If i want to trace the allocators of virtual memory and main memory of
>process using ftrace on which functions i need to enable the probe.?
>
>Currently i have enabled sys_mmap,sys_brk for virtual allocations and
>mm_page_alloc, kmalloc, kmem_cache_alloc for main memory allocation.
>Will this give me whole picture of virtual and main memory
>allocations.?
>
>Thanks
>Regards
>Sahil
>
>______
Greetings Sachil,
The best way to do this is find
out the PID of your application
and look for it in /proc as there
should be a directory with the
information your looking for.
Nick
>Kernelnewbies mailing list
>Kernelnewbies at kernelnewbies.org
>http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
More information about the Kernelnewbies
mailing list