ANDROID: vendor_hooks: add hooks in __alloc_pages_slowpath
Since android_vh_alloc_pages_slowpath is revert by
commit e09000ee19
("Revert half of "ANDROID: vendor_hooks: Add hooks
for memory when debug""). re-add hooks here to measure the duration
Bug: 182443489
Signed-off-by: liuhailong <liuhailong@oppo.com>
Change-Id: Ie4534047105d8409623692cc3811b55d9ddbd17d
This commit is contained in:

committed by
Treehugger Robot

parent
d63c961c9d
commit
4536de1b70
@@ -4790,7 +4790,9 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int order,
|
||||
int no_progress_loops;
|
||||
unsigned int cpuset_mems_cookie;
|
||||
int reserve_flags;
|
||||
unsigned long vh_record;
|
||||
|
||||
trace_android_vh_alloc_pages_slowpath_begin(gfp_mask, order, &vh_record);
|
||||
/*
|
||||
* We also sanity check to catch abuse of atomic reserves being used by
|
||||
* callers that are not in atomic context.
|
||||
@@ -5032,6 +5034,7 @@ fail:
|
||||
warn_alloc(gfp_mask, ac->nodemask,
|
||||
"page allocation failure: order:%u", order);
|
||||
got_pg:
|
||||
trace_android_vh_alloc_pages_slowpath_end(gfp_mask, order, vh_record);
|
||||
return page;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user