Home
last modified time | relevance | path

Searched refs:K_USER (Results 1 – 25 of 116) sorted by relevance

12345

/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dmain.c126 thread_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, 0, K_USER); in test_thread()
127 thread_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, K_USER, K_USER); in test_thread()
128 thread_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, K_USER, 0); in test_thread()
133 fifo_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, K_USER); in test_thread()
138 fifo_blocking_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, 0, K_USER); in test_thread()
139 fifo_blocking_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, K_USER, 0); in test_thread()
140 fifo_blocking_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, K_USER, K_USER); in test_thread()
146 lifo_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, K_USER); in test_thread()
151 lifo_blocking_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, 0, K_USER); in test_thread()
152 lifo_blocking_ops(CONFIG_BENCHMARK_NUM_ITERATIONS, K_USER, 0); in test_thread()
[all …]
Dthread_switch_yield.c118 if ((start_options & K_USER) == K_USER) { in thread_switch_yield_common()
136 (start_options & K_USER) == K_USER ? 'u' : 'k', in thread_switch_yield_common()
137 (alt_options & K_USER) == K_USER ? 'u' : 'k'); in thread_switch_yield_common()
162 thread_switch_yield_common(description, num_iterations, K_USER, K_USER, in thread_switch_yield()
166 thread_switch_yield_common(description, num_iterations, 0, K_USER, in thread_switch_yield()
170 thread_switch_yield_common(description, num_iterations, K_USER, 0, in thread_switch_yield()
Dthread.c91 K_USER : 0, K_FOREVER); in start_thread_entry()
190 if (((start_options & K_USER) == K_USER) && in thread_ops()
191 ((alt_options & K_USER) == 0)) { in thread_ops()
195 if ((alt_options & K_USER) == K_USER) { in thread_ops()
206 if ((start_options & K_USER) == K_USER) { in thread_ops()
253 (alt_options & K_USER) != 0 ? "user" : "kernel", in thread_ops()
254 (start_options & K_USER) != 0 ? "user" : "kernel"); in thread_ops()
268 (alt_options & K_USER) != 0 ? "user" : "kernel", in thread_ops()
269 (start_options & K_USER) != 0 ? "user" : "kernel"); in thread_ops()
282 (alt_options & K_USER) != 0 ? "user" : "kernel", in thread_ops()
[all …]
Dfifo.c45 if ((options & K_USER) == 0) { in fifo_put_get_thread_entry()
114 if ((options & K_USER) == 0) { in fifo_ops()
117 options & K_USER ? "user" : "kernel"); in fifo_ops()
129 options & K_USER ? "user" : "kernel"); in fifo_ops()
141 options & K_USER ? "user" : "kernel"); in fifo_ops()
152 options & K_USER ? "user" : "kernel"); in fifo_ops()
177 if ((options & K_USER) == 0) { in alt_thread_entry()
220 if ((options & K_USER) == 0) { in alt_thread_entry()
240 if ((options & K_USER) == 0) { in start_thread_entry()
296 if (((start_options | alt_options) & K_USER) == 0) { in fifo_blocking_ops()
[all …]
Dlifo.c45 if ((options & K_USER) == 0) { in lifo_put_get_thread_entry()
114 if ((options & K_USER) == 0) { in lifo_ops()
117 options & K_USER ? "user" : "kernel"); in lifo_ops()
129 options & K_USER ? "user" : "kernel"); in lifo_ops()
141 options & K_USER ? "user" : "kernel"); in lifo_ops()
152 options & K_USER ? "user" : "kernel"); in lifo_ops()
177 if ((options & K_USER) == 0) { in alt_thread_entry()
220 if ((options & K_USER) == 0) { in alt_thread_entry()
240 if ((options & K_USER) == 0) { in start_thread_entry()
296 if (((start_options | alt_options) & K_USER) == 0) { in lifo_blocking_ops()
[all …]
Dsema_test_signal_release.c144 ((start_options & K_USER) == K_USER) ? 'u' : 'k', in sema_context_switch()
145 ((alt_options & K_USER) == K_USER) ? 'u' : 'k'); in sema_context_switch()
162 ((alt_options & K_USER) == K_USER) ? 'u' : 'k', in sema_context_switch()
163 ((start_options & K_USER) == K_USER) ? 'u' : 'k'); in sema_context_switch()
265 (options & K_USER) == K_USER ? "user" : "kernel"); in sema_test_signal()
286 (options & K_USER) == K_USER ? "user" : "kernel"); in sema_test_signal()
Dtiming_sc.c84 priority - 1, K_USER, K_FOREVER); in timestamp_overhead_init()
97 if (((options1 | options2) & K_USER) == K_USER) { in timestamp_overhead_adjustment()
98 if (((options1 & options2) & K_USER) == K_USER) { in timestamp_overhead_adjustment()
Devents.c200 (options & K_USER) ? "user" : "kernel"); in event_ops()
213 (options & K_USER) ? "user" : "kernel"); in event_ops()
225 (options & K_USER) ? "user" : "kernel"); in event_ops()
237 (options & K_USER) ? "user" : "kernel"); in event_ops()
284 (alt_options & K_USER) ? 'u' : 'k', in event_blocking_ops()
285 (start_options & K_USER) ? 'u' : 'k'); in event_blocking_ops()
296 (start_options & K_USER) ? 'u' : 'k', in event_blocking_ops()
297 (alt_options & K_USER) ? 'u' : 'k'); in event_blocking_ops()
308 (alt_options & K_USER) ? 'u' : 'k', in event_blocking_ops()
309 (start_options & K_USER) ? 'u' : 'k'); in event_blocking_ops()
[all …]
Dmutex_lock_unlock.c99 (options & K_USER) == K_USER ? "user" : "kernel"); in mutex_lock_unlock()
109 (options & K_USER) == K_USER ? "user" : "kernel"); in mutex_lock_unlock()
Dcondvar.c108 (start_options & K_USER) ? 'u' : 'k', in condvar_blocking_ops()
109 (alt_options & K_USER) ? 'u' : 'k'); in condvar_blocking_ops()
120 (alt_options & K_USER) ? 'u' : 'k', in condvar_blocking_ops()
121 (start_options & K_USER) ? 'u' : 'k'); in condvar_blocking_ops()
Dstack.c86 options & K_USER ? "user" : "kernel"); in stack_ops()
98 options & K_USER ? "user" : "kernel"); in stack_ops()
198 alt_options & K_USER ? "u" : "k", in stack_blocking_ops()
199 start_options & K_USER ? "u" : "k"); in stack_blocking_ops()
210 start_options & K_USER ? "u" : "k", in stack_blocking_ops()
211 alt_options & K_USER ? "u" : "k"); in stack_blocking_ops()
/Zephyr-latest/tests/kernel/threads/dynamic_thread_stack/src/
Dmain.c57 stack = k_thread_stack_alloc(CONFIG_DYNAMIC_THREAD_STACK_SIZE, K_USER); in ZTEST_USER()
65 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
88 IS_ENABLED(CONFIG_USERSPACE) ? K_USER : 0); in ZTEST()
97 IS_ENABLED(CONFIG_USERSPACE) ? K_USER : 0))); in ZTEST()
101 IS_ENABLED(CONFIG_USERSPACE) ? K_USER : 0)); in ZTEST()
110 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST()
144 IS_ENABLED(CONFIG_USERSPACE) ? K_USER : 0); in ZTEST()
156 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST()
232 stack[0] = k_thread_stack_alloc(CONFIG_DYNAMIC_THREAD_STACK_SIZE, K_USER); in ZTEST()
235 stack[1] = k_thread_stack_alloc(CONFIG_DYNAMIC_THREAD_STACK_SIZE, K_USER); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/condvar/condvar_api/src/
Dmain.c148 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
155 PRIO_WAKE, K_USER | K_INHERIT_PERMS, K_MSEC(1)); in ZTEST_USER()
174 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
181 PRIO_WAKE, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
200 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
219 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
234 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
250 PRIO_WAIT, K_USER | K_INHERIT_PERMS, in ZTEST_USER()
258 PRIO_WAKE, K_USER | K_INHERIT_PERMS, in ZTEST_USER()
275 PRIO_WAIT, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/threads/thread_apis/src/
Dtest_threads_spawn.c52 K_USER, K_NO_WAIT); in ZTEST_USER()
70 NULL, NULL, NULL, spawn_prio, K_USER, K_NO_WAIT); in ZTEST()
88 NULL, NULL, NULL, 0, K_USER, K_MSEC(120)); in ZTEST_USER()
119 K_USER, K_FOREVER); in ZTEST()
145 K_USER, K_FOREVER); in ZTEST()
172 K_USER, K_FOREVER); in ZTEST_USER()
Dtest_threads_suspend_resume.c29 create_prio, K_USER, K_NO_WAIT); in threads_suspend_resume()
98 0, K_USER, K_NO_WAIT); in ZTEST()
135 0, K_USER, K_NO_WAIT); in ZTEST()
163 0, K_USER, K_NO_WAIT); in ZTEST()
/Zephyr-latest/tests/kernel/mem_protect/mem_protect/src/
Dkobject.c232 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST()
243 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST()
279 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST()
288 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST()
324 0, K_USER, K_NO_WAIT); in ZTEST()
359 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST()
412 0, K_USER, K_NO_WAIT); in ZTEST()
420 0, K_USER, K_NO_WAIT); in ZTEST()
463 0, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in ZTEST()
472 0, K_USER, K_NO_WAIT); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/sched/schedule_api/src/
Duser_api.c37 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
72 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
83 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
126 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
167 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
208 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
249 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
291 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
335 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
376 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
/Zephyr-latest/tests/kernel/mem_protect/futex/src/
Dmain.c179 PRIO_WAIT, K_USER | K_INHERIT_PERMS, in ZTEST()
199 PRIO_WAIT, K_USER | K_INHERIT_PERMS, in ZTEST()
219 PRIO_WAIT, K_USER | K_INHERIT_PERMS, in ZTEST()
242 PRIO_WAIT, K_USER | K_INHERIT_PERMS, in ZTEST()
250 PRIO_WAKE, K_USER | K_INHERIT_PERMS, in ZTEST()
274 PRIO_WAIT, K_USER | K_INHERIT_PERMS, in ZTEST()
282 PRIO_WAKE, K_USER | K_INHERIT_PERMS, in ZTEST()
307 PRIO_WAIT, K_USER | K_INHERIT_PERMS, in ZTEST()
315 PRIO_WAKE, K_USER | K_INHERIT_PERMS, in ZTEST()
333 PRIO_WAIT, K_USER | K_INHERIT_PERMS, in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/timer/timer_error_case/src/
Dmain.c57 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
95 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
133 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
171 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
209 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
246 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
283 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
323 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
/Zephyr-latest/tests/kernel/mutex/mutex_api/src/
Dtest_mutex_apis.c73 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in tmutex_test_lock()
89 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in tmutex_test_lock_timeout()
286 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
331 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
345 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
361 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
371 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
387 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
397 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
404 K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
[all …]
/Zephyr-latest/arch/xtensa/core/
Dthread.c75 if ((thread->base.user_options & K_USER) == K_USER) { in init_stack()
100 frame->bsa.threadptr = (uintptr_t)((thread->base.user_options & K_USER) ? thread : NULL); in init_stack()
180 if ((thread->base.user_options & K_USER) != K_USER) { in arch_thread_priv_stack_space_get()
/Zephyr-latest/tests/benchmarks/footprints/src/
Duserspace.c80 0, K_INHERIT_PERMS | K_USER, K_FOREVER); in user_thread_creation()
97 -1, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in syscall_overhead()
113 -1 /*priority*/, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in validation_overhead()
/Zephyr-latest/tests/kernel/semaphore/sys_sem/src/
Dmain.c86 NULL, PRIO, K_USER | K_INHERIT_PERMS, in ZTEST_USER()
97 NULL, LOW_PRIO, K_USER | K_INHERIT_PERMS, in ZTEST_USER()
102 NULL, HIGH_PRIO, K_USER | K_INHERIT_PERMS, in ZTEST_USER()
122 NULL, PRIO, K_USER | K_INHERIT_PERMS, in ZTEST_USER()
182 i, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
191 PRIO, K_USER | K_INHERIT_PERMS, K_NO_WAIT); in ZTEST_USER()
/Zephyr-latest/tests/kernel/threads/thread_error_case/src/
Dmain.c69 perm = perm | K_USER; in tThread_entry_negative()
80 perm = perm | K_USER; in tThread_entry_negative()
91 perm = perm | K_USER; in tThread_entry_negative()
114 perm = perm | K_USER; in create_negative_test_thread()
/Zephyr-latest/samples/subsys/llext/edk/ext3/src/
Dmain.c46 sub_stack = k_thread_stack_alloc(STACKSIZE, K_USER); in start()
50 NULL, PRIORITY, K_INHERIT_PERMS | K_USER, K_NO_WAIT); in start()

12345