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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user