ANDROID: add new vender hook to fix bug
Previous vh's name is too long to build ko out
Bug: 289962104
Fixes: 0574ecdc5e (ANDROID: Add vendor hook for highmem movable page
allocations)
Test: build pass
Change-Id: Ia4aa47162dd986273d2f3bd15d24956bb7cca5ac
Signed-off-by: zhaoyang.huang <zhaoyang.huang@unisoc.com>
This commit is contained in:
committed by
Suren Baghdasaryan
parent
c2a56c48f9
commit
a03eac4b77
@@ -1012,6 +1012,7 @@ struct page *alloc_zeroed_user_highpage_movable(struct vm_area_struct *vma,
|
||||
gfp_t flags = GFP_HIGHUSER_MOVABLE | __GFP_ZERO | __GFP_CMA;
|
||||
|
||||
trace_android_vh_alloc_highpage_movable_gfp_adjust(&flags);
|
||||
trace_android_vh_anon_gfp_adjust(&flags);
|
||||
/*
|
||||
* If the page is mapped with PROT_MTE, initialise the tags at the
|
||||
* point of allocation and page zeroing as this is usually faster than
|
||||
|
||||
@@ -423,6 +423,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_check_hibernation_swap);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_save_cpu_resume);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_save_hib_resume_bdev);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_alloc_highpage_movable_gfp_adjust);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_anon_gfp_adjust);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_dma_buf_stats_teardown);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_madvise_cold_or_pageout);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cma_alloc_retry);
|
||||
|
||||
@@ -206,6 +206,9 @@ DECLARE_HOOK(android_vh_use_cma_first_check,
|
||||
TP_PROTO(bool *use_cma_first_check),
|
||||
TP_ARGS(use_cma_first_check));
|
||||
DECLARE_HOOK(android_vh_alloc_highpage_movable_gfp_adjust,
|
||||
TP_PROTO(gfp_t *gfp_mask),
|
||||
TP_ARGS(gfp_mask));
|
||||
DECLARE_HOOK(android_vh_anon_gfp_adjust,
|
||||
TP_PROTO(gfp_t *gfp_mask),
|
||||
TP_ARGS(gfp_mask));
|
||||
#endif /* _TRACE_HOOK_MM_H */
|
||||
|
||||
Reference in New Issue
Block a user