platform_system_core/libmeminfo
Sandeep Patil dfd34be42b meminfo: Add IsSmapsRollupSupported Api
Consolidate the checking of /proc/<pid>/smaps_rollup support
in libmeminfo and do it in a thread safe way.

Use the API in ProcMemInfo as well to eliminate the extra
parameters passed to SmapsOrRollup* methods.

Bug: 111694435
Test: libmeminfo_test 1 --gtest_filter=TestProcMemInfo.IsSmapsSupportedTest
Test: Tested with and without the smaps_rollup support in kernel.

Change-Id: I992057f06b54569025fa0cdade9618da2675d1de
Merged-In: I992057f06b54569025fa0cdade9618da2675d1de
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-01-14 09:43:32 -08:00
..
include/meminfo meminfo: Add IsSmapsRollupSupported Api 2019-01-14 09:43:32 -08:00
testdata1 meminfo: Add Smaps(), showmap and friends. 2019-01-08 17:08:10 -08:00
testdata2 libmeminfo: Add support to read zram memory consumption 2018-12-04 15:59:39 -08:00
tools meminfo: Remove unnecessary working set stats 2019-01-14 09:42:50 -08:00
.clang-format libmeminfo: Add libmeminfo to gather global and per-process memory stats 2018-11-05 10:42:46 -08:00
Android.bp libmeminfo: Add support to read zram memory consumption 2018-12-04 15:59:39 -08:00
libmeminfo_benchmark.cpp libmeminfo: Add SmapsRollup 2019-01-07 09:43:37 -08:00
libmeminfo_test.cpp meminfo: Add IsSmapsRollupSupported Api 2019-01-14 09:43:32 -08:00
meminfo_private.h libmeminfo: Add libmeminfo to gather global and per-process memory stats 2018-11-05 10:42:46 -08:00
OWNERS Add OWNERS file 2018-12-07 09:29:03 -08:00
pageacct.cpp libmeminfo: Add libmeminfo to gather global and per-process memory stats 2018-11-05 10:42:46 -08:00
procmeminfo.cpp meminfo: Add IsSmapsRollupSupported Api 2019-01-14 09:43:32 -08:00
sysmeminfo.cpp meminfo: Add ReadVmallocInfo() 2019-01-07 09:41:55 -08:00