History log of /system/core/libmemunreachable/MemUnreachable.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f572b91c4f5acf739742da53ae3406e615c2d756 21-Jun-2017 Colin Cross <ccross@android.com> 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
/system/core/libmemunreachable/MemUnreachable.cpp
a9939e9a23ea21f4f8dc69cf1dae8e95debadcfb 21-Jun-2017 Colin Cross <ccross@android.com> Move libmemunreachable into namespace android

Putting libmemunreachable in the global C++ namespace was an oversight,
move it into namespace android.

Test: m -j checkbuild
Change-Id: I0799906f6463178cb04a719bb4054cad33a50dbe
/system/core/libmemunreachable/MemUnreachable.cpp
a83881e33ce29ee236c924d669cb41a9d816962d 22-Jun-2017 Colin Cross <ccross@android.com> libmemunreachable: clang-format everything

clang-format -i --sort-includes $(find . -name "*.cpp" -o -name "*.h")

Test: builds
Change-Id: Ia8e0677fe7f3f26dddba3a851cd2dfab9f14e421
/system/core/libmemunreachable/MemUnreachable.cpp
72d3881412d012bfa06583e4b06bdff16a2e6d8e 14-Jun-2017 Colin Cross <ccross@android.com> Add a helpful error message if GetUnreachableMemory fails

The primary reason for GetUnreachableMemory failing is selinux
blocking system apps from ptracing themselves. Add a helpful
error message suggesting setenforce 0.

Bug: 27945735
Test: dumpsys meminfo --unreachable com.android.systemui
Change-Id: Ibfa9507860be36dffd514f82027f7a2f8a72ac48
/system/core/libmemunreachable/MemUnreachable.cpp
47dea71b165c855ec40e855f7514fb745dacac38 04-May-2017 Christopher Ferris <cferris@google.com> Move all logging to use the async safe logging.

Also, add a link to the .clang-format-2 for this directory and clang
format the files that changed.

Bug: 31919199

Test: Boot bullhead.
Test: Run unit tests on bullhead. There are a few that fail, but they
Test: failed before and are not a result of this change.
Change-Id: I3d3b2111f6f6bf8a0d7039295d34d5168c191651
/system/core/libmemunreachable/MemUnreachable.cpp
11185af983f955f5c5d59c15e1a96ac610a528be 05-Mar-2016 Colin Cross <ccross@android.com> Add ABI to leak report

Add the ABI to the leak report so that it can be piped through
development/scripts/stack.

Bug: 27208635
Change-Id: I2e050a377305d48d2f904f34ea921f64e13dd00e
/system/core/libmemunreachable/MemUnreachable.cpp
7a22e81c20e9a28b9cf7b99e0f46659a2b2a9de7 05-Mar-2016 Colin Cross <ccross@android.com> Combine leaks with same stacktrace

Combine similar leaks (those with identical stack traces) into a single
leak report, and sort the resulting leaks by total leak size across all
similar leaks and their references.

Bug: 27208635
Change-Id: Ia2bf2ccf3fcbc110d1c7ba60e3b77348d1c63d8d
/system/core/libmemunreachable/MemUnreachable.cpp
8e8f34c5580d3b0b466d35f98bb12175e5dcf30a 03-Mar-2016 Colin Cross <ccross@android.com> Fold leaks that are referenced by other leaks

Find leaks that have no references at all, or are only referenced by
other leaks in the same strongly connected component, and hide all
referenced leaks.

Bug: 27208635
Change-Id: Ifbfd14e24e2ba0f8af7c1b887e57f34362720f2d
/system/core/libmemunreachable/MemUnreachable.cpp
de42af013f1c9aec2dce478457aff2ff22d3e577 15-Jan-2016 Colin Cross <ccross@android.com> libmemunreachable: fix long timeout on error

The collection thread should unblock the parent when it fails in order
to prevent a 100 second timeout delay. Also reduce the timeout to 30
seconds, and fix a few log messages.

Bug: 27208635
Change-Id: I47f9ce4f645c453810fec57bef557c32a665eefb
(cherry picked from commit b1b7923efe96350a6ba31b027cc981bcfd6a7c85)
/system/core/libmemunreachable/MemUnreachable.cpp
7add50d820938123b7f163bbc5b528623065b7b1 15-Jan-2016 Colin Cross <ccross@android.com> imprecise mark and sweep native memory leak detector

libmemunreachable uses an imprecise mark and sweep pass over all memory
allocated by jemalloc in order to find unreachable allocations.

Bug: 27208635
Change-Id: Ia70bbf31f5b40ff71dab28cfd6cd06c5ef01a2d4
(cherry picked from commit bcb4ed3eaa92d23949d4ab33dbf1b2604bba8a18)
/system/core/libmemunreachable/MemUnreachable.cpp