/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | dfx_test.cpp | 123 uint32_t tid = os::thread::GetCurrentThreadId(); in TEST() local 137 tid, tid, tid, tid, tid, tid, tid, tid, tid, ti in TEST() [all...] |
H A D | logger_test.cpp | 59 uint32_t tid = os::thread::GetCurrentThreadId(); in DEATH_TEST() local 66 tid, tid, tid); in DEATH_TEST() 143 uint32_t tid = os::thread::GetCurrentThreadId(); in DEATH_TEST() local 144 std::string res = helpers::string::Format("[TID %06x] E/compiler: c\n", tid); in DEATH_TEST() 162 uint32_t tid = os::thread::GetCurrentThreadId(); in TEST() local 166 tid, tid); in TEST() 185 uint32_t tid in TEST() local 230 uint32_t tid = os::thread::GetCurrentThreadId(); TEST() local 243 uint32_t tid = os::thread::GetCurrentThreadId(); DEATH_TEST() local 291 uint32_t tid = os::thread::GetCurrentThreadId(); TEST() local 322 uint32_t tid = os::thread::GetCurrentThreadId(); TEST() local 344 uint32_t tid = os::thread::GetCurrentThreadId(); TEST() local 367 uint32_t tid = os::thread::GetCurrentThreadId(); TEST() local 407 uint32_t tid = os::thread::GetCurrentThreadId(); TEST() local [all...] |
/arkcompiler/toolchain/inspector/ |
H A D | inspector.cpp | 169 pthread_t tid; in InitializeInspector() local 170 if (pthread_create(&tid, nullptr, &HandleClient, static_cast<void *>( in InitializeInspector() 175 newInspector->websocketServer_->tid_ = tid; in InitializeInspector() 276 debuggerPostTask_([tid = tid_, vm = vm_] { in OnMessage() 277 if (tid != pthread_self()) { in OnMessage() 285 debuggerPostTask_([tid = tidForSocketPair_, vm = vm_, this] { in OnMessage() 287 if (tid != static_cast<pid_t>(threadOrTaskId)) { in OnMessage() 316 const DebuggerPostTask &GetDebuggerPostTask(int tid) in GetDebuggerPostTask() argument 319 if (g_debuggerInfo.find(tid) == g_debuggerInfo.end()) { in GetDebuggerPostTask() 323 return g_debuggerInfo[tid] in GetDebuggerPostTask() 326 GetEcmaVM(int tid) GetEcmaVM() argument 351 StartDebugForSocketpair(int tid, int socketfd) StartDebugForSocketpair() argument 421 uint32_t tid = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(g_inspectors[vm]->tid_)); StopDebug() local 423 uint32_t tid = g_inspectors[vm]->tid_; StopDebug() local 434 StopOldDebug(int tid, const std::string& componentName) StopOldDebug() argument 452 StoreDebuggerInfo(int tid, void* vm, const DebuggerPostTask& debuggerPostTask) StoreDebuggerInfo() argument [all...] |
H A D | inspector.h | 38 bool StartDebugForSocketpair(int tid, int socketfd); 44 void StopOldDebug(int tid, const std::string& componentName); 48 void StoreDebuggerInfo(int tid, void* vm, const DebuggerPostTask& debuggerPostTask);
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
H A D | js_debugger_manager.cpp | 23 void JsDebuggerManager::AddJsDebuggerManager (int tid, JsDebuggerManager *jsDebuggerManager) in AddJsDebuggerManager() argument 26 if (jsDebuggerManagerMap_.find(tid) == jsDebuggerManagerMap_.end()) { in AddJsDebuggerManager() 27 jsDebuggerManagerMap_.emplace(tid, jsDebuggerManager); in AddJsDebuggerManager() 31 JsDebuggerManager *JsDebuggerManager::GetJsDebuggerManager(int tid) in GetJsDebuggerManager() argument 34 if (jsDebuggerManagerMap_.find(tid) == jsDebuggerManagerMap_.end()) { in GetJsDebuggerManager() 37 return jsDebuggerManagerMap_[tid]; in GetJsDebuggerManager() 40 void JsDebuggerManager::DeleteJsDebuggerManager(int tid) in DeleteJsDebuggerManager() argument 43 auto it = jsDebuggerManagerMap_.find(tid); in DeleteJsDebuggerManager()
|
H A D | js_debugger_manager.h | 254 static void AddJsDebuggerManager(int tid, JsDebuggerManager *jsDebuggerManager); 255 static JsDebuggerManager* GetJsDebuggerManager(int tid); 256 static void DeleteJsDebuggerManager(int tid);
|
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | native_stack.cpp | 29 std::string GetNativeThreadNameForFile(pid_t tid) in GetNativeThreadNameForFile() argument 33 commFile << "/proc/self/task/" << tid << "/comm"; in GetNativeThreadNameForFile() local 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() local 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 ! in Dump() [all...] |
H A D | cpu_affinity.cpp | 233 bool CpuAffinityManager::GetThreadAffinity(int tid, CpuSet &cpuset) in GetThreadAffinity() argument 235 bool success = sched_getaffinity(tid, sizeof(CpuSetType), cpuset.GetData()) == 0; in GetThreadAffinity() 236 LOG_IF(!success, DEBUG, COMMON) << "Couldn't get affinity for thread with tid = " in GetThreadAffinity() 237 << (tid != 0 ? tid : thread::GetCurrentThreadId()) in GetThreadAffinity() 250 bool CpuAffinityManager::SetAffinityForThread(int tid, const CpuSet &cpuset) in SetAffinityForThread() argument 255 bool success = sched_setaffinity(tid, sizeof(CpuSetType), cpuset.GetData()) == 0; in SetAffinityForThread() 257 << " for thread with tid = " << (tid != 0 ? tid in SetAffinityForThread() 263 SetAffinityForThread(int tid, uint8_t powerFlags) SetAffinityForThread() argument [all...] |
H A D | native_stack.h | 27 PANDA_PUBLIC_API void DumpKernelStack(std::ostream &os, pid_t tid, const char *tag, bool count); 29 PANDA_PUBLIC_API std::string GetNativeThreadNameForFile(pid_t tid);
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | logger_test.cpp | 67 uint32_t tid = os::thread::GetCurrentThreadId(); in HWTEST_F() local 74 tid, tid, tid); in HWTEST_F() 151 uint32_t tid = os::thread::GetCurrentThreadId(); in HWTEST_F() local 152 std::string res = helpers::string::Format("[TID %06x] E/compiler: c\n", tid); in HWTEST_F() 170 uint32_t tid = os::thread::GetCurrentThreadId(); in HWTEST_F() local 174 tid, tid); in HWTEST_F() 193 uint32_t tid in HWTEST_F() local 238 uint32_t tid = os::thread::GetCurrentThreadId(); HWTEST_F() local 251 uint32_t tid = os::thread::GetCurrentThreadId(); HWTEST_F() local 303 uint32_t tid = os::thread::GetCurrentThreadId(); HWTEST_F() local 329 uint32_t tid = os::thread::GetCurrentThreadId(); HWTEST_F() local 351 uint32_t tid = os::thread::GetCurrentThreadId(); HWTEST_F() local [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/src/ |
H A D | maple_phase_support.cpp | 25 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/ets_runtime/ecmascript/dfx/cpu_profiler/ |
H A D | sampling_processor.cpp | 57 // the tid returned by ffrt_task_get_tid will be zero in Run() 58 pthread_t tid = ffrt_task_get_tid(params.taskHandle_); in Run() local 59 if (tid != 0 && jsThreadId != tid) { in Run() 60 jsThreadId = tid; in Run() 62 if (tid == 0) { in Run() 103 void *SamplingProcessor::PostSemAndLogEnd(SamplesRecord *generator, pthread_t tid) in PostSemAndLogEnd() argument 105 pthread_setname_np(tid, "OS_GC_Thread"); in PostSemAndLogEnd()
|
H A D | sampling_processor.h | 33 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_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_utils.h | 93 log_.push_back(str + ", tid: " + std::to_string(Gettid())); in AddLog() 137 auto tid = v_.Gettid(); in ConcurrentGuard() local 140 if (!v_.count.compare_exchange_strong(except, 1) && v_.last_tid != tid) { in ConcurrentGuard() 143 << ", current tid: " << tid << ", last tid: " << v_.last_tid; in ConcurrentGuard() 145 v_.last_tid = tid; in ConcurrentGuard() 149 auto tid = v_.Gettid(); in ~ConcurrentGuard() local 152 if (!v_.count.compare_exchange_strong(except, 0) && v_.last_tid != tid) { in ~ConcurrentGuard() 155 << ", current tid in ~ConcurrentGuard() [all...] |
/arkcompiler/toolchain/test/fuzztest/base/ptevents/paused/baseptspausedsethitbreakpoints_fuzzer/ |
H A D | baseptspausedsethitbreakpoints_fuzzer.cpp | 37 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/include/ |
H A D | dfx_jsnapi.h | 71 static void DumpHeapSnapshot(const EcmaVM *vm, const DumpSnapShotOption &dumpOption, uint32_t tid); 73 static void DumpHeapSnapshotWithVm(const EcmaVM *vm, const DumpSnapShotOption &dumpOption, uint32_t tid); 74 static void TriggerGC(const EcmaVM *vm, uint32_t tid); 109 static bool BuildJsStackInfoList(const EcmaVM *hostVm, uint32_t tid, std::vector<JsFrameInfo>& jsFrames); 135 static bool StartProfiler(EcmaVM *vm, const ProfilerOption &option, int tid, 147 static void ResumeVMById(EcmaVM *vm, uint32_t tid); 148 static bool SuspendVMById(EcmaVM *vm, uint32_t tid);
|
/arkcompiler/runtime_core/libpandabase/os/ |
H A D | thread.h | 123 native_handle_type tid; in ThreadStart() local 125 pthread_t tid; in ThreadStart() 143 pthread_create(&tid, &attr, in ThreadStart() 147 return tid; in ThreadStart() 149 return reinterpret_cast<native_handle_type>(tid); in ThreadStart()
|
/arkcompiler/runtime_core/static_core/libpandabase/os/ |
H A D | thread.h | 128 NativeHandleType tid; in ThreadStart() local 130 pthread_t tid; in ThreadStart() 141 pthread_create(&tid, nullptr, in ThreadStart() 145 return tid; in ThreadStart() 147 return reinterpret_cast<NativeHandleType>(tid); in ThreadStart()
|
H A D | native_stack.cpp | 31 void DumpKernelStack([[maybe_unused]] std::ostream &os, [[maybe_unused]] pid_t tid, [[maybe_unused]] const char *tag, in DumpKernelStack() argument 36 std::string GetNativeThreadNameForFile([[maybe_unused]] pid_t tid) in GetNativeThreadNameForFile() argument
|
H A D | native_stack.h | 53 void DumpKernelStack(std::ostream &os, pid_t tid, const char *tag, bool count); 54 std::string GetNativeThreadNameForFile(pid_t tid);
|
H A D | cpu_affinity.h | 116 * @param tid thread id for setting 120 PANDA_PUBLIC_API static bool SetAffinityForThread(int tid, const CpuSet &cpuset); 124 * @param tid thread id for setting 128 PANDA_PUBLIC_API static bool SetAffinityForThread(int tid, uint8_t powerFlags); 154 * @param tid thread id for getting 158 static bool GetThreadAffinity(int tid, CpuSet &cpuset);
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
H A D | dfx_jsnapi.cpp | 145 // tid = 0: dump all vm; tid != 0: dump tid vm, hidumper. 147 [[maybe_unused]] const DumpSnapShotOption &dumpOption, [[maybe_unused]] uint32_t tid) in DumpHeapSnapshot() 156 LOG_ECMA(INFO) << "DumpHeapSnapshot tid " << tid << " curTid " << curTid; in DumpHeapSnapshot() 157 DumpHeapSnapshotWithVm(vm, dumpOption, tid); in DumpHeapSnapshot() 162 [[maybe_unused]] uint32_t tid) in DumpHeapSnapshotWithVm() 184 if (tid == 0 || tid in DumpHeapSnapshotWithVm() 146 DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] const DumpSnapShotOption &dumpOption, [[maybe_unused]] uint32_t tid) DumpHeapSnapshot() argument 160 DumpHeapSnapshotWithVm([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] const DumpSnapShotOption &dumpOption, [[maybe_unused]] uint32_t tid) DumpHeapSnapshotWithVm() argument 228 TriggerGC([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] uint32_t tid) TriggerGC() argument 844 BuildJsStackInfoList(const EcmaVM *hostVm, uint32_t tid, std::vector<JsFrameInfo>& jsFrames) BuildJsStackInfoList() argument 905 StartProfiler(EcmaVM *vm, const ProfilerOption &option, int tid, int32_t instanceId, const DebuggerPostTask &debuggerPostTask, bool isDebugApp) StartProfiler() argument 926 ResumeVMById(EcmaVM *hostVm, uint32_t tid) ResumeVMById() argument 935 SuspendVMById(EcmaVM *hostVm, uint32_t tid) SuspendVMById() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/ |
H A D | shared_concurrent_sweeper.cpp | 28 auto tid = DaemonThread::GetInstance()->GetThreadId(); in PostTask() local 32 std::make_unique<SweeperTask>(tid, this, SHARED_OLD_SPACE)); in PostTask() 35 std::make_unique<SweeperTask>(tid, this, SHARED_NON_MOVABLE)); in PostTask()
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | cpu_affinity.cpp | 170 bool CpuAffinityManager::GetThreadAffinity([[maybe_unused]] int tid, [[maybe_unused]] CpuSet &cpuset) in GetThreadAffinity() argument 182 bool CpuAffinityManager::SetAffinityForThread([[maybe_unused]] int tid, [[maybe_unused]] uint8_t power_flags) in SetAffinityForThread() argument 188 bool CpuAffinityManager::SetAffinityForThread([[maybe_unused]] int tid, [[maybe_unused]] const CpuSet &cpuset) in SetAffinityForThread() argument
|
/arkcompiler/toolchain/test/autotest/aw/ |
H A D | fport.py | 43 def fport_debugger_server(cls, port, pid, tid=0): 45 if tid == 0: 48 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@{tid}@Debugger']
|