From 1e7f64367f8e396391d52fe037e662c8b08c80cd Mon Sep 17 00:00:00 2001 From: Dmitrii Ishcheikin Date: Tue, 4 Mar 2025 16:56:31 +0000 Subject: Add find_unshared_pages tool The tool goes through all memory maps of two processes and finds pages that have equal contents but are not shared. Test: find_unshared_pages --pid1=$(pidof system_server) --pid2=$(pidof com.android.camera2) Change-Id: I1c5bbb18c9854c13f6112a87dbea2d806421d2bb --- build/apex/Android.bp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/apex/Android.bp b/build/apex/Android.bp index d2fd8f9e1e..f91b7863ee 100644 --- a/build/apex/Android.bp +++ b/build/apex/Android.bp @@ -220,7 +220,11 @@ apex_test { native_shared_libs: ["libart"], multilib: { both: { - binaries: ["imgdiag"], + binaries: [ + "imgdiag", + "pageinfo", + "find_unshared_pages", + ], }, first: { binaries: ["odrefresh"], -- cgit v1.2.3-59-g8ed1b