Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf/
H A Drtg_interface.cpp114 grp_data.tids[0] = tid;
126 int AddThreadsToRtg(vector<int> tids, int grpId, int prioType, [[maybe_unused]] bool isBlue)
134 int num = static_cast<int>(tids.size());
143 if (tids[i] < 0) {
146 grp_data.tids[i] = tids[i];
164 grp_data.tids[0] = tid;
175 int RemoveRtgThreads(vector<int> tids, [[maybe_unused]] bool isBlue)
183 int num = static_cast<int>(tids.size());
190 if (tids[i] < 0) {
193 grp_data.tids[i] = tids[i];
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_rtg.cpp167 std::vector<pid_t> tids; variable
177 tids.emplace_back(tid); in __anone3ead2840102()
190 if (tids.size() >= THREAD_NUM) {
195 for (auto tid : tids) {
203 for (auto tid : tids) {
235 std::vector<pid_t> tids; variable
245 tids.emplace_back(tid); in __anone3ead2840202()
258 if (tids.size() >= THREAD_NUM) {
263 for (auto tid : tids) {
285 for (auto tid : tids) {
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/procinfo/
H A Dprocinfo_test.cpp62 std::vector<int> tids; variable
63 ASSERT_TRUE(GetTidsByPidWithFunc(getpid(), tids, nullptr));
77 std::vector<int> tids; variable
79 ASSERT_TRUE(GetTidsByPid(getpid(), tids, nstids));
83 int nstid = tids[i];
84 TidToNstid(getpid(), tids[i], nstid);
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_process.cpp60 std::vector<int> tids; in InitOtherThreads() local
62 if (!GetTidsByPid(processInfo_.pid, tids, nstids)) { in InitOtherThreads()
77 auto thread = DfxThread::Create(processInfo_.pid, tids[i], nstids[i]); in InitOtherThreads()
93 std::vector<int> tids; in ChangeTid() local
95 if (!GetTidsByPid(processInfo_.pid, tids, nstids)) { in ChangeTid()
99 kvThreads_[nstids[i]] = tids[i]; in ChangeTid()
/ohos5.0/base/request/request/test/unittest/js_test/requestQueryTaskTest/entry/src/main/ets/test/
H A DRequestQuery.test.ets470 expect(tids.length > 0).assertTrue();
509 expect(tids.length > 0).assertTrue();
532 expect(tids.length > 0).assertTrue();
555 expect(tids.length > 0).assertTrue();
595 expect(tids.length).assertEqual(0);
620 expect(tids.length > 0).assertTrue();
646 expect(tids.length > 0).assertTrue();
673 expect(tids.length > 0).assertTrue();
701 expect(tids.length > 0).assertTrue();
727 expect(tids.length > 0).assertTrue();
[all …]
/ohos5.0/build/scripts/
H A Dninja2trace.py106 self.tids = [] # store the tid's end time
109 for i, tid in enumerate(self.tids):
111 self.tids[i] = storingdataline.end
115 self.tids.append(storingdataline.end)
116 return len(self.tids) - 1 # the last index of the tids
/ohos5.0/foundation/resourceschedule/frame_aware_sched/common/include/
H A Drtg_interface.h61 int tids[MAX_TID_NUM]; member
92 int AddThreadsToRtg(vector<int> tids, int grpId, int prioType = 0, bool isBlue = false);
94 int RemoveRtgThreads(vector<int> tids, bool isBlue = false);
/ohos5.0/foundation/resourceschedule/ffrt/src/sched/
H A Dmulti_workgroup.cpp45 wg->tids[i] = -1; in WorkgroupInit()
56 if (workGroup->tids[i] == tid) { in FindThreadInWorkGroup()
71 if (workGroup->tids[i] == -1) { in InsertThreadInWorkGroup()
72 workGroup->tids[i] = tid; in InsertThreadInWorkGroup()
117 rsWorkGroup->tids[existIndex] = -1; in LeaveRSWorkGroup()
H A Dworkgroup_internal.h41 int tids[MAX_WG_THREADS]; member
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/
H A Dprocinfo.cpp153 bool GetTidsByPidWithFunc(const int pid, std::vector<int>& tids, std::function<bool(int)> const& fu… argument
173 tids.emplace_back(tid);
180 return (tids.size() > 0);
183 bool GetTidsByPid(const int pid, std::vector<int>& tids, std::vector<int>& nstids) argument
197 bool ret = GetTidsByPidWithFunc(pid, tids, func);
199 nstids = tids;
/ohos5.0/base/request/request/test/unittest/js_test/requestSystemQueryTest/entry/src/main/ets/test/
H A DRequestSystemQuery.test.ets75 request.agent.search(filter).then(async (tids) => {
76 expect(tids.length).assertEqual(0);
98 request.agent.search({}, async (err, tids) => {
99 expect(tids.length > 0).assertTrue();
121 request.agent.search(filter).then(async (tids) => {
122 expect(tids.length > 0).assertTrue();
147 request.agent.search(filter).then(async (tids) => {
148 expect(tids.length > 0).assertTrue();
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/include/
H A Dprocinfo.h82 bool GetTidsByPidWithFunc(const int pid, std::vector<int>& tids, std::function<bool(int)> const& fu…
91 bool GetTidsByPid(const int pid, std::vector<int>& tids, std::vector<int>& nstids);
/ohos5.0/base/startup/init/test/unittest/param/
H A Dclient_unittest.cpp69 pthread_t tids[threadMaxNumer + threadMaxNumer]; in TestForMultiThread() local
78 pthread_create(&tids[i], nullptr, TestSendParamSetMsg, in TestForMultiThread()
82 pthread_create(&tids[i], nullptr, TestSendParamWaitMsg, in TestForMultiThread()
86 pthread_join(tids[i], nullptr); in TestForMultiThread()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/
H A Ddfx_dump_catcher.cpp147 std::vector<int> tids; in DoDumpLocalPid() local
149 ret = GetTidsByPidWithFunc(getprocpid(), tids, func); in DoDumpLocalPid()
151 ret = GetTidsByPidWithFunc(getpid(), tids, func); in DoDumpLocalPid()
406 std::vector<int> tids = {}; in CollectKernelStack() local
408 if (GetTidsByPid(pid, tids, nstids) == false) { in CollectKernelStack()
414 for (int tid : tids) { in CollectKernelStack()
/ohos5.0/foundation/arkui/napi/test/unittest/engine/
H A Dtest_ark.cpp86 pthread_t tids; variable
89 int res = pthread_create(&tids, NULL, Run, (void*)args);
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/
H A Dbacktrace_local.cpp167 std::vector<int> tids; in GetProcessStacktrace() local
168 GetTidsByPidWithFunc(getprocpid(), tids, func); in GetProcessStacktrace()
/ohos5.0/base/request/request/frameworks/native/src/
H A Drequest_manager.cpp55 int32_t RequestManager::Search(const Filter &filter, std::vector<std::string> &tids) in Search() argument
57 return RequestManagerImpl::GetInstance()->Search(filter, tids); in Search()
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/sched_controller/
H A Dsupervisor.cpp100 std::set<int32_t> tids {}; in GetKeyTidSetByRole() local
105 tids.insert(tid); in GetKeyTidSetByRole()
107 return tids; in GetKeyTidSetByRole()
/ohos5.0/base/request/request/test/unittest/cpp_test/fwkTest/src/
H A Drequest_manager_impl_test.cpp52 … MOCK_METHOD(int32_t, Search, (const Filter &filter, std::vector<std::string> &tids), (override));
215 std::vector<std::string> tids; variable
216 … EXPECT_CALL(*exceptProxy, Search(testing::_, tids)).WillOnce(testing::Return(E_CHANNEL_NOT_OPEN));
217 EXPECT_EQ(RequestManagerImpl::GetInstance()->Search(filter, tids), E_CHANNEL_NOT_OPEN);
H A Drequest_manager_test.cpp171 std::vector<std::string> tids; variable
172 RequestManager::GetInstance()->Search(filter, tids);
/ohos5.0/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
H A Dffrt_trace_process.py441 tids = list(active_process_map[pid].keys())
470 for i in range(len(tids)):
471 statistics = parse_thread_trace(switch_log_map[tids[i]], tids[i])
H A Dffrt_trace_recover.py224 for pid, tids in ffrt_pids.items():
225 for tid in tids.keys():
237 for pid, tids in ffrt_pids.items():
/ohos5.0/base/request/request/frameworks/native/include/
H A Drequest_service_interface.h42 virtual int32_t Search(const Filter &filter, std::vector<std::string> &tids) = 0;
H A Drequest_service_proxy.h43 int32_t Search(const Filter &filter, std::vector<std::string> &tids) override;
/ohos5.0/base/hiviewdfx/faultloggerd/test/systemtest/
H A Ddumpcatcher_system_test.cpp111 std::vector<int> tids; in GetCrasherThreads() local
112 if (!GetTidsByPidWithFunc(pid, tids, nullptr)) { in GetCrasherThreads()
115 for (size_t i = 0; i < tids.size(); ++i) { in GetCrasherThreads()
117 g_rootTid[i] = tids[i]; in GetCrasherThreads()
119 g_sysTid[i] = tids[i]; in GetCrasherThreads()
121 g_appTid[i] = tids[i]; in GetCrasherThreads()

12