From: Matt Mackall Date: Tue, 5 Feb 2008 06:29:05 +0000 (-0800) Subject: maps4: add /proc/kpagecount interface X-Git-Tag: v2.6.25-rc1~949 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=161f47bf41c5ece90ac53cbb6a4cb9bf74ce0ef6;p=pandora-kernel.git maps4: add /proc/kpagecount interface This makes physical page map counts available to userspace. Together with /proc/pid/pagemap and /proc/pid/clear_refs, this can be used to monitor memory usage on a per-page basis. [akpm@linux-foundation.org: remove unneeded access_ok()] [bunk@stusta.de: make struct proc_kpagemap static] Signed-off-by: Matt Mackall Cc: Jeremy Fitzhardinge Cc: David Rientjes Signed-off-by: Adrian Bunk Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed