Home
last modified time | relevance | path

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

/system/extras/simpleperf/
DRecordFilter.cpp35 if (auto tids = GetTidsFromString(*value.str_value, false); tids) { in ParseOptions() local
36 AddTids(tids.value(), exclude); in ParseOptions()
64 void RecordFilter::AddTids(const std::set<pid_t>& tids, bool exclude) { in AddTids() argument
67 cond.tids.insert(tids.begin(), tids.end()); in AddTids()
108 if (condition.tids.count(r->tid_data.tid) == 1) { in CheckCondition()
DMapRecordReader.cpp52 std::vector<pid_t> tids = GetThreadsInProcess(pid); in ReadProcessMaps() local
53 return ReadProcessMaps(pid, std::unordered_set<pid_t>(tids.begin(), tids.end()), timestamp); in ReadProcessMaps()
56 bool MapRecordReader::ReadProcessMaps(pid_t pid, const std::unordered_set<pid_t>& tids, in ReadProcessMaps() argument
83 for (const auto& tid : tids) { in ReadProcessMaps()
Drecord_lib_interface.cpp88 std::vector<pid_t> tids = GetThreadsInProcess(getpid()); in MonitorThreadsInCurrentProcess() local
90 if (std::find(tids.begin(), tids.end(), tid) == tids.end()) { in MonitorThreadsInCurrentProcess()
DRecordFilter.h53 std::set<pid_t> tids; member
67 void AddTids(const std::set<pid_t>& tids, bool exclude);
DMapRecordReader.h45 bool ReadProcessMaps(pid_t pid, const std::unordered_set<pid_t>& tids, uint64_t timestamp);
Dutils.cpp411 std::set<pid_t> tids; in GetTidsFromString() local
422 tids.insert(tid); in GetTidsFromString()
424 return tids; in GetTidsFromString()
Dcmd_record.cpp976 if (auto tids = GetTidsFromString(*value.str_value, true); tids) { in ParseOptions() local
977 event_selection_set_.AddMonitoredThreads(tids.value()); in ParseOptions()
1299 std::vector<pid_t> tids = GetThreadsInProcess(pid); in DumpMaps() local
1300 process_map[pid].insert(tids.begin(), tids.end()); in DumpMaps()
1310 for (const auto& [pid, tids] : process_map) { in DumpMaps()
1311 if (!map_record_reader_->ReadProcessMaps(pid, tids, 0)) { in DumpMaps()
DRecordFilter_test.cpp165 ASSERT_EQ(filter.GetCondition(exclude).tids, std::set<pid_t>({1, 2, 3})); in TEST_F()
Devent_selection_set.cpp591 std::vector<pid_t> tids = GetThreadsInProcess(pid); in PrepareThreads() local
592 result.insert(tids.begin(), tids.end()); in PrepareThreads()
Dcmd_report.cpp612 if (auto tids = GetTidsFromString(*value.str_value, false); tids) { in ParseOptions() local
613 sample_tree_builder_options_.tid_filter.insert(tids->begin(), tids->end()); in ParseOptions()
Dcmd_stat.cpp697 if (auto tids = GetTidsFromString(*value.str_value, true); tids) { in ParseOptions() local
698 event_selection_set_.AddMonitoredThreads(tids.value()); in ParseOptions()
Dcmd_monitor.cpp163 bool DumpProcessMaps(pid_t pid, const std::unordered_set<pid_t>& tids);
/system/memory/libmemunreachable/
DThreadCapture.cpp78 bool ListThreads(TidList& tids);
101 bool ThreadCaptureImpl::ListThreads(TidList& tids) { in ListThreads() argument
102 tids.clear(); in ListThreads()
142 tids.push_back(tid); in ListThreads()
152 TidList tids{allocator_}; in CaptureThreads() local
156 if (!ListThreads(tids)) { in CaptureThreads()
163 for (auto it = tids.begin(); it != tids.end(); it++) { in CaptureThreads()
343 bool ThreadCapture::ListThreads(TidList& tids) { in ListThreads() argument
344 return impl_->ListThreads(tids); in ListThreads()
DThreadCapture.h42 bool ListThreads(TidList& tids);
/system/memory/libmemunreachable/tests/
DThreadCapture_test.cpp98 std::vector<pid_t>& tids() { return tids_; } in tids() function in android::ThreadListTest
104 auto tids = TidList{heap}; in WaitForThreads()
108 EXPECT_TRUE(thread_capture.ListThreads(tids)); in WaitForThreads()
109 if (tids.size() == 1) { in WaitForThreads()
114 EXPECT_EQ(1U, tids.size()); in WaitForThreads()
147 std::vector<pid_t> expected_tids = tids(); in TEST_P()
/system/unwinding/libunwindstack/tests/
DUnwindTest.cpp613 std::atomic_int tids[kNumThreads] = {}; in TEST_F() local
616 std::thread* thread = new std::thread([&tids, i]() { in TEST_F()
617 tids[i] = android::base::GetThreadId(); in TEST_F()
633 unwinder_threads.push_back(CreateUnwindThread(tids[i], unwinder, start_unwinding, unwinders)); in TEST_F()
663 std::atomic_int tids[kNumThreads] = {}; in TEST_F() local
666 std::thread* thread = new std::thread([&tids, i]() { in TEST_F()
667 tids[i] = android::base::GetThreadId(); in TEST_F()
683 unwinder_threads.push_back(CreateUnwindThread(tids[i], unwinder, start_unwinding, unwinders)); in TEST_F()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp79 std::vector<pid_t> tids; in get_wchan_data() local
81 if (!android::procinfo::GetProcessTids(pid, &tids)) { in get_wchan_data()
87 for (int tid : tids) { in get_wchan_data()
/system/core/llkd/
Dlibllkd.cpp397 std::unordered_map<pid_t, proc> tids; variable
591 auto search = tids.find(tid); in llkTidLookup()
592 if (search == tids.end()) { in llkTidLookup()
599 tids.erase(tid); in llkTidRemove()
604 auto it = tids.emplace(std::make_pair(tid, proc(tid, pid, ppid, comm, time, state, frozen))); in llkTidAlloc()
992 for (auto& it : tids) { in llkCheck()
1233 for (auto p = tids.begin(); p != tids.end();) { in llkCheck()
1249 p = tids.erase(p); in llkCheck()
1254 if (__predict_false(tids.empty())) { in llkCheck()
/system/extras/simpleperf/doc/
Dexecutable_commands_reference.md611 $ simpleperf report --tids 7394,7395