]> 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>
Thu, 21 Mar 2013 05:28:22 +0000 (16:28 +1100)
commitef58c7b0cfa61728e475ae1e2b08b7e39d9223c9
tree991e6db3189d30cc731dd80260edb46ec99ed543
parent3d40ad3b4156fc8184ee92135f079fae0c2a2aa6
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