Home
last modified time | relevance | path

Searched full:tid (Results 1 – 25 of 120) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dlogger_test.cpp59 uint32_t tid = os::thread::GetCurrentThreadId(); in DEATH_TEST() local
62 "[TID %06x] D/common: a\n" in DEATH_TEST()
64 "[TID %06x] I/common: b\n" in DEATH_TEST()
65 "[TID %06x] E/common: c\n", in DEATH_TEST()
66 tid, tid, tid); in DEATH_TEST()
69 EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, COMMON) << "d", "\\[TID [0-9a-f]{6}\\] F/common: d"); in DEATH_TEST()
101 EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, COMPILER) << "d1", "\\[TID [0-9a-f]{6}\\] F/compiler: d1"); in DEATH_TEST()
102 … EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, ASSEMBLER) << "d2", "\\[TID [0-9a-f]{6}\\] F/assembler: d2"); in DEATH_TEST()
103 …EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, DISASSEMBLER) << "d3", "\\[TID [0-9a-f]{6}\\] F/disassembler:… in DEATH_TEST()
132 EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, COMPILER) << "d1", "\\[TID [0-9a-f]{6}\\] F/compiler: d1"); in DEATH_TEST()
[all …]
Ddfx_test.cpp123 uint32_t tid = os::thread::GetCurrentThreadId(); in TEST() local
127 "[TID %06x] E/dfx: DFX option: compiler-nullcheck, option values: 1\n" in TEST()
128 "[TID %06x] E/dfx: DFX option: signal-catcher, option values: 1\n" in TEST()
129 "[TID %06x] E/dfx: DFX option: signal-handler, option values: 1\n" in TEST()
130 "[TID %06x] E/dfx: DFX option: sigquit, option values: 1\n" in TEST()
131 "[TID %06x] E/dfx: DFX option: sigusr1, option values: 1\n" in TEST()
132 "[TID %06x] E/dfx: DFX option: sigusr2, option values: 1\n" in TEST()
133 "[TID %06x] E/dfx: DFX option: mobile-log, option values: 1\n" in TEST()
134 "[TID %06x] E/dfx: DFX option: hung-update, option values: 0\n" in TEST()
135 "[TID %06x] E/dfx: DFX option: reference-dump, option values: 1\n" in TEST()
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dlogger_test.cpp67 uint32_t tid = os::thread::GetCurrentThreadId(); variable
70 "[TID %06x] D/common: a\n"
72 "[TID %06x] I/common: b\n"
73 "[TID %06x] E/common: c\n",
74 tid, tid, tid);
77 EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, COMMON) << "d", "\\[TID [0-9a-f]{6}\\] F/common: d");
109 EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, COMPILER) << "d1", "\\[TID [0-9a-f]{6}\\] F/compiler: d1");
110 … EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, ASSEMBLER) << "d2", "\\[TID [0-9a-f]{6}\\] F/assembler: d2");
111 …EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, DISASSEMBLER) << "d3", "\\[TID [0-9a-f]{6}\\] F/disassembler:…
140 EXPECT_DEATH_IF_SUPPORTED(LOG(FATAL, COMPILER) << "d1", "\\[TID [0-9a-f]{6}\\] F/compiler: d1");
[all …]
/arkcompiler/ets_runtime/ecmascript/debugger/
Djs_debugger_manager.cpp22 void JsDebuggerManager::AddJsDebuggerManager (int tid, JsDebuggerManager *jsDebuggerManager) in AddJsDebuggerManager() argument
25 if (jsDebuggerManagerMap_.find(tid) == jsDebuggerManagerMap_.end()) { in AddJsDebuggerManager()
26 jsDebuggerManagerMap_.emplace(tid, jsDebuggerManager); in AddJsDebuggerManager()
30 JsDebuggerManager *JsDebuggerManager::GetJsDebuggerManager(int tid) in GetJsDebuggerManager() argument
33 if (jsDebuggerManagerMap_.find(tid) == jsDebuggerManagerMap_.end()) { in GetJsDebuggerManager()
36 return jsDebuggerManagerMap_[tid]; in GetJsDebuggerManager()
39 void JsDebuggerManager::DeleteJsDebuggerManager(int tid) in DeleteJsDebuggerManager() argument
42 auto it = jsDebuggerManagerMap_.find(tid); in DeleteJsDebuggerManager()
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
Dnative_stack.cpp29 std::string GetNativeThreadNameForFile(pid_t tid) in GetNativeThreadNameForFile() argument
33 commFile << "/proc/self/task/" << tid << "/comm"; in GetNativeThreadNameForFile()
55 void DumpKernelStack(std::ostream &os, pid_t tid, const char *tag, bool count) in DumpKernelStack() argument
57 if (tid == static_cast<pid_t>(thread::GetCurrentThreadId())) { in DumpKernelStack()
62 stackFile << "/proc/self/task/" << tid << "/stack"; in DumpKernelStack()
113 auto tid = static_cast<pid_t>(strtol(dir->d_name, &dirEnd, FIND_TID)); in InitKernelTidLists() local
115 kernelTid_.insert(tid); in InitKernelTidLists()
127 std::set<int>::iterator tid; in Dump() local
128 for (tid = dumpTid.begin(); tid != dumpTid.end(); ++tid) { in Dump()
129 // thread_manager tid may have wrong,check again in Dump()
[all …]
Dcpu_affinity.cpp171 bool CpuAffinityManager::GetThreadAffinity([[maybe_unused]] int tid, [[maybe_unused]] CpuSet &cpuse… in GetThreadAffinity() argument
183 bool CpuAffinityManager::SetAffinityForThread([[maybe_unused]] int tid, [[maybe_unused]] uint8_t po… in SetAffinityForThread() argument
189 bool CpuAffinityManager::SetAffinityForThread([[maybe_unused]] int tid, [[maybe_unused]] const CpuS… in SetAffinityForThread() argument
418 bool CpuAffinityManager::GetThreadAffinity(int tid, CpuSet &cpuset)
420 bool success = sched_getaffinity(tid, sizeof(CpuSetType), cpuset.GetData()) == 0;
421 LOG_IF(!success, DEBUG, COMMON) << "Couldn't get affinity for thread with tid = "
422 << (tid != 0 ? tid : thread::GetCurrentThreadId())
435 bool CpuAffinityManager::SetAffinityForThread(int tid, const CpuSet &cpuset)
440 bool success = sched_setaffinity(tid, sizeof(CpuSetType), cpuset.GetData()) == 0;
442 … << " for thread with tid = " << (tid != 0 ? tid : thread::GetCurrentThreadId())
[all …]
/arkcompiler/toolchain/inspector/
Dinspector.cpp203 pthread_t tid; in InitializeInspector() local
208 if (pthread_create(&tid, nullptr, &HandleHybridClient, args)) { in InitializeInspector()
213 if (pthread_create(&tid, nullptr, &HandleNormalClient, server)) { in InitializeInspector()
219 newInspector->websocketServer_->tid_ = tid; in InitializeInspector()
345 debuggerPostTask_([tid = tid_, vm = vm_] { in OnMessage()
346 if (tid != pthread_self()) { in OnMessage()
354 debuggerPostTask_([tid = tidForSocketPair_, vm = vm_] { in OnMessage()
356 if (tid != static_cast<pid_t>(threadOrTaskId)) { in OnMessage()
385 const DebuggerPostTask &GetDebuggerPostTask(int tid) in GetDebuggerPostTask() argument
388 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) { in GetDebuggerPostTask()
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_utils.h103 auto tid = v_.Gettid(); in operation_() local
106 if (!v_.count.compare_exchange_strong(except, desired) && v_.last_tid != tid) { in operation_()
108 << ", current tid: " << tid << ", last tid: " << v_.last_tid; in operation_()
110 v_.last_tid = tid; in operation_()
114 auto tid = v_.Gettid(); in ~ConcurrentGuard() local
117 if (!v_.count.compare_exchange_strong(except, desired) && v_.last_tid != tid) { in ~ConcurrentGuard()
119 << ", current tid: " << tid << ", last tid: " << v_.last_tid; in ~ConcurrentGuard()
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dsampling_processor.cpp54 // the tid returned by ffrt_task_get_tid will be zero in Run()
55 pthread_t tid = ffrt_task_get_tid(params.taskHandle_); in Run() local
56 if (tid != 0 && jsThreadId != tid) { in Run()
57 jsThreadId = tid; in Run()
59 if (tid == 0) { in Run()
100 void *SamplingProcessor::PostSemAndLogEnd(SamplesRecord *generator, pthread_t tid) in PostSemAndLogEnd() argument
102 pthread_setname_np(tid, "OS_GC_Thread"); in PostSemAndLogEnd()
Dsampling_processor.h33 static void *PostSemAndLogEnd(SamplesRecord *generator, pthread_t tid);
48 RunParams(SamplesRecord *generator, uint32_t interval, pthread_t tid, void *taskHandle) in RunParams()
49 :generator_(generator), interval_(interval), tid_(tid), taskHandle_(taskHandle) {}; in RunParams()
/arkcompiler/ets_frontend/test/scripts/performance_test/
Dtest_error_report.json28 "tid": "Worker0" string
46 "tid": "Worker0" string
62 "tid": "Worker0" string
80 "tid": "Worker0" string
98 "tid": "Worker0" string
Dtest_report.json28 "tid": "Worker0" string
46 "tid": "Worker0" string
62 "tid": "Worker0" string
80 "tid": "Worker0" string
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/src/
Dmaple_phase_support.cpp25 std::thread::id tid = std::this_thread::get_id(); in RunBeforePhase() local
26 if (!multiTimers.count(tid)) { in RunBeforePhase()
27 multiTimers.emplace(std::make_pair(tid, allocator.New<MPLTimer>())); in RunBeforePhase()
29 multiTimers[tid]->Start(); in RunBeforePhase()
39 std::thread::id tid = std::this_thread::get_id(); in RunAfterPhase() local
40 if (multiTimers.count(tid)) { in RunAfterPhase()
41 multiTimers[tid]->Stop(); in RunAfterPhase()
42 usedTime += multiTimers[tid]->ElapsedMicroseconds(); in RunAfterPhase()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
Ddebugger_arkapi.cpp53 bool ArkDebugNativeAPI::NotifyDebugMode([[maybe_unused]] int tid, [[maybe_unused]] int32_t instance… in NotifyDebugMode() argument
57 …LOG(INFO, DEBUGGER) << "ArkDebugNativeAPI::NotifyDebugMode, tid = " << tid << ", debugApp = " << d… in NotifyDebugMode()
83 symOfStoreDebuggerInfo(tid, vm, debuggerPostTask); in NotifyDebugMode()
128 bool ArkDebugNativeAPI::StartDebuggerForSocketPair([[maybe_unused]] int tid, [[maybe_unused]] int s… in StartDebuggerForSocketPair() argument
130 …LOG(INFO, DEBUGGER) << "ArkDebugNativeAPI::StartDebugForSocketPair, tid = " << tid << " socketfd i… in StartDebuggerForSocketPair()
142 bool ret = sym(tid, socketfd, true); in StartDebuggerForSocketPair()
/arkcompiler/runtime_core/static_core/tools/sampler/
Doptions.yaml29 - name: csv-tid-separation
31 default: single-csv-multi-tid
33 - single-csv-single-tid
34 - single-csv-multi-tid
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/libani_helpers/interop_js/
Dhybridgref_napi.cpp49 napi_value tid; in GetStorage() local
50 if (napi_create_uint32(env, ark::os::thread::GetCurrentThreadId(), &tid) != napi_ok) { in GetStorage()
53 if (napi_set_element(env, storageArray, 0, tid) != napi_ok) { in GetStorage()
90 uint32_t tid; in CheckCorrectThread() local
91 if (napi_get_value_uint32(env, tidHolder, &tid) != napi_ok) { in CheckCorrectThread()
95 return tid == ark::os::thread::GetCurrentThreadId(); in CheckCorrectThread()
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dno_ts_like_smart_type.ets94 let tid: number = 0;
103 tid = threadInfo.tid;
107 …hilog.info(0x0000, 'testTag-----',"getTaskPoolInfo: --tid is:" + tid + ", taskIds is:" + taskIds +…
/arkcompiler/ets_runtime/common_components/base/
Dsys_call.cpp46 uint64_t tid; in GetTid()
47 pthread_threadid_np(nullptr, &tid); in GetTid()
48 return static_cast<pid_t>(tid); in GetTid()
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedsethitbreakpoints_fuzzer/
Dbaseptspausedsethitbreakpoints_fuzzer.cpp37 int tid = 2; in BasePtsPausedSetHitBreakpointsFuzzTest() local
39 std::vector<BreakpointId> breakpointid_(tid); in BasePtsPausedSetHitBreakpointsFuzzTest()
40 for (int i = 0; i < tid; i++) { in BasePtsPausedSetHitBreakpointsFuzzTest()
/arkcompiler/ets_runtime/ecmascript/napi/
Ddfx_jsnapi.cpp178 // tid = 0: dump all vm; tid != 0: dump tid vm, hidumper.
180 … [[maybe_unused]] const DumpSnapShotOption &dumpOption, [[maybe_unused]] uint32_t tid) in DumpHeapSnapshot() argument
189 LOG_ECMA(INFO) << "DumpHeapSnapshot tid " << tid << " curTid " << curTid; in DumpHeapSnapshot()
190 DumpHeapSnapshotWithVm(vm, dumpOption, tid); in DumpHeapSnapshot()
195 [[maybe_unused]] uint32_t tid) in DumpHeapSnapshotWithVm() argument
217 if (tid == 0 || tid == curTid) { in DumpHeapSnapshotWithVm()
235 DumpHeapSnapshotWithVm(workerVm, dumpOption, tid); in DumpHeapSnapshotWithVm()
248 // tid = 0: TriggerGC all vm; tid != 0: TriggerGC tid vm
249 void DFXJSNApi::TriggerGC([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] uint32_t tid) in TriggerGC() argument
257 LOG_ECMA(INFO) << "TriggerGC tid " << tid << " curTid " << curTid; in TriggerGC()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/
Dschedule_main_coro.js39 let tId = 0;
45 clearInterval(tId);
53 tId = setInterval(waitForSchedule, 0);
Drun_promise_test.js39 let tId = 0;
45 clearInterval(tId);
49 tId = setInterval(checkFn, 0);
Dpromise_proxy_test.js42 let tId = 0;
48 clearInterval(tId);
52 tId = setInterval(checkFn);
/arkcompiler/runtime_core/static_core/runtime/tests/
Dmark_word_test.cpp169 …void CheckLightweightLock(const ManagedThread::ThreadId tId, const uint32_t lockCount, bool isMark… in CheckLightweightLock() argument
174 ASSERT_EQ(mw_.GetThreadId(), tId) << " seed = " << paramGetter_.GetSeed(); in CheckLightweightLock()
205 void DecodeLightLock(ManagedThread::ThreadId tId, uint32_t lCount) in DecodeLightLock() argument
207 mw_ = mw_.DecodeFromLightLock(tId, lCount); in DecodeLightLock()
227 auto tId = paramGetter_.GetThreadId(); in DecodeAndCheckLightLock() local
229 DecodeLightLock(tId, lCount); in DecodeAndCheckLightLock()
230 CheckLightweightLock(tId, lCount, isMarkedForGc, isReadBarrierSet); in DecodeAndCheckLightLock()
451 auto tId = paramGetter.GetThreadId(); in CheckMarkingWithGC() local
453 wrapper.DecodeLightLock(tId, lCount); in CheckMarkingWithGC()
456 wrapper.CheckLightweightLock(tId, lCount, true); in CheckMarkingWithGC()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/timer/
Drun_timer_test.js42 let tId = 0;
51 clearInterval(tId);
54 tId = setInterval(checkCallback, checkDelay);

12345