Home
last modified time | relevance | path

Searched refs:procinfo (Results 1 – 19 of 19) sorted by relevance

/system/libprocinfo/
Dprocess_test.cpp47 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 …]
Dprocess_map_test.cpp32 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 …]
Dprocess_map_benchmark.cpp33 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()
Dprocess.cpp32 namespace procinfo { namespace
/system/core/debuggerd/
Ddebuggerd.cpp87 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()
Dcrash_dump.cpp79 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/
Ddebuggerd_client.cpp90 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/
DProcessTracerTest.cpp155 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/
DMaps.cpp64 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/
Denvironment.cpp139 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/
Dprocrank.cpp145 android::procinfo::ProcessInfo info; in main()
147 if (!android::procinfo::GetProcessInfo(pid, &info, &error)) { in main()
/system/memory/libmemunreachable/
DProcessMappings.cpp57 return android::procinfo::ReadMapFileContent(&content[0], callback); in ProcessMappings()
/system/memory/libmeminfo/
Dprocmeminfo.cpp281 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/
Ddmabufinfo.cpp213 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/
Dprocess.h37 namespace procinfo {
Dprocess_map.h31 namespace procinfo {
/system/core/init/
Dsnapuserd_transition.cpp191 auto callback = [&](const android::procinfo::MapInfo& map) -> void { in LockAllSystemPages()
207 if (!android::procinfo::ReadProcessMaps(getpid(), callback) || !ok) { in LockAllSystemPages()
/system/unwinding/libunwindstack/utils/
DProcessTracer.cpp57 if (!android::procinfo::GetProcessTids(pid_, &tids_, &error_msg)) { in InitProcessTids()
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto.cpp639 android::procinfo::ProcessInfo proc_info; in engrave_tombstone_proto()
641 if (android::procinfo::GetProcessInfo(main_thread.pid, &proc_info, &error)) { in engrave_tombstone_proto()