Home
last modified time | relevance | path

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

123

/Zephyr-Core-3.5.0/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); in ZTEST()
[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 ZTEST()
80 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
Dtest_sched_priority.c13 static struct k_thread tdata; variable
58 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
93 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
103 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
/Zephyr-Core-3.5.0/cmake/linker_script/common/
Dthread-local-storage.cmake4 zephyr_linker_section(NAME .tdata LMA FLASH NOINPUT)
5 zephyr_linker_section_configure(SECTION .tdata INPUT ".tdata")
6 zephyr_linker_section_configure(SECTION .tdata INPUT ".tdata.*")
7 zephyr_linker_section_configure(SECTION .tdata INPUT ".gnu.linkonce.td.*")
18 # These needs to be outside of the tdata/tbss
25 # /* The "master copy" of tdata should be only in flash on XIP systems */
26 # PROVIDE(__tdata_start = LOADADDR(tdata));
28 # PROVIDE(__tdata_start = ADDR(tdata));
30 # PROVIDE(__tdata_size = SIZEOF(tdata));
32 # PROVIDE(__tdata_align = ALIGNOF(tdata));
/Zephyr-Core-3.5.0/include/zephyr/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-3.5.0/tests/kernel/common/src/
Dclock.c26 static ZTEST_BMEM struct timer_data tdata; variable
182 tdata.duration_count++; in duration_expire()
187 tdata.stop_count++; in stop_expire()
192 tdata.duration_count = 0; in init_data_count()
193 tdata.stop_count = 0; in init_data_count()
215 zassert_true(tdata.duration_count == 0); in ZTEST()
216 zassert_true(tdata.stop_count == 0); in ZTEST()
225 zassert_true(tdata.duration_count == 1, "duration %u not 1", in ZTEST()
226 tdata.duration_count); in ZTEST()
227 zassert_true(tdata.stop_count == 0, in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/timer/timer_api/src/
Dmain.c68 static ZTEST_BMEM struct timer_data tdata; variable
80 tdata.expire_cnt = 0; in init_timer_data()
81 tdata.stop_cnt = 0; in init_timer_data()
87 tdata.timestamp = k_uptime_get(); in init_timer_data()
116 int64_t interval = k_uptime_delta(&tdata.timestamp); in duration_expire()
118 tdata.expire_cnt++; in duration_expire()
119 if (tdata.expire_cnt == 1) { in duration_expire()
125 if (tdata.expire_cnt >= EXPIRE_TIMES) { in duration_expire()
132 tdata.stop_cnt++; in duration_stop()
137 tdata.expire_cnt++; in period0_expire()
[all …]
/Zephyr-Core-3.5.0/tests/benchmarks/footprints/src/
Dtimer.c23 static FP_BMEM struct timer_data tdata; variable
27 tdata.expire_cnt = 0; in init_timer_data()
28 tdata.stop_cnt = 0; in init_timer_data()
40 tdata.stop_cnt++; in timer_stop()
45 tdata.expire_cnt++; in timer_expire()
61 tdata.timestamp = k_uptime_get(); in thread_fn()
74 tdata.timestamp = k_uptime_get(); in thread_fn()
/Zephyr-Core-3.5.0/tests/kernel/threads/thread_apis/src/
Dtest_threads_cancel_abort.c45 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_abort, in ZTEST_USER()
65 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
74 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
94 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
135 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
192 k_thread_create(&tdata, tstack, STACK_SIZE, entry_abort_isr, in ZTEST()
196 k_thread_join(&tdata, K_FOREVER); in ZTEST()
237 tid = k_thread_create(&tdata, tstack, STACK_SIZE, entry_aborted_thread, in ZTEST()
246 k_thread_join(&tdata, K_FOREVER); in ZTEST()
Dtest_threads_spawn.c50 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_params, in ZTEST_USER()
69 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_priority, in ZTEST()
87 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_delay, in ZTEST_USER()
116 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
142 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
169 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_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 ZTEST()
133 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
161 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
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 ZTEST()
149 k_tid_t tid = k_thread_create(&tdata, tstack, in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/timer/timer_error_case/src/
Dmain.c20 static struct k_thread tdata; variable
49 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
83 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
117 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
151 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
185 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
218 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
251 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
287 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
322 k_thread_access_grant(k_current_get(), &tdata, &tstack, &mytimer, &sync_timer); in setup_timer_error_test()
/Zephyr-Core-3.5.0/tests/lib/newlib/thread_safety/src/
Dlocks.c31 static struct k_thread tdata; variable
127 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
138 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
202 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
212 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
272 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
282 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
342 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
352 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
412 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
[all …]
Dstress.c32 static struct k_thread tdata[THREAD_COUNT]; variable
80 tid[i] = k_thread_create(&tdata[i], tstack[i], STACK_SIZE, in ZTEST()
/Zephyr-Core-3.5.0/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 ZTEST_USER()
200 k_thread_abort(&tdata); in ZTEST_USER()
307 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
309 &tmutex, &tdata, NULL, in ZTEST_USER()
337 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
339 &tmutex, &tdata, NULL, in ZTEST_USER()
363 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
[all …]
/Zephyr-Core-3.5.0/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 ZTEST()
77 tid[1] = k_thread_create(&tdata[1], tstack[1], STACK_SIZE, in ZTEST()
81 tid[2] = k_thread_create(&tdata[2], tstack[2], STACK_SIZE, in ZTEST()
/Zephyr-Core-3.5.0/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.c29 extern struct k_thread tdata;
35 &tdata, &tstack); in msgq_api_setup()
/Zephyr-Core-3.5.0/tests/kernel/pipe/pipe_api/src/
Dmain.c20 extern struct k_thread tdata;
26 &kpipe, &end_sema, &tdata, &tstack, in pipe_api_setup()
/Zephyr-Core-3.5.0/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 ZTEST()
371 k_thread_abort(&tdata); in ZTEST()
431 k_thread_create(&tdata, tstack, STACK_SIZE, user_access_queue_private_data, in ZTEST()
433 k_thread_join(&tdata, K_FOREVER); in ZTEST()
495 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
522 k_thread_join(&tdata, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/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 mutex_api_tests_setup()
/Zephyr-Core-3.5.0/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 ZTEST()
188 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
220 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/threads/thread_error_case/src/
Dmain.c17 static struct k_thread tdata; variable
116 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in create_negative_test_thread()
170 k_thread_access_grant(k_current_get(), &tdata, &tstack, &test_tdata, &test_stack); in thread_grant_setup()
/Zephyr-Core-3.5.0/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 ZTEST()

123