]> git.baikalelectronics.ru Git - kernel.git/commit
mm,vmacache: add debug data
authorDavidlohr Bueso <davidlohr@hp.com>
Wed, 4 Jun 2014 23:06:46 +0000 (16:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:53:57 +0000 (16:53 -0700)
commit9572c8c4adf362f6df60299b4ba80f6045b5f9f1
tree27afdf3f60c21fde601df63d9e9998b0c758a3fe
parent56aff53bcc2308372f2c792a7e818402720e5f43
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/vm_event_item.h
include/linux/vmstat.h
lib/Kconfig.debug
mm/vmacache.c
mm/vmstat.c