mm: allow access page_owner in debugfs
The page_owner provides what contexts each pages are allocated like
this. It shows page frame number, allocation flags and callchains.
..
..
..
Page allocated via order 0, mask 0x6212ca(GFP_HIGHUSER_MOVABLE|__GFP_NOWARN|__GFP_NORETRY)
PFN 1739255 type Movable Block 1698 type Movable Flags 0x20014(uptodate|lru|mappedtodisk)
prep_new_page+0x50/0x170
get_page_from_freelist+0xedc/0x1048
__alloc_pages_nodemask+0x128/0x1008
__do_page_cache_readahead+0xfc/0x1cc
filemap_fault+0x2dc/0x684
ext4_filemap_fault+0x34/0x54
__do_fault+0x80/0xf0
handle_mm_fault+0xa68/0xe70
do_page_fault+0x298/0x4d8
do_translation_fault+0x30/0x48
do_mem_abort+0x74/0x124
do_el0_ia_bp_hardening+0x1c/0x28
el0_ia+0x18/0x1c
Page allocated via order 0, mask 0x6212ca(GFP_HIGHUSER_MOVABLE|__GFP_NOWARN|__GFP_NORETRY)
PFN 1739256 type Movable Block 1698 type Movable Flags 0x20014(uptodate|lru|mappedtodisk)
prep_new_page+0x50/0x170
get_page_from_freelist+0xedc/0x1048
__alloc_pages_nodemask+0x128/0x1008
__do_page_cache_readahead+0xfc/0x1cc
filemap_fault+0x2dc/0x684
ext4_filemap_fault+0x34/0x54
__do_fault+0x80/0xf0
handle_mm_fault+0xa68/0xe70
do_page_fault+0x298/0x4d8
do_translation_fault+0x30/0x48
do_mem_abort+0x74/0x124
do_el0_ia_bp_hardening+0x1c/0x28
el0_ia+0x18/0x1c
..
..
..
Bug: 168344541
Test: confirmed from coral,crosshatch device
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I1ec864dc193bf4c8408d4bd14cbeddccdae27484
Merged-in: I1ec864dc193bf4c8408d4bd14cbeddccdae27484
2 files changed