"src/net/fd_unix.go" did not exist on "c0325f50832489f2060549d6b19ce156df45b044"
  • Hyeonggon Yoo's avatar
    mm/debug: use %pGt to display page_type in dump_page() · f2421a16
    Hyeonggon Yoo authored
    Some page flags are stored in page_type rather than ->flags field.
    Use newly introduced page type %pGt in dump_page().
    
    Below are some examples:
    
    page:00000000da7184dd refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101cb3
    flags: 0x2ffff0000000000(node=0|zone=2|lastcpupid=0xffff)
    page_type: 0xffffffff()
    raw: 02ffff0000000000 0000000000000000 dead000000000122 0000000000000000
    raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
    page dumped because: newly allocated page
    
    page:00000000da7184dd refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x101cb3
    flags: 0x2ffff0000000000(node=0|zone=2|lastcpupid=0xffff)
    page_type: 0xffffff7f(buddy)
    raw: 02ffff0000000000 ffff88813fff8e80 ffff88813fff8e80 0000000000000000
    raw: 0000000000000000 0000000000000000 00000000ffffff7f 0000000000000000
    page dumped because: freed page
    
    page:0000000042202316 refcount:3 mapcount:2 mapping:0000000000000000 index:0x7f634722a pfn:0x11...
    f2421a16
debug.c 6.83 KB