commit | 592db4ca1b1dbf02676053c7c88306779e48b3ee | [log] [tgz] |
---|---|---|
author | Kevin Jeon <kevinjeon@google.com> | Fri May 03 12:57:07 2024 -0400 |
committer | Kevin Jeon <kevinjeon@google.com> | Fri May 03 12:57:07 2024 -0400 |
tree | 48d22eb21acf86c742f59ad5ff8142a1365346f6 | |
parent | 65f5d3db52f8f7bcce45ad268384d8d39bbdf5ef [diff] |
Use ReadMaps() if page flags are specified Smaps() doesn't iterate page-by-page, meaning that procrank and librank cannot filter pages for KPF_SWAPBACKED. This change makes ProcessRecord fall back on the slower ReadMaps() if page flags need to be inspected. Test: Run procrank with -c/-C, compare PSS to procrank with no options. Bug: 335586795 Change-Id: I167be0ca22849e0dc66e6ed96180b5405cc022de