Home
last modified time | relevance | path

Searched refs:tdata (Results 1 – 25 of 48) sorted by relevance

12

/Zephyr-Core-2.7.6/tests/kernel/sched/schedule_api/src/
Dtest_sched_timeslice_and_lock.c13 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 …]
Dtest_sched_is_preempt_thread.c12 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()
Dtest_sched_priority.c13 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/
Dclock.c35 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/
Dthread-local-storage.ld5 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/
Dmain.c68 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/
Dthread-local-storage.cmake4 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/
Dtest_threads_cancel_abort.c45 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()
Dtest_threads_spawn.c50 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()
Dtest_threads_suspend_resume.c27 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()
Dtest_kthread_for_each.c34 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/
Dtimer.c24 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/
Dlocks.c31 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 …]
Dstress.c32 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/
Dmain.c20 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/
Dtest_mutex_apis.c25 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/
Dtest_mslab_alloc_wait.c16 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/
Dtest_msgq_purge.c10 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()
Dmain.c59 extern struct k_thread tdata;
66 &tdata, &tstack); in test_main()
/Zephyr-Core-2.7.6/tests/kernel/queue/src/
Dtest_queue_contexts.c27 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/
Dtest_mutex_error.c23 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/
Dmain.c55 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/
Dmain.c17 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/
Dtest_mheap_concept.c16 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/
Dmain.c16 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()

12