/foundation/resourceschedule/qos_manager/qos/ |
H A D | qos.cpp | 36 int QosController::SetThreadQosForOtherThread(enum QosLevel level, int tid) in SetThreadQosForOtherThread() argument 41 CONCUR_LOGD("[Qos] qoslevel %{public}d apply for tid %{public}d disable", static_cast<int>(level), tid); in SetThreadQosForOtherThread() 50 int ret = QosApplyForOther(qos, tid); in SetThreadQosForOtherThread() 52 CONCUR_LOGD("[Qos] qoslevel %{public}d apply for tid %{public}d success", qos, tid); in SetThreadQosForOtherThread() 54 CONCUR_LOGD("[Qos] qoslevel %{public}d apply for tid %{public}d failure", qos, tid); in SetThreadQosForOtherThread() 60 int QosController::ResetThreadQosForOtherThread(int tid) in ResetThreadQosForOtherThread() argument 65 CONCUR_LOGD("[Qos] qoslevel reset disable for tid in ResetThreadQosForOtherThread() 79 GetThreadQosForOtherThread(enum QosLevel &level, int tid) GetThreadQosForOtherThread() argument 100 int tid = gettid(); SetThreadQos() local 104 SetQosForOtherThread(enum QosLevel level, int tid) SetQosForOtherThread() argument 111 int tid = gettid(); ResetThreadQos() local 115 ResetQosForOtherThread(int tid) ResetQosForOtherThread() argument 125 GetQosForOtherThread(enum QosLevel &level, int tid) GetQosForOtherThread() argument [all...] |
/test/xts/acts/kernel_lite/process_posix/src/ |
H A D | PthreadBasicApiTest.cpp | 42 pthread_t tid; in HWTEST_F() local 44 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadCreateBasic, (void*)str), 0) << "> return errno"; in HWTEST_F() 46 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno"; in HWTEST_F() 63 pthread_t tid; in HWTEST_F() local 65 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPthreadJoinWait, nullptr), 0) << "> return errno"; in HWTEST_F() 66 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno"; in HWTEST_F() 77 pthread_t tid; in HWTEST_F() local 81 ASSERT_EQ(pthread_create(&tid, nullptr, ThreadPublic, (void*)&num), 0) << "> return errno"; in HWTEST_F() 82 EXPECT_EQ(pthread_join(tid, &joinRe), 0) << "> return errno"; in HWTEST_F() 95 pthread_t tid; in HWTEST_F() local 114 pthread_t tid; HWTEST_F() local 142 pthread_t tid; HWTEST_F() local 159 pthread_t tid; HWTEST_F() local 167 pthread_t *tid = (pthread_t*)arg; ThreadPthreadEqual() local 180 pthread_t tid; HWTEST_F() local 321 pthread_t tid; HWTEST_F() local 354 pthread_t tid; HWTEST_F() local 384 pthread_t tid; HWTEST_F() local 419 pthread_t tid; HWTEST_F() local 491 pthread_t tid; HWTEST_F() local 534 pthread_t tid; HWTEST_F() local 603 pthread_t tid; HWTEST_F() local 630 pthread_t tid; HWTEST_F() local 657 pthread_t tid; HWTEST_F() local 685 pthread_t tid; HWTEST_F() local 713 pthread_t tid; HWTEST_F() local 742 pthread_t tid; HWTEST_F() local 871 pthread_t tid; HWTEST_F() local 903 pthread_t tid[2]; HWTEST_F() local [all...] |
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | lock_parser_test.cpp | 88 void WaitThreadBlock(int& tid) in WaitThreadBlock() argument 91 if (tid > 0) { in WaitThreadBlock() 92 printf("WaitThreadBlock:%d\n", tid); in WaitThreadBlock() 113 int tid = 0; in HWTEST_F() local 114 std::thread t1([&tid, &mutex] { in HWTEST_F() 115 tid = gettid(); in HWTEST_F() 116 printf("BlockTid:%d\n", tid); in HWTEST_F() 120 WaitThreadBlock(tid); in HWTEST_F() 121 printf("CurrentTid:%d BlockTid:%d\n", gettid(), tid); in HWTEST_F() 123 ASSERT_EQ(unwinder->UnwindLocalWithTid(tid), tru in HWTEST_F() 167 int tid = 0; HWTEST_F() local 219 int tid = 0; HWTEST_F() local 258 int tid = 0; HWTEST_F() local 297 int tid = 0; HWTEST_F() local [all...] |
/foundation/resourceschedule/ffrt/src/sched/ |
H A D | multi_workgroup.cpp | 48 int FindThreadInWorkGroup(WorkGroup *workGroup, int tid) in FindThreadInWorkGroup() argument 51 FFRT_LOGE("[RSWorkGroup] find thread %{public}d in workGroup failed, workGroup is null", tid); in FindThreadInWorkGroup() 55 if (workGroup->tids[i] == tid) { in FindThreadInWorkGroup() 62 bool InsertThreadInWorkGroup(WorkGroup *workGroup, int tid) in InsertThreadInWorkGroup() argument 65 FFRT_LOGE("[RSWorkGroup] join thread %{public}d into workGroup failed, workGroup is null", tid); in InsertThreadInWorkGroup() 71 workGroup->tids[i] = tid; in InsertThreadInWorkGroup() 78 tid, MAX_WG_THREADS); in InsertThreadInWorkGroup() 88 rs.tid = -1; in CreateRSWorkGroup() 107 bool LeaveRSWorkGroup(int tid) in LeaveRSWorkGroup() argument 111 FFRT_LOGI("[RSWorkGroup] LeaveRSWorkGroup rsWorkGroup is null ,tid in LeaveRSWorkGroup() 122 JoinRSWorkGroup(int tid) JoinRSWorkGroup() argument 160 JoinWG(int tid) JoinWG() argument 182 LeaveWG(int tid) LeaveWG() argument 287 WorkgroupJoin(struct WorkGroup* wg, int tid) WorkgroupJoin() argument [all...] |
H A D | workgroup_internal.h | 50 bool JoinWG(int tid); 51 bool LeaveWG(int tid); 57 bool JoinRSWorkGroup(int tid); 58 bool LeaveRSWorkGroup(int tid); 90 inline bool JoinWG(int tid) in JoinWG() argument 95 return JoinRSWorkGroup(tid); in JoinWG() 98 (void)tid; in JoinWG() 102 inline bool LeaveWG(int tid) in LeaveWG() argument 107 return LeaveRSWorkGroup(tid); in LeaveWG() 110 (void)tid; in LeaveWG() 140 WorkgroupJoin(struct WorkGroup* wg, int tid) WorkgroupJoin() argument [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audioschedule/ |
H A D | audio_schedule.cpp | 51 void ConfigPayload(uint32_t pid, uint32_t tid, const char *bundleName, int32_t qosLevel,
in ConfigPayload() argument 56 std::string strTid = std::to_string(tid);
in ConfigPayload() 63 void ScheduleReportData(uint32_t pid, uint32_t tid, const char *bundleName)
in ScheduleReportData() argument 66 ", tid " + std::to_string(tid), REPORTDATA_TIMEOUT);
in ScheduleReportData() 68 AUDIO_INFO_LOG("Report tid %{public}u", tid);
in ScheduleReportData() 70 ConfigPayload(pid, tid, bundleName, AUDIO_QOS_LEVEL, mapPayload);
in ScheduleReportData() 74 void UnscheduleReportData(uint32_t pid, uint32_t tid, const char* bundleName)
in UnscheduleReportData() argument 77 ", tid " in UnscheduleReportData() 84 UnscheduleThreadInServer(uint32_t pid, uint32_t tid) UnscheduleThreadInServer() argument 94 ScheduleThreadInServer(uint32_t pid, uint32_t tid) ScheduleThreadInServer() argument 126 AudioScheduleGuard(uint32_t pid, uint32_t tid, const std::string &bundleName) AudioScheduleGuard() argument [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | thread_context.cpp | 68 std::shared_ptr<ThreadContext> GetContextLocked(int32_t tid) in GetContextLocked() argument 70 auto it = g_contextMap.find(tid); in GetContextLocked() 73 threadContext->tid = tid; in GetContextLocked() 76 g_contextMap[tid] = threadContext; in GetContextLocked() 80 if (it->second->tid == ThreadContextStatus::CONTEXT_UNUSED) { in GetContextLocked() 81 it->second->tid = tid; in GetContextLocked() 86 DFXLOGE("GetContextLocked nullptr, tid: %{public}d", tid); in GetContextLocked() 90 RemoveContextLocked(int32_t tid) RemoveContextLocked() argument 137 GetThreadContext(int32_t tid) GetThreadContext() argument 148 ReleaseThread(int32_t tid) ReleaseThread() argument 164 CollectThreadContext(int32_t tid) CollectThreadContext() argument 227 GetStackRange(int32_t tid, uintptr_t& stackBottom, uintptr_t& stackTop) GetStackRange() argument 254 SignalRequestThread(int32_t tid, ThreadContext* threadContext) SignalRequestThread() argument [all...] |
H A D | dfx_ptrace.cpp | 33 void DfxPtrace::Detach(pid_t tid) in Detach() argument 35 if (tid > 0) { in Detach() 36 ptrace(PTRACE_CONT, tid, 0, 0); in Detach() 37 ptrace(PTRACE_DETACH, tid, nullptr, nullptr); in Detach() 41 bool DfxPtrace::Attach(pid_t tid, int timeout) in Attach() argument 43 if (tid <= 0) { in Attach() 47 if (ptrace(PTRACE_SEIZE, tid, 0, 0) != 0) { in Attach() 48 DFXLOGW("Failed to seize tid(%{public}d), errno=%{public}d", tid, errno); in Attach() 52 if (ptrace(PTRACE_INTERRUPT, tid, in Attach() [all...] |
/third_party/musl/libc-test/src/functionalext/thread/ |
H A D | pthread_rwlock_rdlock.c | 48 pthread_t tid[2]; in pthread_rwlock_clockrdlock_0010() local 51 TEST(pthread_create(&tid[0], NULL, PthreadClockRdlockNoOutRealTimeW1, NULL) == 0); in pthread_rwlock_clockrdlock_0010() 52 TEST(pthread_create(&tid[1], NULL, PthreadClockRdlockNoOutRealTimeR2, NULL) == 0); in pthread_rwlock_clockrdlock_0010() 54 TEST(pthread_join(tid[0], NULL) == 0); in pthread_rwlock_clockrdlock_0010() 55 TEST(pthread_join(tid[1], NULL) == 0); in pthread_rwlock_clockrdlock_0010() 92 pthread_t tid[2]; in pthread_rwlock_clockrdlock_0020() local 95 TEST(pthread_create(&tid[0], NULL, PthreadClockRdlockOutRealTimeW1, NULL) == 0); in pthread_rwlock_clockrdlock_0020() 96 TEST(pthread_create(&tid[1], NULL, PthreadClockRdlockOutRealTimeR2, NULL) == 0); in pthread_rwlock_clockrdlock_0020() 98 TEST(pthread_join(tid[0], NULL) == 0); in pthread_rwlock_clockrdlock_0020() 99 TEST(pthread_join(tid[ in pthread_rwlock_clockrdlock_0020() 133 pthread_t tid[2]; pthread_rwlock_clockrdlock_0030() local 177 pthread_t tid[2]; pthread_rwlock_clockrdlock_0040() local 217 pthread_t tid[2]; pthread_rwlock_timedrdlock_monotonic_np_0010() local 261 pthread_t tid[2]; pthread_rwlock_timedrdlock_monotonic_np_0020() local [all...] |
H A D | pthread_rwlock_wrlock.c | 253 pthread_t tid[2]; in pthread_rwlock_timedwrlock_0050() local 256 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockRealTimeWait1, NULL), 0); in pthread_rwlock_timedwrlock_0050() 257 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockRealTimeWait2, NULL), 0); in pthread_rwlock_timedwrlock_0050() 259 EXPECT_EQ(pthread_join(tid[0], NULL), 0); in pthread_rwlock_timedwrlock_0050() 260 EXPECT_EQ(pthread_join(tid[1], NULL), 0); in pthread_rwlock_timedwrlock_0050() 271 pthread_t tid[2]; in pthread_rwlock_timedwrlock_0060() local 274 EXPECT_EQ(pthread_create(&tid[0], NULL, RwlockClockRealTimeOut1, NULL), 0); in pthread_rwlock_timedwrlock_0060() 275 EXPECT_EQ(pthread_create(&tid[1], NULL, RwlockClockRealTimeOut2, NULL), 0); in pthread_rwlock_timedwrlock_0060() 277 EXPECT_EQ(pthread_join(tid[0], NULL), 0); in pthread_rwlock_timedwrlock_0060() 278 EXPECT_EQ(pthread_join(tid[ in pthread_rwlock_timedwrlock_0060() 289 pthread_t tid[2]; pthread_rwlock_timedwrlock_0070() local 307 pthread_t tid[2]; pthread_rwlock_timedwrlock_0080() local 325 pthread_t tid[2]; pthread_rwlock_timedwrlock_0090() local 343 pthread_t tid[2]; pthread_rwlock_timedwrlock_0100() local [all...] |
H A D | pthread_mutex_ext.c | 45 pthread_t tid; in pthread_mutex_clocklock_0010() local 46 TEST(pthread_create(&tid, NULL, PthreadClocklockOutRealTime, (void*)&mtx) == 0); in pthread_mutex_clocklock_0010() 53 TEST(pthread_join(tid, NULL) == 0); in pthread_mutex_clocklock_0010() 77 pthread_t tid; in pthread_mutex_clocklock_0020() local 78 TEST(pthread_create(&tid, NULL, PthreadClocklockNoOutRealTime, (void*)&mtx) == 0); in pthread_mutex_clocklock_0020() 84 TEST(pthread_join(tid, NULL) == 0); in pthread_mutex_clocklock_0020() 113 pthread_t tid; in pthread_mutex_clocklock_0030() local 114 TEST(pthread_create(&tid, NULL, PthreadClocklockOutMonoTime, (void*)&mtx) == 0); in pthread_mutex_clocklock_0030() 121 TEST(pthread_join(tid, NULL) == 0); in pthread_mutex_clocklock_0030() 145 pthread_t tid; in pthread_mutex_clocklock_0040() local 185 pthread_t tid; pthread_mutex_clocklock_0050() local 217 pthread_t tid; pthread_mutex_clocklock_0060() local 260 pthread_t tid; pthread_mutex_timedlock_monotonic_np_0010() local 292 pthread_t tid; pthread_mutex_timedlock_monotonic_np_0020() local 343 pthread_t tid; pthread_mutex_lock_timeout_np_0010() local 376 pthread_t tid; pthread_mutex_lock_timeout_np_0020() local [all...] |
/base/request/request/frameworks/native/src/ |
H A D | request_service_proxy.cpp | 39 int32_t RequestServiceProxy::Create(const Config &config, std::string &tid)
in Create() argument 80 tid = std::to_string(reply.ReadInt32());
in Create() 136 int32_t RequestServiceProxy::GetTask(const std::string &tid, const std::string &token, Config &config)
in GetTask() argument 138 REQUEST_HILOGD("Request GetTask, tid: %{public}s", tid.c_str());
in GetTask() 142 data.WriteString(tid);
in GetTask() 146 REQUEST_HILOGE("End Request GetTask, tid: %{public}s, failed: %{public}d", tid.c_str(), ret);
in GetTask() 155 REQUEST_HILOGD("End Request GetTask ok, tid: %{public}s", tid in GetTask() 159 Start(const std::string &tid) Start() argument 176 Stop(const std::string &tid) Stop() argument 192 Query(const std::string &tid, TaskInfo &info) Query() argument 214 Touch(const std::string &tid, const std::string &token, TaskInfo &info) Touch() argument 262 Show(const std::string &tid, TaskInfo &info) Show() argument 284 Pause(const std::string &tid, Version version) Pause() argument 301 QueryMimeType(const std::string &tid, std::string &mimeType) QueryMimeType() argument 324 Remove(const std::string &tid, Version version) Remove() argument 348 Resume(const std::string &tid) Resume() argument 387 Subscribe(const std::string &tid) Subscribe() argument 405 Unsubscribe(const std::string &tid) Unsubscribe() argument [all...] |
H A D | request_manager.cpp | 28 int32_t RequestManager::Create(const Config &config, int32_t seq, std::string &tid)
in Create() argument 30 return RequestManagerImpl::GetInstance()->Create(config, seq, tid);
in Create() 32 int32_t RequestManager::GetTask(const std::string &tid, const std::string &token, Config &config)
in GetTask() argument 34 return RequestManagerImpl::GetInstance()->GetTask(tid, token, config);
in GetTask() 36 int32_t RequestManager::Start(const std::string &tid)
in Start() argument 38 return RequestManagerImpl::GetInstance()->Start(tid);
in Start() 40 int32_t RequestManager::Stop(const std::string &tid)
in Stop() argument 42 return RequestManagerImpl::GetInstance()->Stop(tid);
in Stop() 45 int32_t RequestManager::Query(const std::string &tid, TaskInfo &info)
in Query() argument 47 return RequestManagerImpl::GetInstance()->Query(tid, inf in Query() 50 Touch(const std::string &tid, const std::string &token, TaskInfo &info) Touch() argument 60 Show(const std::string &tid, TaskInfo &info) Show() argument 65 Pause(const std::string &tid, Version version) Pause() argument 70 QueryMimeType(const std::string &tid, std::string &mimeType) QueryMimeType() argument 75 Remove(const std::string &tid, Version version) Remove() argument 80 Resume(const std::string &tid) Resume() argument [all...] |
/third_party/alsa-lib/src/timer/ |
H A D | timer_query.c | 215 * \param tid timer identification 218 * if tid->dev_class is -1, then the first device is returned 219 * if result tid->dev_class is -1, no more devices are left 221 int snd_timer_query_next_device(snd_timer_query_t *timer, snd_timer_id_t *tid) in snd_timer_query_next_device() argument 224 assert(tid); in snd_timer_query_next_device() 225 return timer->ops->next_device(timer, tid); in snd_timer_query_next_device() 281 * \param tid pointer to #snd_timer_id_t structure 284 int snd_timer_ginfo_set_tid(snd_timer_ginfo_t *obj, snd_timer_id_t *tid) in snd_timer_ginfo_set_tid() argument 286 obj->tid = *((snd_timer_id_t *)tid); in snd_timer_ginfo_set_tid() 489 snd_timer_id_set_class(snd_timer_id_t * tid, int dev_class) snd_timer_id_set_class() argument 500 snd_timer_id_get_class(snd_timer_id_t * tid) snd_timer_id_get_class() argument 511 snd_timer_id_set_sclass(snd_timer_id_t * tid, int dev_sclass) snd_timer_id_set_sclass() argument 522 snd_timer_id_get_sclass(snd_timer_id_t * tid) snd_timer_id_get_sclass() argument 533 snd_timer_id_set_card(snd_timer_id_t * tid, int card) snd_timer_id_set_card() argument 544 snd_timer_id_get_card(snd_timer_id_t * tid) snd_timer_id_get_card() argument 555 snd_timer_id_set_device(snd_timer_id_t * tid, int device) snd_timer_id_set_device() argument 566 snd_timer_id_get_device(snd_timer_id_t * tid) snd_timer_id_get_device() argument 577 snd_timer_id_set_subdevice(snd_timer_id_t * tid, int subdevice) snd_timer_id_set_subdevice() argument 588 snd_timer_id_get_subdevice(snd_timer_id_t * tid) snd_timer_id_get_subdevice() argument [all...] |
/test/xts/acts/kernel_lite/futex_posix/src/ |
H A D | PthreadRwlockTest.cpp | 60 pthread_t tid[2]; in HWTEST_F() local 64 EXPECT_EQ(pthread_create(&tid[0], nullptr, PthreadRWlockWW1, nullptr), 0) << "> return errno"; in HWTEST_F() 65 EXPECT_EQ(pthread_create(&tid[1], nullptr, PthreadRWlockWW2, nullptr), 0) << "> return errno"; in HWTEST_F() 67 EXPECT_EQ(pthread_join(tid[0], nullptr), 0) << "> return errno"; in HWTEST_F() 68 EXPECT_EQ(pthread_join(tid[1], nullptr), 0) << "> return errno"; in HWTEST_F() 102 pthread_t tid[2]; in HWTEST_F() local 106 EXPECT_EQ(pthread_create(&tid[0], nullptr, PthreadRWlockWR1, nullptr), 0) << "> return errno"; in HWTEST_F() 107 EXPECT_EQ(pthread_create(&tid[1], nullptr, PthreadRWlockWR2, nullptr), 0) << "> return errno"; in HWTEST_F() 109 EXPECT_EQ(pthread_join(tid[0], nullptr), 0) << "> return errno"; in HWTEST_F() 110 EXPECT_EQ(pthread_join(tid[ in HWTEST_F() 144 pthread_t tid[2]; HWTEST_F() local 186 pthread_t tid[2]; HWTEST_F() local 227 pthread_t tid[2]; HWTEST_F() local 268 pthread_t tid[2]; HWTEST_F() local 312 pthread_t tid[2]; HWTEST_F() local 362 pthread_t tid[2]; HWTEST_F() local 412 pthread_t tid[2]; HWTEST_F() local 456 pthread_t tid[2]; HWTEST_F() local [all...] |
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/ |
H A D | unwind_local_tid_benchmark.cpp | 41 NOINLINE int TestFunc6(std::atomic_int* tid, std::atomic_bool* done)
in TestFunc6() argument 43 tid->store(gettid());
in TestFunc6() 49 NOINLINE int TestFunc5(std::atomic_int* tid, std::atomic_bool* done)
in TestFunc5() argument 51 int val = TestFunc6(tid, done);
in TestFunc5() 55 NOINLINE int TestFunc4(std::atomic_int* tid, std::atomic_bool* done)
in TestFunc4() argument 57 int val = TestFunc5(tid, done);
in TestFunc4() 61 NOINLINE int TestFunc3(std::atomic_int* tid, std::atomic_bool* done)
in TestFunc3() argument 63 int val = TestFunc4(tid, done);
in TestFunc3() 67 NOINLINE int TestFunc2(std::atomic_int* tid, std::atomic_bool* done)
in TestFunc2() argument 69 int val = TestFunc3(tid, don in TestFunc2() 73 TestFunc1(std::atomic_int* tid, std::atomic_bool* done) TestFunc1() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | sk_resource_manager.cpp | 31 auto tid = gettid(); in HoldResource() local 32 if (!RSTaskDispatcher::GetInstance().HasRegisteredTask(tid)) { in HoldResource() 36 if (images_.find(tid) != images_.end()) { in HoldResource() 37 images_[tid]->HoldResource(img); in HoldResource() 41 images_.emplace(tid, holder); in HoldResource() 49 auto tid = gettid(); in HoldResource() local 50 if (!RSTaskDispatcher::GetInstance().HasRegisteredTask(tid)) { in HoldResource() 54 if (std::any_of(skSurfaces_[tid].cbegin(), skSurfaces_[tid].cend(), in HoldResource() 58 skSurfaces_[tid] in HoldResource() [all...] |
/third_party/musl/src/malloc/liteos_a/user_debug/ |
H A D | memory_check.c | 65 static inline void lock_stat_bin(int tid) in lock_stat_bin() argument 67 lock(mem_stat.bins[tid].lock); in lock_stat_bin() 68 if (!mem_stat.bins[tid].head.next) in lock_stat_bin() 69 mem_stat.bins[tid].head.next = mem_stat.bins[tid].head.prev = &mem_stat.bins[tid].head; in lock_stat_bin() 72 static inline void unlock_stat_bin(int tid) in unlock_stat_bin() argument 74 unlock(mem_stat.bins[tid].lock); in unlock_stat_bin() 88 static int try_delete_node(int tid, void *ptr) in try_delete_node() argument 93 lock_stat_bin(tid); in try_delete_node() 113 int tid = ((struct pthread *)pthread_self())->tid; delete_node() local 179 create_node(int tid, void *ptr, size_t size) create_node() argument 203 int tid = ((struct pthread *)pthread_self())->tid; insert_node() local 355 check_mem_integrity(int tid, void *ptr) check_mem_integrity() argument 396 int tid = ((struct pthread *)pthread_self())->tid; get_integrity_info() local 506 int tid = ((struct pthread *)pthread_self())->tid; get_free_trace() local 546 int tid, ret; watch_mem() local 686 int tid, nptr; check_leak() local [all...] |
/third_party/musl/porting/liteos_a/user_debug/src/malloc/ |
H A D | memory_check.c | 50 static inline void lock_stat_bin(int tid) in lock_stat_bin() argument 52 lock(mem_stat.bins[tid].lock); in lock_stat_bin() 53 if (!mem_stat.bins[tid].head.next) in lock_stat_bin() 54 mem_stat.bins[tid].head.next = mem_stat.bins[tid].head.prev = &mem_stat.bins[tid].head; in lock_stat_bin() 57 static inline void unlock_stat_bin(int tid) in unlock_stat_bin() argument 59 unlock(mem_stat.bins[tid].lock); in unlock_stat_bin() 73 static int try_delete_node(int tid, void *ptr) in try_delete_node() argument 78 lock_stat_bin(tid); in try_delete_node() 98 int tid = ((struct pthread *)pthread_self())->tid; delete_node() local 164 create_node(int tid, void *ptr, size_t size) create_node() argument 188 int tid = ((struct pthread *)pthread_self())->tid; insert_node() local 340 check_mem_integrity(int tid, void *ptr) check_mem_integrity() argument 381 int tid = ((struct pthread *)pthread_self())->tid; get_integrity_info() local 491 int tid = ((struct pthread *)pthread_self())->tid; get_free_trace() local 531 int tid, ret; watch_mem() local 671 int tid, nptr; check_leak() local [all...] |
/third_party/musl/src/sched/ |
H A D | affinity.c | 7 int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t *set) in sched_setaffinity() argument 14 return syscall(SYS_sched_setaffinity, tid, (unsigned short)(set->__bits[0]), MUSL_TYPE_PROCESS); in sched_setaffinity() 16 return syscall(SYS_sched_setaffinity, tid, size, set); in sched_setaffinity() 26 return -__syscall(SYS_sched_setaffinity, td->tid, (unsigned short)(set->__bits[0]), MUSL_TYPE_THREAD); in pthread_setaffinity_np() 28 return -__syscall(SYS_sched_setaffinity, td->tid, size, set); in pthread_setaffinity_np() 33 static int do_getaffinity(pid_t tid, size_t size, cpu_set_t *set, int flag) in do_getaffinity() argument 39 int ret = __syscall(SYS_sched_getaffinity, tid, &cpuset, flag); in do_getaffinity() 47 static int do_getaffinity(pid_t tid, size_t size, cpu_set_t *set) in do_getaffinity() argument 49 long ret = __syscall(SYS_sched_getaffinity, tid, size, set); in do_getaffinity() 56 int sched_getaffinity(pid_t tid, size_ argument [all...] |
/third_party/ltp/testcases/realtime/func/prio-preempt/ |
H A D | prio-preempt.c | 138 int policy, mypri = 0, tid; in busy_thread() local 139 tid = (intptr_t) (((struct thread *)arg)->arg); in busy_thread() 149 printf("Busy Thread %d(%d): Running...\n", tid, mypri); in busy_thread() 157 printf("Busy Thread %d(%d): Exiting\n", tid, mypri); in busy_thread() 164 int policy, rc, mypri = 0, tid, times = 0; in worker_thread() local 165 tid = (intptr_t) (((struct thread *)arg)->arg); in worker_thread() 179 rc = pthread_mutex_lock(&mutex[tid]); in worker_thread() 180 if (tid == 0) in worker_thread() 182 rc = pthread_cond_wait(&cond[tid], &mutex[tid]); in worker_thread() [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/ |
H A D | backtrace_local.cpp | 42 std::string GetThreadHead(int32_t tid) in GetThreadHead() argument 45 if (tid == BACKTRACE_CURRENT_THREAD) { in GetThreadHead() 46 tid = gettid(); in GetThreadHead() 48 ReadThreadName(tid, threadName); in GetThreadHead() 49 std::string threadHead = "Tid:" + std::to_string(tid) + ", Name:" + threadName + "\n"; in GetThreadHead() 54 bool GetBacktraceFramesByTid(std::vector<DfxFrame>& frames, int32_t tid, size_t skipFrameNum, bool fast, in GetBacktraceFramesByTid() argument 59 if (fast || (tid != BACKTRACE_CURRENT_THREAD)) { in GetBacktraceFramesByTid() 66 BacktraceLocalThread thread(tid, unwinder); in GetBacktraceFramesByTid() 72 bool GetBacktraceStringByTid(std::string& out, int32_t tid, size_t skipFrameNum, bool fast, in GetBacktraceStringByTid() argument 76 bool ret = GetBacktraceFramesByTid(frames, tid, skipFrameNu in GetBacktraceStringByTid() [all...] |
/base/request/request/frameworks/native/include/ |
H A D | request_service_proxy.h | 32 int32_t Create(const Config &config, std::string &tid) override;
33 int32_t GetTask(const std::string &tid, const std::string &token, Config &config) override;
34 int32_t Start(const std::string &tid) override;
35 int32_t Pause(const std::string &tid, Version version) override;
36 int32_t QueryMimeType(const std::string &tid, std::string &mimeType) override;
37 int32_t Remove(const std::string &tid, Version version) override;
38 int32_t Resume(const std::string &tid) override;
40 int32_t Stop(const std::string &tid) override;
41 int32_t Query(const std::string &tid, TaskInfo &info) override;
42 int32_t Touch(const std::string &tid, cons [all...] |
/base/request/request/test/unittest/cpp_test/fwkTest/src/ |
H A D | request_manager_impl_test.cpp | 45 MOCK_METHOD(int32_t, GetTask, (const std::string &tid, const std::string &token, Config &config), (override)); 46 MOCK_METHOD(int32_t, Start, (const std::string &tid), (override)); 47 MOCK_METHOD(int32_t, Pause, (const std::string &tid, Version version), (override)); 48 MOCK_METHOD(int32_t, QueryMimeType, (const std::string &tid, std::string &mimeType), (override)); 49 MOCK_METHOD(int32_t, Remove, (const std::string &tid, Version version), (override)); 50 MOCK_METHOD(int32_t, Resume, (const std::string &tid), (override)); 51 MOCK_METHOD(int32_t, Stop, (const std::string &tid), (override)); 52 MOCK_METHOD(int32_t, Query, (const std::string &tid, TaskInfo &info), (override)); 53 MOCK_METHOD(int32_t, Touch, (const std::string &tid, const std::string &token, TaskInfo &info), (override)); 55 MOCK_METHOD(int32_t, Show, (const std::string &tid, TaskInf 125 std::string tid = "1"; HWTEST_F() local 147 string tid = "tid"; HWTEST_F() local 168 string tid = "tid"; HWTEST_F() local 181 string tid = "tid"; HWTEST_F() local 195 string tid = "tid"; HWTEST_F() local 209 string tid = "tid"; HWTEST_F() local 238 string tid = "tid"; HWTEST_F() local 251 string tid = "tid"; HWTEST_F() local 264 string tid = "tid"; HWTEST_F() local 278 string tid = "tid"; HWTEST_F() local 291 string tid = "tid"; HWTEST_F() local 599 std::string tid = "1"; HWTEST_F() local 622 std::string tid = "1"; HWTEST_F() local 652 std::string tid = "1"; HWTEST_F() local [all...] |
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/task_manager/ |
H A D | thread_utils.cpp | 25 void SetThreadName(pthread_t tid, const std::string& name) in SetThreadName() argument 32 int ret = pthread_setname_np(tid, threadName.c_str()); in SetThreadName() 34 static_cast<long>(pthread_gettid_np(tid)), threadName.c_str(), ret); in SetThreadName() 39 pid_t tid = pthread_gettid_np(handle); in SetThreadPriority() local 40 int currPri = getpriority(PRIO_PROCESS, tid); in SetThreadPriority() 44 int ret = setpriority(PRIO_PROCESS, tid, priority); in SetThreadPriority() 46 DP_DEBUG_LOG("succeed for tid (%ld) with priority (%{public}d).", static_cast<long>(tid), priority); in SetThreadPriority() 48 DP_DEBUG_LOG("failed for tid (%ld) with priority (%{public}d), ret = %{public}d.", in SetThreadPriority() 49 static_cast<long>(tid), priorit in SetThreadPriority() 55 pid_t tid = pthread_gettid_np(handle); GetThreadPriority() local [all...] |