/system/extras/simpleperf/ |
D | RecordFilter.cpp | 35 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()
|
D | MapRecordReader.cpp | 52 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()
|
D | record_lib_interface.cpp | 88 std::vector<pid_t> tids = GetThreadsInProcess(getpid()); in MonitorThreadsInCurrentProcess() local 90 if (std::find(tids.begin(), tids.end(), tid) == tids.end()) { in MonitorThreadsInCurrentProcess()
|
D | RecordFilter.h | 53 std::set<pid_t> tids; member 67 void AddTids(const std::set<pid_t>& tids, bool exclude);
|
D | MapRecordReader.h | 45 bool ReadProcessMaps(pid_t pid, const std::unordered_set<pid_t>& tids, uint64_t timestamp);
|
D | utils.cpp | 411 std::set<pid_t> tids; in GetTidsFromString() local 422 tids.insert(tid); in GetTidsFromString() 424 return tids; in GetTidsFromString()
|
D | cmd_record.cpp | 976 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()
|
D | RecordFilter_test.cpp | 165 ASSERT_EQ(filter.GetCondition(exclude).tids, std::set<pid_t>({1, 2, 3})); in TEST_F()
|
D | event_selection_set.cpp | 591 std::vector<pid_t> tids = GetThreadsInProcess(pid); in PrepareThreads() local 592 result.insert(tids.begin(), tids.end()); in PrepareThreads()
|
D | cmd_report.cpp | 612 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()
|
D | cmd_stat.cpp | 697 if (auto tids = GetTidsFromString(*value.str_value, true); tids) { in ParseOptions() local 698 event_selection_set_.AddMonitoredThreads(tids.value()); in ParseOptions()
|
D | cmd_monitor.cpp | 163 bool DumpProcessMaps(pid_t pid, const std::unordered_set<pid_t>& tids);
|
/system/memory/libmemunreachable/ |
D | ThreadCapture.cpp | 78 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()
|
D | ThreadCapture.h | 42 bool ListThreads(TidList& tids);
|
/system/memory/libmemunreachable/tests/ |
D | ThreadCapture_test.cpp | 98 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/ |
D | UnwindTest.cpp | 613 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/ |
D | debuggerd_client.cpp | 79 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/ |
D | libllkd.cpp | 397 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/ |
D | executable_commands_reference.md | 611 $ simpleperf report --tids 7394,7395
|