ANDROID: mm: add vendor hook for page_cache_readahead and filemap_fault
Add a vendor hook for start/end of page_cache_readahead and filemap_fault. Bug: 351175506 Change-Id: Ie00ff34d48db7ef85520576af8986c95d841112e Signed-off-by: Sooyong Suk <s.suk@samsung.corp-partner.google.com>
This commit is contained in:
committed by
Suren Baghdasaryan
parent
c4535caded
commit
ce2b5c7bca
@@ -231,6 +231,19 @@ DECLARE_HOOK(android_vh_filemap_map_pages,
|
||||
TP_PROTO(struct file *file, pgoff_t first_pgoff,
|
||||
pgoff_t last_pgoff, vm_fault_t ret),
|
||||
TP_ARGS(file, first_pgoff, last_pgoff, ret));
|
||||
DECLARE_HOOK(android_vh_page_cache_readahead_start,
|
||||
TP_PROTO(struct file *file, pgoff_t pgoff,
|
||||
unsigned int size, bool sync),
|
||||
TP_ARGS(file, pgoff, size, sync));
|
||||
DECLARE_HOOK(android_vh_page_cache_readahead_end,
|
||||
TP_PROTO(struct file *file, pgoff_t pgoff),
|
||||
TP_ARGS(file, pgoff));
|
||||
DECLARE_HOOK(android_vh_filemap_fault_start,
|
||||
TP_PROTO(struct file *file, pgoff_t pgoff),
|
||||
TP_ARGS(file, pgoff));
|
||||
DECLARE_HOOK(android_vh_filemap_fault_end,
|
||||
TP_PROTO(struct file *file, pgoff_t pgoff),
|
||||
TP_ARGS(file, pgoff));
|
||||
#endif /* _TRACE_HOOK_MM_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
|
||||
Reference in New Issue
Block a user