device_google_gs201/dumpstate
Minchan Kim ec97992b78 dump page_pinner information into bugreport
Dump page_pinner information into dumpstate_board.txt.
It helps to find vulnerable place of CMA failure.

Page pinned ts 13 us count 0
PFN 10292273 Block 10051 type CMA Flags 0x8000000000080024(uptodate|active|swapbacked)
 try_grab_page+0x168/0x17c
 follow_page_pte+0x2e4/0x4c8
 follow_pmd_mask+0x180/0x498
 __get_user_pages+0x1a0/0x42c
 __get_user_pages_remote+0xa4/0x28c
 get_user_pages_remote+0x20/0x48
 copy_strings+0x188/0x2ac
 do_execveat_common+0x278/0x300
 __arm64_sys_execve+0x44/0x5c
 el0_svc_common+0xa4/0x180
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x19c/0x1c0

Page pinned ts 2 us count 0
PFN 10436170 Block 10191 type CMA Flags 0x8000000000080026(referenced|uptodate|active|swapbacked)
 try_grab_page+0x168/0x17c
 follow_page_pte+0x2e4/0x4c8
 follow_pmd_mask+0x180/0x498
 __get_user_pages+0x1a0/0x42c
 __get_user_pages_remote+0xa4/0x28c
 get_user_pages_remote+0x20/0x48
 copy_strings+0x188/0x2ac
 do_execveat_common+0x290/0x300
 __arm64_sys_execve+0x44/0x5c
 el0_svc_common+0xa4/0x180
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x19c/0x1c0

Bug: 226956571
Test: adb bugreport <zip> and confirmed it contains page_pinner
      information.
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Iaf5cd9b70116ed5fff9351dcdcc5485aef18063f
2022-03-28 16:35:02 +00:00
..
android.hardware.dumpstate@1.1-service.gs201.rc s/gs101/gs201 2021-05-20 17:54:35 +08:00
Android.mk s/gs101/gs201 2021-05-20 17:54:35 +08:00
DumpstateDevice.cpp dump page_pinner information into bugreport 2022-03-28 16:35:02 +00:00
DumpstateDevice.h gps: Add MCU crash dump to bugreport 2022-03-18 03:21:36 +00:00
service.cpp s/gs101/gs201 2021-05-20 17:54:35 +08:00