ANDROID: page_alloc: add new vendor hook to try alloc pages with gfp
Add new vendor hook to get pages with gfp from vendor implemented pool. Vendor hook trace_android_rvh_try_alloc_pages() was previously added via https://android-review.googlesource.com/c/kernel/common/+/3184382. But there were missing gfp_t in the commit, which is needed for page allocation. So add a new vendor hook with gfp. Bug: 351175506 Change-Id: I64b382b8d6d528d58146f32ebabe2883234f2653 Signed-off-by: Sooyong Suk <s.suk@samsung.corp-partner.google.com>
This commit is contained in:
committed by
Suren Baghdasaryan
parent
c2700380df
commit
6579112b58
@@ -16,6 +16,10 @@ struct folio_batch;
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_shmem_get_folio,
|
||||
TP_PROTO(struct shmem_inode_info *info, struct folio **folio),
|
||||
TP_ARGS(info, folio), 2);
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_try_alloc_pages_gfp,
|
||||
TP_PROTO(struct page **page, unsigned int order,
|
||||
gfp_t gfp, enum zone_type highest_zoneidx),
|
||||
TP_ARGS(page, order, gfp, highest_zoneidx), 1);
|
||||
|
||||
/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user