/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...] |
H A D | PthreadAttrTest.cpp | 35 pthread_t tid; in HWTEST_F() local 45 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPublic, nullptr), 0) << "> return errno"; in HWTEST_F() 47 EXPECT_EQ(pthread_join(tid, nullptr), EINVAL) << "> return errno"; in HWTEST_F() 55 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPublic, nullptr), 0) << "> return errno"; in HWTEST_F() 57 EXPECT_EQ(pthread_join(tid, nullptr), 0) << "> return errno"; in HWTEST_F() 80 pthread_t tid; in HWTEST_F() local 93 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPthreadAttrSetscope, nullptr), 0) << "> return errno"; in HWTEST_F() 96 pthread_join(tid, nullptr); in HWTEST_F() 120 pthread_t tid; in HWTEST_F() local 133 ASSERT_EQ(pthread_create(&tid, in HWTEST_F() 163 pthread_t tid; HWTEST_F() local 220 pthread_t tid; HWTEST_F() local 296 pthread_t tid; HWTEST_F() local [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...] |
/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...] |
H A D | PthreadMutexTest.cpp | 54 pthread_t tid[loopNum]; in HWTEST_F() local 59 EXPECT_EQ(pthread_create(&tid[i], nullptr, ThreadMutex, (void*)&mtx), 0) << "> return errno"; in HWTEST_F() 62 EXPECT_EQ(pthread_join(tid[i], nullptr), 0) << "> return errno"; in HWTEST_F() 98 pthread_t tid[2]; in HWTEST_F() local 102 EXPECT_EQ(pthread_create(&tid[0], nullptr, ThreadMtrylock1, (void*)&mtx), 0) << "> return errno"; in HWTEST_F() 103 EXPECT_EQ(pthread_create(&tid[1], nullptr, ThreadMtrylock2, (void*)&mtx), 0) << "> return errno"; in HWTEST_F() 105 EXPECT_EQ(pthread_join(tid[0], nullptr), 0) << "> return errno"; in HWTEST_F() 106 EXPECT_EQ(pthread_join(tid[1], nullptr), 0) << "> return errno"; in HWTEST_F() 173 pthread_t tid[2]; in HWTEST_F() local 175 EXPECT_EQ(pthread_create(&tid[ in HWTEST_F() 211 pthread_t tid; HWTEST_F() local 248 pthread_t tid; HWTEST_F() local 319 pthread_t tid; HWTEST_F() local 396 pthread_t tid; HWTEST_F() local 508 pthread_t tid[loopNum]; HWTEST_F() local 552 pthread_t tid[2]; HWTEST_F() local [all...] |
H A D | PthreadCondTest.cpp | 140 pthread_t tid[2]; in HWTEST_F() local 143 ASSERT_EQ(pthread_create(&tid[0], nullptr, ThreadPthreadCondSignalBefore1, nullptr), 0) << "> return errno"; in HWTEST_F() 144 ASSERT_EQ(pthread_create(&tid[1], nullptr, ThreadPthreadCondSignalBefore2, nullptr), 0) << "> return errno"; in HWTEST_F() 147 pthread_join(tid[0], nullptr); in HWTEST_F() 148 pthread_join(tid[1], nullptr); in HWTEST_F() 185 pthread_t tid[2]; in HWTEST_F() local 188 ASSERT_EQ(pthread_create(&tid[0], nullptr, ThreadTestCondSignalWaitAfter1, nullptr), 0) << "> return errno"; in HWTEST_F() 189 ASSERT_EQ(pthread_create(&tid[1], nullptr, ThreadTestCondSignalWaitAfter2, nullptr), 0) << "> return errno"; in HWTEST_F() 192 pthread_join(tid[0], nullptr); in HWTEST_F() 193 pthread_join(tid[ in HWTEST_F() 232 pthread_t tid[3]; HWTEST_F() local 332 pthread_t tid; HWTEST_F() local 370 pthread_t tid; HWTEST_F() local [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...] |
/vendor/hisilicon/hispark_pegasus/demo/thread_demo/00_thread/ |
H A D | thread.c | 31 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() local 32 if (tid == NULL) { in newThread() 35 printf("[Thread Test] osThreadNew(%s) success, thread id: %d.\r\n", name, tid); in newThread() 37 return tid; in newThread() 44 osThreadId_t tid = osThreadGetId(); in threadTest() local 45 printf("[Thread Test] threadTest osThreadGetId, thread id:%p\r\n", tid); in threadTest() 56 osThreadId_t tid = newThread("test_thread", threadTest, "This is a test thread."); in rtosv2_thread_main() local 58 const char *t_name = osThreadGetName(tid); in rtosv2_thread_main() 61 osThreadState_t state = osThreadGetState(tid); in rtosv2_thread_main() 64 osStatus_t status = osThreadSetPriority(tid, osPriorityNormal in rtosv2_thread_main() [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...] |
/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/elfutils/libdwfl/ |
H A D | linux-pid-attach.c | 75 __libdwfl_ptrace_attach (pid_t tid, bool *tid_was_stoppedp) in __libdwfl_ptrace_attach() argument 77 if (ptrace (PTRACE_ATTACH, tid, NULL, NULL) != 0) in __libdwfl_ptrace_attach() 82 *tid_was_stoppedp = linux_proc_pid_is_stopped (tid); in __libdwfl_ptrace_attach() 91 syscall (__NR_tkill, tid, SIGSTOP); in __libdwfl_ptrace_attach() 92 ptrace (PTRACE_CONT, tid, NULL, NULL); in __libdwfl_ptrace_attach() 97 if (waitpid (tid, &status, __WALL) != tid || !WIFSTOPPED (status)) in __libdwfl_ptrace_attach() 100 ptrace (PTRACE_DETACH, tid, NULL, NULL); in __libdwfl_ptrace_attach() 107 if (ptrace (PTRACE_CONT, tid, NULL, in __libdwfl_ptrace_attach() 111 ptrace (PTRACE_DETACH, tid, NUL in __libdwfl_ptrace_attach() 196 pid_t tid = pid_arg->tid_attached; pid_memory_read() local 281 pid_t tid = tidl; pid_next_thread() local 293 pid_getthread(Dwfl *dwfl __attribute__ ((unused)), pid_t tid, void *dwfl_arg, void **thread_argp) pid_getthread() argument 328 pid_t tid = INTUSE(dwfl_thread_tid) (thread); pid_set_initial_registers() local 352 __libdwfl_ptrace_detach(pid_t tid, bool tid_was_stopped) __libdwfl_ptrace_detach() argument 367 pid_t tid = INTUSE(dwfl_thread_tid) (thread); pid_thread_detach() local [all...] |
/test/xts/acts/kernel_lite/time_posix/src/ |
H A D | AlarmTest.cpp | 218 timer_t tid = nullptr;
in HWTEST_F() local 225 EXPECT_EQ(timer_create(CLOCK_REALTIME, &ev, &tid), 0) << "ERROR: timer_create() != 0";
in HWTEST_F() 226 LOG("tid = %p", tid);
in HWTEST_F() 232 EXPECT_EQ(timer_settime(tid, 0, &its, NULL), 0) << "ERROR: timer_settime() != 0";
in HWTEST_F() 237 EXPECT_EQ(timer_delete(tid), 0) << "ERROR: timer_delete() != 0";
in HWTEST_F() 250 timer_t tid = nullptr;
in HWTEST_F() local 254 EXPECT_EQ(timer_create(CLOCK_REALTIME, NULL, &tid), 0) << "ERROR: timer_create() != 0";
in HWTEST_F() 255 LOG("tid = %p", tid);
in HWTEST_F() 293 timer_t tid = NULL; HWTEST_F() local 338 timer_t tid = nullptr; HWTEST_F() local 377 timer_t tid = nullptr; HWTEST_F() local 391 timer_t tid = nullptr; HWTEST_F() local 452 timer_t tid = nullptr; HWTEST_F() local [all...] |
/third_party/ltp/testcases/realtime/func/pi-tests/ |
H A D | testpi-2.c | 86 int i, tid = gettid(); in func_lowrt() local 88 printf("Thread %d started running with priority %d\n", tid, in func_lowrt() 92 tid, pthr->policy, pthr->priority); in func_lowrt() 104 tid, i, pthr->policy, pthr->priority); in func_lowrt() 116 int i, tid = gettid(); in func_rt() local 118 printf("Thread %d started running with prio %d\n", tid, pthr->priority); in func_rt() 122 tid, pthr->policy, pthr->priority); in func_rt() 132 tid, i, pthr->policy, pthr->priority); in func_rt() 144 int i, tid = gettid(); in func_noise() local 146 printf("Noise Thread %d started running with prio %d\n", tid, in func_noise() [all...] |
H A D | testpi-1.c | 84 int i, tid = gettid(); in func_nonrt() local 86 printf("Thread %d started running with priority %d\n", tid, in func_nonrt() 90 tid, pthr->policy, pthr->priority); in func_nonrt() 102 tid, i, pthr->policy, pthr->priority); in func_nonrt() 114 int i, tid = gettid(); in func_rt() local 116 printf("Thread %d started running with prio %d\n", tid, pthr->priority); in func_rt() 120 tid, pthr->policy, pthr->priority); in func_rt() 130 tid, i, pthr->policy, pthr->priority); in func_rt() 142 int i, tid = gettid(); in func_noise() local 144 printf("Noise Thread %d started running with prio %d\n", tid, in func_noise() [all...] |
H A D | testpi-4.c | 85 int i, tid = gettid(); in func_nonrt() local 87 printf("Thread %d started running with priority %d\n", tid, in func_nonrt() 91 tid, pthr->policy, pthr->priority); in func_nonrt() 104 tid, i, pthr->policy, pthr->priority); in func_nonrt() 116 int i, tid = gettid(); in func_rt() local 118 printf("Thread %d started running with prio %d\n", tid, pthr->priority); in func_rt() 122 tid, pthr->policy, pthr->priority); in func_rt() 132 tid, i, pthr->policy, pthr->priority); in func_rt() 144 int i, tid = gettid(); in func_noise() local 160 "pri %d\n", tid, in func_noise() [all...] |
/third_party/musl/porting/liteos_a/user/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 13 return syscall(SYS_sched_setaffinity, tid, (unsigned short)(set->__bits[0]), MUSL_TYPE_PROCESS); in sched_setaffinity() 21 return -__syscall(SYS_sched_setaffinity, td->tid, (unsigned short)(set->__bits[0]), MUSL_TYPE_THREAD); in pthread_setaffinity_np() 24 static int do_getaffinity(pid_t tid, size_t size, cpu_set_t *set, int flag) in do_getaffinity() argument 30 int ret = __syscall(SYS_sched_getaffinity, tid, &cpuset, flag); in do_getaffinity() 38 int sched_getaffinity(pid_t tid, size_t size, cpu_set_t *set) in sched_getaffinity() argument 40 return __syscall_ret(do_getaffinity(tid, size, set, MUSL_TYPE_PROCESS)); in sched_getaffinity() 45 return -do_getaffinity(td->tid, size, set, MUSL_TYPE_THREAD); in pthread_getaffinity_np()
|
/third_party/ltp/testcases/kernel/syscalls/rt_tgsigqueueinfo/ |
H A D | rt_tgsigqueueinfo01.c | 12 * ID, and tid, a thread in that thread group. 83 pid_t *tid = arg; in receiver_func() local 85 *tid = syscall(__NR_gettid); in receiver_func() 106 pid_t tid = -1; in verify_signal_parent_thread() local 110 SAFE_PTHREAD_CREATE(&pt, NULL, receiver_func, &tid); in verify_signal_parent_thread() 119 tid, SIGUSR1, &uinfo)); in verify_signal_parent_thread() 128 pid_t *tid = arg; in sender_func() local 136 *tid, SIGUSR1, &uinfo)); in sender_func() 145 pid_t tid = -1; in verify_signal_inter_thread() local 148 SAFE_PTHREAD_CREATE(&pt1, NULL, receiver_func, &tid); in verify_signal_inter_thread() [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/ |
H A D | hmac_tx_data.c | 107 功能描述 : 根据优先级设置tid号 113 hi_void hmac_tid_num_set(hi_u32 buf_prio, hi_u8 *tid) in hmac_tid_num_set() argument 117 *tid = WLAN_TIDNO_BEST_EFFORT; in hmac_tid_num_set() 120 *tid = WLAN_TIDNO_BACKGROUND; in hmac_tid_num_set() 123 *tid = WLAN_TIDNO_VIDEO; in hmac_tid_num_set() 126 *tid = WLAN_TIDNO_VOICE; in hmac_tid_num_set() 139 hi_u8 tid; in hmac_tx_classify_ipv4_data() local 159 tid = ip->tos >> WLAN_IP_PRI_SHIFT; in hmac_tx_classify_ipv4_data() 162 if (tid != 0) { in hmac_tx_classify_ipv4_data() 165 hmac_tx_traffic_classify(tx_ctl, ip, &tid); in hmac_tx_classify_ipv4_data() 206 hi_u8 tid; hmac_tx_classify_ipv6_data() local 274 hi_u8 tid = 0; hmac_tx_classify_lan_to_wlan() local 435 hi_u8 tid = 0; hmac_tx_classify() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/ipc/msgstress/ |
H A D | msgstress04.c | 60 static int tid; variable 71 static void cleanup_msgqueue(int i, int tid); 136 tid = -1; in main() 238 static void cleanup_msgqueue(int i, int tid) in cleanup_msgqueue() argument 255 if (msgctl(tid, IPC_RMID, 0) < 0) { in cleanup_msgqueue() 272 tid = id; in dotest() 281 cleanup_msgqueue(i, tid); in dotest() 287 exit(doreader(key, tid, getpid(), in dotest() 299 cleanup_msgqueue(i, tid); in dotest() 305 exit(dowriter(key, tid, rkidarra in dotest() [all...] |
H A D | msgstress02.c | 57 static int tid; variable 66 static void cleanup_msgqueue(int i, int tid); 131 tid = -1; in main() 212 static void cleanup_msgqueue(int i, int tid) in cleanup_msgqueue() argument 229 if (msgctl(tid, IPC_RMID, 0) < 0) { in cleanup_msgqueue() 245 tid = id; in dotest() 255 cleanup_msgqueue(i, tid); in dotest() 261 exit(doreader(key, tid, getpid(), in dotest() 274 cleanup_msgqueue(i, tid); in dotest() 280 exit(dowriter(key, tid, rkidarra in dotest() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_spinlock_reentrant.c | 46 void mali_spinlock_reentrant_wait(struct mali_spinlock_reentrant *spinlock, u32 tid) in mali_spinlock_reentrant_wait() argument 50 MALI_DEBUG_ASSERT(0 != tid); in mali_spinlock_reentrant_wait() 54 if (tid != spinlock->owner) { in mali_spinlock_reentrant_wait() 57 spinlock->owner = tid; in mali_spinlock_reentrant_wait() 65 void mali_spinlock_reentrant_signal(struct mali_spinlock_reentrant *spinlock, u32 tid) in mali_spinlock_reentrant_signal() argument 69 MALI_DEBUG_ASSERT(0 != tid && tid == spinlock->owner); in mali_spinlock_reentrant_signal()
|