ANDROID: vendor_hook: customize gfp and orders to alloc large folio
This hook is used to dynamic modify: 1.gfp_mask, which control behavior for allocation. 2.orders, which control highest order to try alloc folio. 3.order, which need assign `order = highest_order(orders);` Bug: 438090847 Change-Id: Id2e89a2c674acb7bea6867cdb9f84163c266d7db Signed-off-by: chunpeng li <lichunpeng@xiaomi.com> Signed-off-by: yan chang <changyan1@xiaomi.com>
This commit is contained in:
committed by
Treehugger Robot
parent
de2973e844
commit
bb9c59d1f1
@@ -600,6 +600,9 @@ DECLARE_HOOK(android_vh_mm_split_huge_page_bypass,
|
||||
DECLARE_HOOK(android_vh_mm_try_split_folio_bypass,
|
||||
TP_PROTO(struct folio *folio, bool *bypass),
|
||||
TP_ARGS(folio, bypass));
|
||||
DECLARE_HOOK(android_vh_customize_thp_gfp_orders,
|
||||
TP_PROTO(gfp_t *gfp_mask, unsigned long *orders, int *order),
|
||||
TP_ARGS(gfp_mask, orders, order));
|
||||
#endif /* _TRACE_HOOK_MM_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
|
||||
Reference in New Issue
Block a user