ANDROID: mm: Add vendor hook in pagecache_get_page()

Add a vendor hook for pagecache hit/miss and other
vendor specific functions.

Bug: 174088128
Bug: 172987241
Signed-off-by: Chiawei Wang <chiaweiwang@google.com>
Change-Id: Ie9f14a69a86b8ed81de766e44e30f2eba1d9bd84
This commit is contained in:
Chiawei Wang
2021-02-18 10:47:37 +08:00
committed by Suren Baghdasaryan
parent 369de37804
commit db158b4ae0
3 changed files with 11 additions and 1 deletions

View File

@@ -28,7 +28,10 @@ DECLARE_HOOK(android_vh_rmqueue,
unsigned int alloc_flags, int migratetype),
TP_ARGS(preferred_zone, zone, order,
gfp_flags, alloc_flags, migratetype));
DECLARE_HOOK(android_vh_pagecache_get_page,
TP_PROTO(struct address_space *mapping, pgoff_t index,
int fgp_flags, gfp_t gfp_mask, struct page *page),
TP_ARGS(mapping, index, fgp_flags, gfp_mask, page));
/* macro versions of hooks are no longer required */
#endif /* _TRACE_HOOK_MM_H */