]> xenbits.xen.org Git - xenclient/kernel.git/commit
This makes physical page flags and counts available to userspace. Together maps2-patches/maps2-add-proc-pid-pagemap-interface.patch
authorMatt Mackall <mpm@selenic.com>
Tue, 6 Jan 2009 12:06:06 +0000 (12:06 +0000)
committerMatt Mackall <mpm@selenic.com>
Tue, 6 Jan 2009 12:06:06 +0000 (12:06 +0000)
commitf138d3d80ffe95c26fbb2ece48ce4fe205ddb9f2
tree6730bc539ecb1d87f2fa3f8de44a1cc734cab478
parent61535a060ac3b95d40ee8250039eecea2b780741
This makes physical page flags and counts available to userspace.  Together
with /proc/pid/pagemap and /proc/pid/clear_refs, this can be used to measure
memory usage on a per-page basis.

[bunk@stusta.de: make struct proc_kpagemap static]
Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/proc/proc_misc.c |   92 ++++++++++++++++++++++++++++++++++++++++++
 init/Kconfig        |    9 ++++
 2 files changed, 101 insertions(+)
fs/proc/proc_misc.c
init/Kconfig