#
#	creater by xulongwen  20180913
# 	HIK-BASE menu
#

menuconfig HIKBASE_PAGE_DEBUG
	bool "debug page support"
	default n
	help
	  a basic configuration to debug mm.

if HIKBASE_PAGE_DEBUG

config HIKBASE_PAGE_EXTENSION	
	bool "Extend memmap on extra space for more information on page"
	---help---	  
		Extend memmap on extra space for more information on page. This
		could be used for debugging features that need to insert extra
		field for every page. This extension enables us to save memory
		by not allocating this extra memory according to boottime
		configuration.

config HIKBASE_PAGE_OWNER
	bool "Track page owner"	
	depends on DEBUG_KERNEL && STACKTRACE_SUPPORT	
	select DEBUG_FS	
	select STACKTRACE	
	select STACKDEPOT	
	select HIKBASE_PAGE_EXTENSION	
	select MM_OWNER
	select MEMCG
	select RESOURCE_COUNTERS
	help	  
		This keeps track of what call chain is the owner of a page, may	  
		help to find bare alloc_page(s) leaks. Even if you include this	  
		feature on your build, it is disabled in default. You should pass	  
		"page_owner=on" to boot parameter in order to enable it. Eats	  
		a fair amount of memory if enabled. See tools/vm/page_owner_sort.c	  
		for user-space helper. If unsure, say N.

endif #HIKBASE_DEBUG
