]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm,vmacache: add debug data
authorDavidlohr Bueso <davidlohr@hp.com>
Thu, 22 May 2014 00:42:45 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:45 +0000 (10:42 +1000)
commit05c39824dd2f04252500940b03493bf9b3ac3d43
tree89c30723cc6f4b8dacf164c0d76cfe93e093b890
parent5c19d47d539f302a69925758cedbe4d2a70d0d5f
mm,vmacache: add debug data

Introduce a CONFIG_DEBUG_VM_VMACACHE option to enable counting the cache
hit rate -- exported in /proc/vmstat.

Any updates to the caching scheme needs this kind of data, thus it can
save some work re-implementing the counting all the time.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Cc: Aswin Chandramouleeswaran <aswin@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/vm_event_item.h
include/linux/vmstat.h
lib/Kconfig.debug
mm/vmacache.c
mm/vmstat.c