• W
    pagemap: add page-types tool · 35efa5e9
    Wu Fengguang 提交于
    Add page-types, a handy tool for querying page flags.
    
    It will expand some of the overloaded flags:
    	PG_slob_free   = PG_private
    	PG_slub_frozen = PG_active
    	PG_slub_debug  = PG_error
    	PG_readahead   = PG_reclaim
    
    and mask out obscure flags except in -raw mode:
    	PG_reserved
    	PG_mlocked
    	PG_mappedtodisk
    	PG_private
    	PG_private_2
    	PG_owner_priv_1
    	PG_arch_1
    	PG_uncached
    	PG_compound* for non hugeTLB pages
    
    [akpm@linux-foundation.org: fix warning]
    Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
    Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Matt Mackall <mpm@selenic.com>
    Cc: Alexey Dobriyan <adobriyan@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    35efa5e9
page-types.c 14.3 KB