/system/libprocinfo/ |
D | process_test.cpp | 47 android::procinfo::ProcessInfo self; in TEST() 48 ASSERT_TRUE(android::procinfo::GetProcessInfo(gettid(), &self)); in TEST() 57 android::procinfo::ProcessInfo self; in TEST() 60 ASSERT_TRUE(android::procinfo::GetProcessInfoFromProcPidFd(fd, gettid(), &self)); in TEST() 79 ASSERT_TRUE(android::procinfo::GetProcessTids(getpid(), &vec)); in TEST() 86 ASSERT_TRUE(android::procinfo::GetProcessTids(getpid(), &set)); in TEST() 108 android::procinfo::ProcessInfo procinfo; in TEST() local 109 …for (int loop = 0; loop < 50 && procinfo.state != android::procinfo::kProcessStateSleeping; loop++… in TEST() 111 ASSERT_TRUE(android::procinfo::GetProcessInfo(forkpid, &procinfo)); in TEST() 113 ASSERT_EQ(android::procinfo::kProcessStateSleeping, procinfo.state); in TEST() [all …]
|
D | process_map_test.cpp | 32 std::vector<android::procinfo::MapInfo> maps; in TEST() 33 ASSERT_TRUE(android::procinfo::ReadMapFile( in TEST() 34 map_file, [&](const android::procinfo::MapInfo& mapinfo) { maps.emplace_back(mapinfo); })); in TEST() 59 std::vector<android::procinfo::MapInfo> maps; in TEST() 60 ASSERT_TRUE(android::procinfo::ReadProcessMaps( in TEST() 61 getpid(), [&](const android::procinfo::MapInfo& mapinfo) { maps.emplace_back(mapinfo); })); in TEST() 64 ASSERT_TRUE(android::procinfo::ReadProcessMaps(getpid(), &maps)); in TEST() 118 android::procinfo::ReadMapFileAsyncSafe(tf.path, buffer.data(), buffer.size(), callback); in VerifyReadMapFileAsyncSafe() 206 auto callback = [&](const android::procinfo::MapInfo&) { num_calls++; }; in TEST() 213 bool parsed = android::procinfo::ReadMapFileAsyncSafe("/proc/self/maps", nullptr, 10, callback); in TEST() [all …]
|
D | process_map_benchmark.cpp | 33 std::vector<android::procinfo::MapInfo> maps; in BM_ReadMapFile() 34 android::procinfo::ReadMapFile( in BM_ReadMapFile() 35 map_file, [&](const android::procinfo::MapInfo& mapinfo) { maps.emplace_back(mapinfo); }); in BM_ReadMapFile()
|
D | process.cpp | 32 namespace procinfo { namespace
|
/system/core/debuggerd/ |
D | debuggerd.cpp | 87 android::procinfo::ProcessInfo proc_info; in main() 88 if (!android::procinfo::GetProcessInfo(pid, &proc_info)) { in main() 92 if (proc_info.state == android::procinfo::kProcessStateZombie) { in main()
|
D | crash_dump.cpp | 79 android::procinfo::ProcessInfo process_info; in get_tracer() 80 if (android::procinfo::GetProcessInfo(tracee, &process_info)) { in get_tracer() 481 if (!android::procinfo::GetProcessTids(g_target_thread, &threads)) { in main()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 90 if (!android::procinfo::GetProcessTids(pid, &tids)) { in get_wchan_data() 122 android::procinfo::ProcessInfo procinfo; in debuggerd_trigger_dump() local 124 if (!android::procinfo::GetProcessInfo(tid, &procinfo, &error)) { in debuggerd_trigger_dump() 128 pid = procinfo.pid; in debuggerd_trigger_dump()
|
/system/unwinding/libunwindstack/utils/tests/ |
D | ProcessTracerTest.cpp | 155 android::procinfo::ProcessInfo proc_info; in VerifyState() 158 if (proc_info.state == android::procinfo::kProcessStateRunning || in VerifyState() 159 proc_info.state == android::procinfo::kProcessStateSleeping) { in VerifyState() 162 } else if (proc_info.state == android::procinfo::kProcessStateStopped) { in VerifyState()
|
/system/unwinding/libunwindstack/ |
D | Maps.cpp | 64 return android::procinfo::ReadMapFile(GetMapsFile(), in Parse() 65 [&](const android::procinfo::MapInfo& mapinfo) { in Parse() 119 return android::procinfo::ReadMapFileContent( in Parse() 120 &content[0], [&](const android::procinfo::MapInfo& mapinfo) { in Parse()
|
/system/extras/simpleperf/ |
D | environment.cpp | 139 android::procinfo::ProcessInfo procinfo; in ReadThreadNameAndPid() local 140 if (!android::procinfo::GetProcessInfo(tid, &procinfo)) { in ReadThreadNameAndPid() 144 *comm = procinfo.name; in ReadThreadNameAndPid() 147 *pid = procinfo.pid; in ReadThreadNameAndPid() 154 android::procinfo::GetProcessTids(pid, &result); in GetThreadsInProcess() 185 return android::procinfo::ReadProcessMaps(pid, [&](const android::procinfo::MapInfo& mapinfo) { in GetThreadMmapsInProcess()
|
/system/memory/libmeminfo/tools/ |
D | procrank.cpp | 145 android::procinfo::ProcessInfo info; in main() 147 if (!android::procinfo::GetProcessInfo(pid, &info, &error)) { in main()
|
/system/memory/libmemunreachable/ |
D | ProcessMappings.cpp | 57 return android::procinfo::ReadMapFileContent(&content[0], callback); in ProcessMappings()
|
/system/memory/libmeminfo/ |
D | procmeminfo.cpp | 281 bool success = ::android::procinfo::ReadProcessMaps(pid_, vmaCollect); in ForEachVmaFromMaps() 301 bool success = ::android::procinfo::ReadProcessMaps(pid_, vmaCollect, mapsBuffer); in ForEachVmaFromMaps() 380 if (!::android::procinfo::ReadMapFile( in ReadMaps() 381 maps_file, [&](const android::procinfo::MapInfo& mapinfo) { in ReadMaps() 587 if (!::android::procinfo::ReadMapFileContent( in ForEachVmaFromFile() 588 line, [&](const android::procinfo::MapInfo& mapinfo) { in ForEachVmaFromFile()
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo.cpp | 213 auto account_dmabuf = [&](const android::procinfo::MapInfo& mapinfo) { in ReadDmaBufMapRefs() 250 if (!::android::procinfo::ReadMapFileContent(line.data(), account_dmabuf)) { in ReadDmaBufMapRefs()
|
/system/libprocinfo/include/procinfo/ |
D | process.h | 37 namespace procinfo {
|
D | process_map.h | 31 namespace procinfo {
|
/system/core/init/ |
D | snapuserd_transition.cpp | 191 auto callback = [&](const android::procinfo::MapInfo& map) -> void { in LockAllSystemPages() 207 if (!android::procinfo::ReadProcessMaps(getpid(), callback) || !ok) { in LockAllSystemPages()
|
/system/unwinding/libunwindstack/utils/ |
D | ProcessTracer.cpp | 57 if (!android::procinfo::GetProcessTids(pid_, &tids_, &error_msg)) { in InitProcessTids()
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone_proto.cpp | 639 android::procinfo::ProcessInfo proc_info; in engrave_tombstone_proto() 641 if (android::procinfo::GetProcessInfo(main_thread.pid, &proc_info, &error)) { in engrave_tombstone_proto()
|