ANDROID: mm: add vendor hooks in madvise for swap entry

Add vendor hooks in madvise for swap entry
- android_vh_madvise_pageout_swap_entry
- android_vh_madvise_swapin_walk_pmd_entry
- android_vh_process_madvise_end

removed android_vh_madvise_pageout_swap_entry()
renamed android_vh_process_madvise()

Bug: 284059805

Change-Id: Ic389244e343737a583286c20cadb6774efd8890c
Signed-off-by: Sooyong Suk <s.suk@samsung.com>
(cherry picked from commit 7adccac4c2778efee2a6683f360bf7e685931cf4)
This commit is contained in:
Sooyong Suk
2024-04-26 15:00:40 +09:00
committed by Treehugger Robot
parent 1808855fbf
commit 5f63d051ce
3 changed files with 11 additions and 0 deletions
+7
View File
@@ -133,6 +133,13 @@ struct slabinfo;
DECLARE_HOOK(android_vh_cache_show,
TP_PROTO(struct seq_file *m, struct slabinfo *sinfo, struct kmem_cache *s),
TP_ARGS(m, sinfo, s));
DECLARE_HOOK(android_vh_madvise_swapin_walk_pmd_entry,
TP_PROTO(swp_entry_t entry),
TP_ARGS(entry));
DECLARE_HOOK(android_vh_process_madvise,
TP_PROTO(int behavior, ssize_t *ret, void *priv),
TP_ARGS(behavior, ret, priv));
DECLARE_HOOK(android_vh_count_workingset_refault,
TP_PROTO(struct folio *folio),
TP_ARGS(folio));