• Wu Fengguang's avatar
    Teach page-types to describe page flags directly from the command · 3891e70e
    Wu Fengguang authored
    line.
    Why is this useful? For instance, if you're using memory hotplug
    and see this in /var/log/messages:
    	kernel: removing from LRU failed 3836dd0/1/1e00000000000010
    
    It would be nice to decode those page flags without staring at
    the source.
    Example usage and output:
    
    # Documentation/vm/page-types -d 0x10
    0x0000000000000010	____D_____________________________	dirty
    
    # Documentation/vm/page-types -d anon
    0x0000000000001000	____________a_____________________	anonymous
    
    # Documentation/vm/page-types -d anon,0x10
    0x0000000000001010	____D_______a_____________________	dirty,anonymous
    
    [achiang@hp.com: documentation]
    Signed-off-by: default avatarAlex Chiang <achiang@hp.com>
    Signed-off-by: default avatarWu Fengguang <fengguang.wu@intel.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Haicheng Li <haicheng.li@intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    3891e70e
page-types.c 20.8 KB