/Zephyr-Core-2.7.6/tests/kernel/sched/schedule_api/src/ |
D | test_sched_timeslice_and_lock.c | 13 static struct thread_data tdata[THREADS_NUM]; variable 33 tdata[tnum].executed = 1; in thread_entry() 42 tdata[i].priority = init_prio - 1; in setup_threads() 45 tdata[i].priority = init_prio; in setup_threads() 48 tdata[i].priority = init_prio + 1; in setup_threads() 50 tdata[i].executed = 0; in setup_threads() 58 tdata[i].tid = k_thread_create(&tthread[i], tstacks[i], in spawn_threads() 62 NULL, tdata[i].priority, 0, in spawn_threads() 70 k_thread_abort(tdata[i].tid); in teardown_threads() 109 zassert_true(tdata[0].executed == 1, NULL); in test_yield_cooperative() [all …]
|
D | test_sched_is_preempt_thread.c | 12 static struct k_thread tdata; variable 73 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_sched_is_preempt_thread() 80 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_sched_is_preempt_thread()
|
D | test_sched_priority.c | 13 static struct k_thread tdata; variable 58 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_priority_cooperative() 93 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_priority_preemptible() 103 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_priority_preemptible()
|
/Zephyr-Core-2.7.6/tests/kernel/common/src/ |
D | clock.c | 35 static ZTEST_BMEM struct timer_data tdata; variable 168 tdata.duration_count++; in duration_expire() 173 tdata.stop_count++; in stop_expire() 178 tdata.duration_count = 0; in init_data_count() 179 tdata.stop_count = 0; in init_data_count() 201 zassert_true(tdata.duration_count == 0, NULL); in test_ms_time_duration() 202 zassert_true(tdata.stop_count == 0, NULL); in test_ms_time_duration() 211 zassert_true(tdata.duration_count == 1, "duration %u not 1", in test_ms_time_duration() 212 tdata.duration_count); in test_ms_time_duration() 213 zassert_true(tdata.stop_count == 0, in test_ms_time_duration() [all …]
|
/Zephyr-Core-2.7.6/include/linker/ |
D | thread-local-storage.ld | 5 SECTION_DATA_PROLOGUE(tdata,,) 7 *(.tdata .tdata.* .gnu.linkonce.td.*); 16 * These needs to be outside of the tdata/tbss 22 /* The "master copy" of tdata should be only in flash on XIP systems */ 23 PROVIDE(__tdata_start = LOADADDR(tdata)); 25 PROVIDE(__tdata_start = ADDR(tdata)); 27 PROVIDE(__tdata_size = SIZEOF(tdata)); 29 PROVIDE(__tdata_align = ALIGNOF(tdata));
|
/Zephyr-Core-2.7.6/tests/kernel/timer/timer_api/src/ |
D | main.c | 68 static ZTEST_BMEM struct timer_data tdata; variable 82 tdata.expire_cnt = 0; in init_timer_data() 83 tdata.stop_cnt = 0; in init_timer_data() 89 tdata.timestamp = k_uptime_get(); in init_timer_data() 118 int64_t interval = k_uptime_delta(&tdata.timestamp); in duration_expire() 120 tdata.expire_cnt++; in duration_expire() 121 if (tdata.expire_cnt == 1) { in duration_expire() 127 if (tdata.expire_cnt >= EXPIRE_TIMES) { in duration_expire() 134 tdata.stop_cnt++; in duration_stop() 139 tdata.expire_cnt++; in period0_expire() [all …]
|
/Zephyr-Core-2.7.6/cmake/linker_script/common/ |
D | thread-local-storage.cmake | 4 zephyr_linker_section(NAME .tdata LMA FLASH NOINPUT) 5 zephyr_linker_section_configure(SECTION .tdata INPUT ".gnu.linkonce.td.*") 14 # These needs to be outside of the tdata/tbss 21 # /* The "master copy" of tdata should be only in flash on XIP systems */ 22 # PROVIDE(__tdata_start = LOADADDR(tdata)); 24 # PROVIDE(__tdata_start = ADDR(tdata)); 26 # PROVIDE(__tdata_size = SIZEOF(tdata)); 28 # PROVIDE(__tdata_align = ALIGNOF(tdata));
|
/Zephyr-Core-2.7.6/tests/kernel/threads/thread_apis/src/ |
D | test_threads_cancel_abort.c | 45 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_abort, in test_threads_abort_self() 65 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_threads_abort_others() 74 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_threads_abort_others() 94 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_threads_abort_repeat() 135 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_delayed_thread_abort() 192 k_thread_create(&tdata, tstack, STACK_SIZE, entry_abort_isr, in test_abort_from_isr() 196 k_thread_join(&tdata, K_FOREVER); in test_abort_from_isr() 237 tid = k_thread_create(&tdata, tstack, STACK_SIZE, entry_aborted_thread, in test_abort_from_isr_not_self() 246 k_thread_join(&tdata, K_FOREVER); in test_abort_from_isr_not_self()
|
D | test_threads_spawn.c | 50 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_params, in test_threads_spawn_params() 69 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_priority, in test_threads_spawn_priority() 87 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_delay, in test_threads_spawn_delay() 116 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_threads_spawn_forever() 142 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_thread_start() 169 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_thread_start_user()
|
D | test_threads_suspend_resume.c | 27 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in threads_suspend_resume() 96 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_threads_suspend() 133 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_threads_suspend_timeout() 159 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_resume_unsuspend_thread()
|
D | test_kthread_for_each.c | 34 if (thread == &tdata) { in thread_callback() 57 if (thread == &tdata) { in thread_callback_unlocked() 100 k_tid_t tid = k_thread_create(&tdata, tstack, in test_k_thread_foreach() 149 k_tid_t tid = k_thread_create(&tdata, tstack, in test_k_thread_foreach_unlocked()
|
/Zephyr-Core-2.7.6/tests/benchmarks/footprints/src/ |
D | timer.c | 24 static FP_BMEM struct timer_data tdata; variable 28 tdata.expire_cnt = 0; in init_timer_data() 29 tdata.stop_cnt = 0; in init_timer_data() 41 tdata.stop_cnt++; in timer_stop() 46 tdata.expire_cnt++; in timer_expire() 62 tdata.timestamp = k_uptime_get(); in thread_fn() 75 tdata.timestamp = k_uptime_get(); in thread_fn()
|
/Zephyr-Core-2.7.6/tests/lib/newlib/thread_safety/src/ |
D | locks.c | 31 static struct k_thread tdata; variable 127 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_retargetable_lock_mutex() 138 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_retargetable_lock_mutex() 202 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_sinit_lock() 212 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_sinit_lock() 272 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_sfp_lock() 282 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_sfp_lock() 342 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_malloc_lock() 352 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_malloc_lock() 412 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_env_lock() [all …]
|
D | stress.c | 32 static struct k_thread tdata[THREAD_COUNT]; variable 80 tid[i] = k_thread_create(&tdata[i], tstack[i], STACK_SIZE, in test_malloc_thread_safety()
|
/Zephyr-Core-2.7.6/tests/kernel/timer/timer_error_case/src/ |
D | main.c | 20 static struct k_thread tdata; variable 45 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_timer_start_null() 82 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_timer_stop_null() 119 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_timer_status_get_null() 156 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_timer_status_sync_null() 193 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_timer_remaining_ticks_null() 230 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_timer_expires_ticks_null() 267 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_timer_user_data_get_null() 306 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_timer_user_data_set_null() 368 k_thread_access_grant(k_current_get(), &tdata, &tstack, &mytimer, &sync_timer); in test_main()
|
/Zephyr-Core-2.7.6/tests/kernel/mutex/mutex_api/src/ |
D | test_mutex_apis.c | 25 static struct k_thread tdata; variable 61 k_thread_create(&tdata, tstack, STACK_SIZE, in tmutex_test_lock() 77 k_thread_create(&tdata, tstack, STACK_SIZE, in tmutex_test_lock_timeout() 196 k_thread_abort(&tdata); in test_mutex_reent_lock_forever() 200 k_thread_abort(&tdata); in test_mutex_reent_lock_forever() 306 k_thread_create(&tdata, tstack, STACK_SIZE, in test_mutex_priority_inheritance() 308 &mutex, &tdata, NULL, in test_mutex_priority_inheritance() 336 k_thread_create(&tdata, tstack, STACK_SIZE, in test_mutex_priority_inheritance() 338 &mutex, &tdata, NULL, in test_mutex_priority_inheritance() 362 k_thread_create(&tdata, tstack, STACK_SIZE, in test_mutex_priority_inheritance() [all …]
|
/Zephyr-Core-2.7.6/tests/kernel/mem_slab/mslab_concept/src/ |
D | test_mslab_alloc_wait.c | 16 static struct k_thread tdata[THREAD_NUM]; variable 73 tid[0] = k_thread_create(&tdata[0], tstack[0], STACK_SIZE, in test_mslab_alloc_wait_prio() 77 tid[1] = k_thread_create(&tdata[1], tstack[1], STACK_SIZE, in test_mslab_alloc_wait_prio() 81 tid[2] = k_thread_create(&tdata[2], tstack[2], STACK_SIZE, in test_mslab_alloc_wait_prio()
|
/Zephyr-Core-2.7.6/tests/kernel/msgq/msgq_api/src/ |
D | test_msgq_purge.c | 10 extern struct k_thread tdata; 32 k_thread_create(&tdata, tstack, STACK_SIZE, in purge_when_put() 46 k_thread_abort(&tdata); in purge_when_put()
|
D | main.c | 59 extern struct k_thread tdata; 66 &tdata, &tstack); in test_main()
|
/Zephyr-Core-2.7.6/tests/kernel/queue/src/ |
D | test_queue_contexts.c | 27 static struct k_thread tdata; variable 114 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in tqueue_thread_thread() 220 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in tqueue_get_2threads() 343 k_thread_create(&tdata, tstack, STACK_SIZE, in test_queue_poll_race() 371 k_thread_abort(&tdata); in test_queue_poll_race() 431 k_thread_create(&tdata, tstack, STACK_SIZE, user_access_queue_private_data, in test_access_kernel_obj_with_priv_data() 433 k_thread_join(&tdata, K_FOREVER); in test_access_kernel_obj_with_priv_data() 495 k_thread_create(&tdata, tstack, STACK_SIZE, in test_queue_multithread_competition() 522 k_thread_join(&tdata, K_FOREVER); in test_queue_multithread_competition()
|
/Zephyr-Core-2.7.6/tests/kernel/mutex/mutex_error_case/src/ |
D | test_mutex_error.c | 23 static struct k_thread tdata; variable 104 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in create_negative_test_thread() 211 k_thread_access_grant(k_current_get(), &tdata, &tstack, in test_main()
|
/Zephyr-Core-2.7.6/tests/kernel/fifo/fifo_usage/src/ |
D | main.c | 55 static struct k_thread tdata; variable 157 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_single_fifo_play() 188 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_dual_fifo_play() 220 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in test_isr_fifo_play()
|
/Zephyr-Core-2.7.6/tests/kernel/threads/thread_error_case/src/ |
D | main.c | 17 static struct k_thread tdata; variable 117 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in create_negative_test_thread() 171 k_thread_access_grant(k_current_get(), &tdata, &tstack, &test_tdata, &test_stack); in test_main()
|
/Zephyr-Core-2.7.6/tests/kernel/mem_heap/mheap_api_concept/src/ |
D | test_mheap_concept.c | 16 static struct k_thread tdata[THREAD_NUM]; variable 87 tid[i] = k_thread_create(&tdata[i], tstack[i], STACK_SIZE, in test_mheap_threadsafe()
|
/Zephyr-Core-2.7.6/tests/ztest/error_hook/src/ |
D | main.c | 16 static struct k_thread tdata; variable 245 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in run_trigger_thread() 345 k_thread_access_grant(k_current_get(), &tdata, &tstack); in test_main()
|