diff options
author | Cloud You <cloud.you@realtek.com> | 2023-12-13 18:03:50 +0900 |
---|---|---|
committer | Cloud You <cloud.you@realtek.com> | 2023-12-13 18:28:36 +0900 |
commit | 8520a37d073d81edf3fe023c2e211fe14663457c (patch) | |
tree | 763f1b92af7b965814314759226b4932bb42bb54 /pagecache | |
parent | c554c23e26433d85c3d1523763fddcf26e3f67ca (diff) | |
download | extras-8520a37d073d81edf3fe023c2e211fe14663457c.tar.gz |
pagecache: Fixed incorrect regex pattern
It can't update pagecached in/out because of wrong regex pattern about pfn
e.g. pfn=0x49e10
Bug: 316092799
Test: run /system/extras/pagecache.py
Change-Id: I9e1a61c0f730114c928cc952cd1cb92bb8f7c2f4
Diffstat (limited to 'pagecache')
-rwxr-xr-x | pagecache/pagecache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pagecache/pagecache.py b/pagecache/pagecache.py index c822ff00..cb9c7396 100755 --- a/pagecache/pagecache.py +++ b/pagecache/pagecache.py @@ -229,7 +229,7 @@ class AdbUtils(): def parse_atrace_line(line, pagecache_stats, app_name): # Find a mm_filemap_add_to_page_cache entry - m = re.match('.* (mm_filemap_add_to_page_cache|mm_filemap_delete_from_page_cache): dev (\d+):(\d+) ino ([0-9a-z]+) page=([0-9a-z]+) pfn=\d+ ofs=(\d+).*', line) + m = re.match('.* (mm_filemap_add_to_page_cache|mm_filemap_delete_from_page_cache): dev (\d+):(\d+) ino ([0-9a-z]+) page=([0-9a-z]+) pfn=([0-9a-z]+) ofs=(\d+).*', line) if m != None: # Get filename device_number = int(m.group(2)) << 8 | int(m.group(3)) |