diff options
author | Sandeep Patil <sspatil@google.com> | 2019-01-13 17:39:08 -0800 |
---|---|---|
committer | Sandeep Patil <sspatil@google.com> | 2019-01-14 09:43:32 -0800 |
commit | dfd34be42b559a7caf607b9dca771432cf28491e (patch) | |
tree | 19b1ae3a07fc9ddcc143f7a9b19f9b724076c3f0 /init/builtins.cpp | |
parent | 8871e7e90f393bce69608ea19112aa15e4914166 (diff) |
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>
Diffstat (limited to 'init/builtins.cpp')
0 files changed, 0 insertions, 0 deletions