ANDROID: vendor_hook: Add hook in page_referenced_one()
Add android_vh_page_referenced_one_end at the end of function page_referenced_one to update the status that whether the page need to be reclaimed to a specified swap location. Bug: 234214858 Signed-off-by: Bing Han <bing.han@transsion.com> Change-Id: Ia06a229956328ef776da5d163708dcb011a327fb
This commit is contained in:

committed by
Treehugger Robot

parent
851672a4b2
commit
1aa26f0017
@@ -164,6 +164,9 @@ DECLARE_HOOK(android_vh_waiting_for_page_migration,
|
||||
DECLARE_HOOK(android_vh_migrate_page_states,
|
||||
TP_PROTO(struct page *page, struct page *newpage),
|
||||
TP_ARGS(page, newpage));
|
||||
DECLARE_HOOK(android_vh_page_referenced_one_end,
|
||||
TP_PROTO(struct vm_area_struct *vma, struct page *page, int referenced),
|
||||
TP_ARGS(vma, page, referenced));
|
||||
DECLARE_HOOK(android_vh_count_pswpin,
|
||||
TP_PROTO(struct swap_info_struct *sis),
|
||||
TP_ARGS(sis));
|
||||
|
Reference in New Issue
Block a user