ANDROID: vendor_hooks: Add hook in try_to_unmap_one()

Add hook in try_to_unmap_one() to trace this function for debug memory
swap bugs.

Bug: 198385827
Change-Id: I1fdbe60e09bb491b949e06a07133710453ecca03
Signed-off-by: Jiewen Wang <jiewen.wang@vivo.com>
This commit is contained in:
Jiewen Wang
2021-09-06 16:55:03 +08:00
parent 878e0caa77
commit 955f917251
3 changed files with 7 additions and 0 deletions

View File

@@ -77,6 +77,8 @@
#include <trace/events/tlb.h>
#include <trace/hooks/mm.h>
#include "internal.h"
static struct kmem_cache *anon_vma_cachep;
@@ -1706,6 +1708,7 @@ discard:
}
mmu_notifier_invalidate_range_end(&range);
trace_android_vh_try_to_unmap_one(vma, page, address, ret);
return ret;
}