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
@@ -87,6 +87,12 @@ DECLARE_HOOK(android_vh_include_reserved_zone,
|
||||
DECLARE_HOOK(android_vh_show_mem,
|
||||
TP_PROTO(unsigned int filter, nodemask_t *nodemask),
|
||||
TP_ARGS(filter, nodemask));
|
||||
DECLARE_HOOK(android_vh_alloc_pages_slowpath_begin,
|
||||
TP_PROTO(gfp_t gfp_mask, unsigned int order, unsigned long *pdata),
|
||||
TP_ARGS(gfp_mask, order, pdata));
|
||||
DECLARE_HOOK(android_vh_alloc_pages_slowpath_end,
|
||||
TP_PROTO(gfp_t gfp_mask, unsigned int order, unsigned long data),
|
||||
TP_ARGS(gfp_mask, order, data));
|
||||
struct dirty_throttle_control;
|
||||
DECLARE_HOOK(android_vh_mm_dirty_limits,
|
||||
TP_PROTO(struct dirty_throttle_control *const gdtc, bool strictlimit,
|
||||
|
Reference in New Issue
Block a user