summaryrefslogtreecommitdiffstats
path: root/libmemunreachable/Android.bp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-06-20 18:07:29 -0700
committerColin Cross <ccross@android.com>2017-07-12 14:59:11 -0700
commitf572b91c4f5acf739742da53ae3406e615c2d756 (patch)
tree3b1cf54be248ae7b2293abd8a383c89fe2feb0e3 /libmemunreachable/Android.bp
parentc31963b5c255d57e162f4666f80b438ac74413ac (diff)
downloadsystem_core-f572b91c4f5acf739742da53ae3406e615c2d756.tar.gz
system_core-f572b91c4f5acf739742da53ae3406e615c2d756.tar.bz2
system_core-f572b91c4f5acf739742da53ae3406e615c2d756.zip
libmemunreachable: track kernel binder references
The kernel can hold references to binder objects that have no userspace references. Allow libmemunreachable to call into libbinder and libhwbinder to get lists of kernel references. Use undefined weak symbols so that libmemunreachable will continue to work in processes that do not have libbinder. Test: memunreachable_binder_test Bug: 28275695 Change-Id: I9eae73f2a51a49a7025ffe6309ccdc2693a2391b
Diffstat (limited to 'libmemunreachable/Android.bp')
-rw-r--r--libmemunreachable/Android.bp16
1 files changed, 16 insertions, 0 deletions
diff --git a/libmemunreachable/Android.bp b/libmemunreachable/Android.bp
index cdac76bab..826a576e6 100644
--- a/libmemunreachable/Android.bp
+++ b/libmemunreachable/Android.bp
@@ -26,6 +26,7 @@ cc_library_shared {
defaults: ["libmemunreachable_defaults"],
srcs: [
"Allocator.cpp",
+ "Binder.cpp",
"HeapWalker.cpp",
"LeakFolding.cpp",
"LeakPipe.cpp",
@@ -84,3 +85,18 @@ cc_test {
},
},
}
+
+cc_test {
+ name: "memunreachable_binder_test",
+ defaults: ["libmemunreachable_defaults"],
+ srcs: [
+ "tests/Binder_test.cpp",
+ "tests/MemUnreachable_test.cpp",
+ ],
+ shared_libs: [
+ "libbinder",
+ "libhwbinder",
+ "libmemunreachable",
+ "libutils",
+ ],
+}