Home
last modified time | relevance | path

Searched full:thread_id (Results 1 – 25 of 32) sorted by relevance

12

/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dthread.c66 void *is_cmsis_rtos_v2_thread(void *thread_id) in is_cmsis_rtos_v2_thread() argument
74 if ((void *)itr == thread_id) { in is_cmsis_rtos_v2_thread()
220 const char *osThreadGetName(osThreadId_t thread_id) in osThreadGetName() argument
224 if (k_is_in_isr() || (thread_id == NULL)) { in osThreadGetName()
227 if (is_cmsis_rtos_v2_thread(thread_id) == NULL) { in osThreadGetName()
231 (struct cv2_thread *)thread_id; in osThreadGetName()
253 osPriority_t osThreadGetPriority(osThreadId_t thread_id) in osThreadGetPriority() argument
255 struct cv2_thread *tid = (struct cv2_thread *)thread_id; in osThreadGetPriority()
271 osStatus_t osThreadSetPriority(osThreadId_t thread_id, osPriority_t priority) in osThreadSetPriority() argument
273 struct cv2_thread *tid = (struct cv2_thread *)thread_id; in osThreadSetPriority()
[all …]
Dthread_flags.c15 uint32_t osThreadFlagsSet(osThreadId_t thread_id, uint32_t flags) in osThreadFlagsSet() argument
18 struct cv2_thread *tid = (struct cv2_thread *)thread_id; in osThreadFlagsSet()
20 if ((thread_id == NULL) || (is_cmsis_rtos_v2_thread(thread_id) == NULL) in osThreadFlagsSet()
Dwrapper.h74 extern void *is_cmsis_rtos_v2_thread(void *thread_id);
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/
Dcmsis_thread.c152 osPriority osThreadGetPriority(osThreadId thread_id) in osThreadGetPriority() argument
154 k_tid_t thread = (k_tid_t)thread_id; in osThreadGetPriority()
157 if ((thread_id == NULL) || (k_is_in_isr())) { in osThreadGetPriority()
168 osStatus osThreadSetPriority(osThreadId thread_id, osPriority priority) in osThreadSetPriority() argument
170 if (thread_id == NULL) { in osThreadSetPriority()
182 if (_is_thread_cmsis_inactive((k_tid_t)thread_id)) { in osThreadSetPriority()
186 k_thread_priority_set((k_tid_t)thread_id, in osThreadSetPriority()
195 osStatus osThreadTerminate(osThreadId thread_id) in osThreadTerminate() argument
197 if (thread_id == NULL) { in osThreadTerminate()
205 if (_is_thread_cmsis_inactive((k_tid_t)thread_id)) { in osThreadTerminate()
[all …]
Dcmsis_signal.c12 void *k_thread_other_custom_data_get(struct k_thread *thread_id) in k_thread_other_custom_data_get() argument
14 return thread_id->custom_data; in k_thread_other_custom_data_get()
20 int32_t osSignalSet(osThreadId thread_id, int32_t signals) in osSignalSet() argument
24 if ((thread_id == NULL) || (!signals) || in osSignalSet()
31 (struct k_thread *)thread_id); in osSignalSet()
46 int32_t osSignalClear(osThreadId thread_id, int32_t signals) in osSignalClear() argument
50 if (k_is_in_isr() || (thread_id == NULL) || (!signals) || in osSignalClear()
57 (struct k_thread *)thread_id); in osSignalClear()
Dcmsis_msgq.c14 osThreadId thread_id) in osMessageCreate() argument
/Zephyr-latest/subsys/tracing/ctf/
Dctf_top.h195 static inline void ctf_top_thread_switched_out(uint32_t thread_id, in ctf_top_thread_switched_out() argument
199 thread_id, name); in ctf_top_thread_switched_out()
202 static inline void ctf_top_thread_switched_in(uint32_t thread_id, in ctf_top_thread_switched_in() argument
205 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_THREAD_SWITCHED_IN), thread_id, in ctf_top_thread_switched_in()
209 static inline void ctf_top_thread_priority_set(uint32_t thread_id, int8_t prio, in ctf_top_thread_priority_set() argument
213 thread_id, name, prio); in ctf_top_thread_priority_set()
216 static inline void ctf_top_thread_create(uint32_t thread_id, int8_t prio, in ctf_top_thread_create() argument
219 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_THREAD_CREATE), thread_id, in ctf_top_thread_create()
223 static inline void ctf_top_thread_abort(uint32_t thread_id, in ctf_top_thread_abort() argument
226 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_THREAD_ABORT), thread_id, in ctf_top_thread_abort()
[all …]
/Zephyr-latest/tests/kernel/sched/wraparound/src/
Dmain.c9 static k_tid_t thread_id; variable
13 k_wakeup(thread_id); in alarm_callback()
30 thread_id = k_current_get(); in ZTEST()
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/
Dsignal.c39 void test_multiple_signal_flags(void const *thread_id) in test_multiple_signal_flags() argument
48 signals = osSignalSet((osThreadId)thread_id, signal_each_flag); in test_multiple_signal_flags()
53 signals = osSignalClear((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags()
57 signals = osSignalSet((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags()
61 signals = osSignalClear((osThreadId)thread_id, SIGNAL_ALL_FLAGS); in test_multiple_signal_flags()
65 signals = osSignalSet((osThreadId)thread_id, SIGNAL_OUTOFLIMIT_FLAG); in test_multiple_signal_flags()
176 void test_signal_from_isr(void const *thread_id) in test_signal_from_isr() argument
179 irq_offload(offload_function, (const void *)thread_id); in test_signal_from_isr()
/Zephyr-latest/tests/benchmarks/thread_metric/src/
Dtm_porting_layer_zephyr.c64 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void *, void *, void *)) in tm_thread_create() argument
68 tid = k_thread_create(&test_thread[thread_id], test_stack[thread_id], in tm_thread_create()
74 k_thread_suspend(&test_thread[thread_id]); in tm_thread_create()
75 k_wakeup(&test_thread[thread_id]); in tm_thread_create()
77 return (tid == &test_thread[thread_id]) ? TM_SUCCESS : TM_ERROR; in tm_thread_create()
84 int tm_thread_resume(int thread_id) in tm_thread_resume() argument
86 k_thread_resume(&test_thread[thread_id]); in tm_thread_resume()
95 int tm_thread_suspend(int thread_id) in tm_thread_suspend() argument
97 k_thread_suspend(&test_thread[thread_id]); in tm_thread_suspend()
Dtm_api.h80 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void *, void *, void *));
81 int tm_thread_resume(int thread_id);
82 int tm_thread_suspend(int thread_id);
/Zephyr-latest/scripts/tracing/
Dparse_ctf.py83 thread_id = event.payload_field.get("thread_id", None)
94 elif thread_id:
95 print(f"{dt} (+{diff_s:.6f} s): {event.name}: {thread_id} {cpu_string}")
105 th = get_thread(thread_id)
107 th['name'] = thread_id
/Zephyr-latest/subsys/tracing/ctf/tsdl/
Dmetadata29 uint32_t thread_id;
38 uint32_t thread_id;
47 uint32_t thread_id;
58 uint32_t thread_id;
67 uint32_t thread_id;
76 uint32_t thread_id;
85 uint32_t thread_id;
93 uint32_t thread_id;
102 uint32_t thread_id;
111 uint32_t thread_id;
[all …]
/Zephyr-latest/tests/lib/multi_heap/src/
Dtest_mheap_concept.c56 int thread_id = POINTER_TO_INT(p1); in tmheap_handler() local
58 pool_blocks[thread_id] = k_malloc(BLOCK_SIZE); in tmheap_handler()
60 zassert_not_null(pool_blocks[thread_id], "memory is not allocated"); in tmheap_handler()
/Zephyr-latest/include/zephyr/portability/
Dcmsis_os2.h371 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */
373 const char *osThreadGetName(osThreadId_t thread_id);
380 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */
382 osThreadState_t osThreadGetState(osThreadId_t thread_id);
385 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */
387 uint32_t osThreadGetStackSize(osThreadId_t thread_id);
390 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */
392 uint32_t osThreadGetStackSpace(osThreadId_t thread_id);
395 /* / \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. */
398 osStatus_t osThreadSetPriority(osThreadId_t thread_id, osPriority_t priority);
[all …]
Dcmsis_os.h321 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId.
324 osStatus osThreadTerminate (osThreadId thread_id);
332 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId.
336 osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority);
339 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId.
342 osPriority osThreadGetPriority (osThreadId thread_id);
416 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId.
420 int32_t osSignalSet (osThreadId thread_id, int32_t signals);
423 /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId.
427 int32_t osSignalClear (osThreadId thread_id, int32_t signals);
[all …]
/Zephyr-latest/tests/benchmarks/thread_metric/
Dthread_metric_readme.txt144 int tm_thread_create(int thread_id, int priority, void (*entry_function)(void));
151 int tm_thread_resume(int thread_id);
154 thread_id. If successful, a TM_SUCCESS is returned.
156 int tm_thread_suspend(int thread_id);
159 thread_id. If successful, a TM_SUCCESS is returned.
/Zephyr-latest/tests/subsys/logging/log_output/
Dtestcase.yaml54 logging.output.thread_id:
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/
Dthread_apis.c41 osThreadId_t thread_id; in thread1() local
45 thread_id = osThreadGetId(); in thread1()
46 zassert_true(thread_id != NULL, "Failed getting Thread ID"); in thread1()
48 name = osThreadGetName(thread_id); in thread1()
/Zephyr-latest/samples/subsys/edac/src/
Dmain.c63 K_THREAD_DEFINE(thread_id, STACKSIZE, thread_function, NULL, NULL, NULL,
/Zephyr-latest/scripts/coredump/gdbstubs/
Dgdbstub.py238 thread_id = int(thread_index_str, 16)
239 if len(self.thread_ptrs) > thread_id:
241 thread_ptr = self.thread_ptrs[thread_id - 1]
/Zephyr-latest/doc/services/portability/
Dcmsis_rtos_v2.rst80 thread_id is not active to receive flags) are not supported.
/Zephyr-latest/doc/services/tracing/
Dindex.rst88 static inline void ctf_top_foo(uint32_t thread_id, ctf_bounded_string_t name)
92 thread_id,
603 ``emit(a,thread_id); emit(b,thread_id); emit(c,thread_id);``
615 ``emit(a ## b ## c, thread_id);``
/Zephyr-latest/tests/kernel/smp/src/
Dmain.c628 * into a variable thread_id.
629 * -# Spawn a thread t2, and pass the stored thread_id to it, then call
654 k_tid_t thread_id; in ZTEST() local
667 thread_id = k_thread_create(&t2, t2_stack, T2_STACK_SIZE, in ZTEST()
675 k_thread_abort(thread_id); in ZTEST()
676 k_thread_join(thread_id, K_FOREVER); in ZTEST()
/Zephyr-latest/include/zephyr/sys/internal/
Dkobject_internal.h37 unsigned int thread_id; member

12