]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: trace filemap add and del
authorRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 20 Mar 2013 04:07:03 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:22:38 +0000 (15:22 +1100)
commit75c79ee195305735f166dc8c8806021d3b854b04
tree2e4f973a8c699e576ffe216e8c6dcec31d30faa0
parent586d427b4fdb1fc0eb4d441d7ad608fd2dd3cc3a
mm: trace filemap add and del

Use the events API to trace filemap loading and unloading of file pieces
into the page cache.

This patch aims at tracing the eviction reload cycle of executable and
shared libraries pages in a memory constrained environment.

The typical usage is to spot a specific device and inode (for example
/lib/libc.so) to see the eviction cycles, and find out if frequently used
code is rather spread across many pages (bad) or coallesced (good).

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/trace/events/filemap.h [new file with mode: 0644]
mm/filemap.c