]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: trace filemap add and del
authorRobert Jarzmik <robert.jarzmik@free.fr>
Thu, 29 Nov 2012 03:18:11 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:22 +0000 (16:23 +1100)
commit56379f795d9b99ec6c32dda56ebada5d84cfc31c
treed0e7f8e37f4fac5bd8c2a5de4baf69447b1f668f
parent07fd8379cca760a4d4288e033cd607e91b4d5d55
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