Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 115) sorted by relevance

12345

/subsys/shell/modules/kernel_service/thread/
A Dmask.c16 struct k_thread *thread; in cmd_kernel_thread_mask_clear() local
24 if (!z_thread_is_valid(thread)) { in cmd_kernel_thread_mask_clear()
33 shell_print(sh, "%p %s cpu_mask: 0x%x", (void *)thread, thread->name, in cmd_kernel_thread_mask_clear()
34 thread->base.cpu_mask); in cmd_kernel_thread_mask_clear()
45 struct k_thread *thread; in cmd_kernel_thread_mask_enable_all() local
62 shell_print(sh, "%p %s cpu_mask: 0x%x", (void *)thread, thread->name, in cmd_kernel_thread_mask_enable_all()
63 thread->base.cpu_mask); in cmd_kernel_thread_mask_enable_all()
74 struct k_thread *thread; in cmd_kernel_thread_mask_enable() local
97 shell_print(sh, "%p %s cpu_mask: 0x%x", (void *)thread, thread->name, in cmd_kernel_thread_mask_enable()
109 struct k_thread *thread; in cmd_kernel_thread_mask_disable() local
[all …]
A Dlist.c21 if (k_thread_runtime_stats_get(thread, &rt_stats_thread) != 0) { in rt_stats_dump()
64 struct k_thread *thread = (struct k_thread *)cthread; in shell_tdata_dump() local
68 size_t size = thread->stack_info.size; in shell_tdata_dump()
73 tname = k_thread_name_get(thread); in shell_tdata_dump()
76 (thread == k_current_get()) ? "*" : " ", in shell_tdata_dump()
77 thread, in shell_tdata_dump()
81 thread->base.user_options, in shell_tdata_dump()
82 thread->base.prio, in shell_tdata_dump()
83 (int64_t)thread->base.timeout.dticks); in shell_tdata_dump()
86 thread->entry.pEntry); in shell_tdata_dump()
[all …]
A Dpin.c17 struct k_thread *thread; in cmd_kernel_thread_pin() local
19 thread = UINT_TO_POINTER(shell_strtoull(argv[1], 16, &err)); in cmd_kernel_thread_pin()
25 if (!z_thread_is_valid(thread)) { in cmd_kernel_thread_pin()
26 shell_error(sh, "Invalid thread id %p", (void *)thread); in cmd_kernel_thread_pin()
36 shell_print(sh, "Pinning %p %s to CPU %d", (void *)thread, thread->name, cpu); in cmd_kernel_thread_pin()
37 err = k_thread_cpu_pin(thread, cpu); in cmd_kernel_thread_pin()
41 shell_print(sh, "%p %s cpu_mask: 0x%x", (void *)thread, thread->name, in cmd_kernel_thread_pin()
42 thread->base.cpu_mask); in cmd_kernel_thread_pin()
A Dunwind.c29 struct k_thread *thread; in cmd_kernel_thread_unwind() local
33 thread = _current; in cmd_kernel_thread_unwind()
35 thread = UINT_TO_POINTER(shell_strtoull(argv[1], 16, &err)); in cmd_kernel_thread_unwind()
41 if (!z_thread_is_valid(thread)) { in cmd_kernel_thread_unwind()
42 shell_error(sh, "Invalid thread id %p", (void *)thread); in cmd_kernel_thread_unwind()
46 shell_print(sh, "Unwinding %p %s", (void *)thread, thread->name); in cmd_kernel_thread_unwind()
48 arch_stack_walk(print_trace_address, (void *)sh, thread, NULL); in cmd_kernel_thread_unwind()
A Dthread.c16 const struct k_thread *const thread; member
24 if (cthread == entry->thread) { in thread_valid_cb()
29 bool z_thread_is_valid(const struct k_thread *thread) in z_thread_is_valid() argument
32 .thread = thread, in z_thread_is_valid()
41 SHELL_SUBCMD_SET_CREATE(sub_kernel_thread, (thread));
42 KERNEL_CMD_ADD(thread, &sub_kernel_thread, "Kernel threads.", NULL);
A Dstacks.c22 static void shell_stack_dump(const struct k_thread *thread, void *user_data) in shell_stack_dump() argument
27 size_t size = thread->stack_info.size; in shell_stack_dump()
31 ret = k_thread_stack_space_get(thread, &unused); in shell_stack_dump()
39 tname = k_thread_name_get((struct k_thread *)thread); in shell_stack_dump()
47 thread, tname ? tname : "NA", size, unused, size - unused, size, pcnt); in shell_stack_dump()
/subsys/tracing/sysview/
A Dsysview_config.c33 thread, &thread->entry); in set_thread_name()
41 set_thread_name(name, thread); in sys_trace_thread_info()
45 Info.TaskID = (uint32_t)(uintptr_t)thread; in sys_trace_thread_info()
47 Info.Prio = thread->base.prio; in sys_trace_thread_info()
48 Info.StackBase = thread->stack_info.size; in sys_trace_thread_info()
81 struct k_thread *thread; in send_task_list_cb() local
83 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in send_task_list_cb()
86 if (z_is_idle_thread_object(thread)) { in send_task_list_cb()
90 set_thread_name(name, thread); in send_task_list_cb()
95 .StackSize = thread->stack_info.size, in send_task_list_cb()
[all …]
A Dtracing_sysview.h19 void sys_trace_thread_info(struct k_thread *thread);
40 #define sys_port_trace_k_thread_heap_assign(thread, heap) argument
44 #define sys_port_trace_k_thread_join_blocking(thread, timeout) argument
102 #define sys_port_trace_k_thread_name_set(thread, ret) do { \ argument
104 sys_trace_thread_info(thread); \
111 #define sys_port_trace_k_thread_info(thread) sys_trace_k_thread_info(thread) argument
121 SEGGER_SYSVIEW_ShrinkId((uint32_t)thread), prio);
129 #define sys_port_trace_k_thread_sched_resume(thread) argument
671 void sys_trace_k_thread_ready(struct k_thread *thread);
672 void sys_trace_k_thread_pend(struct k_thread *thread);
[all …]
/subsys/tracing/test/
A Dtracing_string_format_test.c16 struct k_thread *thread; in sys_trace_k_thread_switched_out() local
18 thread = k_current_get(); in sys_trace_k_thread_switched_out()
19 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_switched_out()
24 struct k_thread *thread; in sys_trace_k_thread_switched_in() local
26 thread = k_current_get(); in sys_trace_k_thread_switched_in()
27 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_switched_in()
32 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_priority_set()
38 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_create()
43 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_start()
48 TRACING_STRING("%s: %p\n", __func__, thread); in sys_trace_k_thread_abort()
[all …]
A Dtracing_test.h38 #define sys_port_trace_k_thread_wakeup(thread) sys_trace_k_thread_wakeup(thread) argument
39 #define sys_port_trace_k_thread_start(thread) sys_trace_k_thread_start(thread) argument
40 #define sys_port_trace_k_thread_abort(thread) sys_trace_k_thread_abort(thread) argument
41 #define sys_port_trace_k_thread_priority_set(thread) sys_trace_k_thread_priority_set(thread) argument
42 #define sys_port_trace_k_thread_suspend_enter(thread) sys_trace_k_thread_suspend(thread) argument
44 #define sys_port_trace_k_thread_resume_enter(thread) sys_trace_k_thread_resume(thread) argument
56 #define sys_port_trace_k_thread_info(thread) sys_trace_k_thread_info(thread) argument
58 #define sys_port_trace_k_thread_sched_wakeup(thread) sys_trace_k_thread_sched_wakeup(thread) argument
59 #define sys_port_trace_k_thread_sched_abort(thread) sys_trace_k_thread_sched_abort(thread) argument
62 #define sys_port_trace_k_thread_sched_ready(thread) sys_trace_k_thread_sched_ready(thread) argument
[all …]
/subsys/debug/thread_analyzer/
A DKconfig21 module-str = thread analyzer
32 Use logger output to print thread information.
56 The thread analysis takes quite a long time.
72 bool "Run periodic thread analysis in a thread"
81 bool "Run thread analyzer separately on each core"
85 Run the thread analyzer auto thread on each core and report
97 int "Stack size for the periodic thread analysis thread"
102 bool "Override default thread analysis thread priority"
104 Option to change the default value of thread analysis thread priority.
108 int "Thread analysis thread priority"
[all …]
/subsys/sensing/
A DKconfig48 int "stack size for sensing subsystem runtime thread"
52 This is the stack size for sensing subsystem runtime thread
56 int "priority for sensing subsystem runtime thread"
60 This is the thread priority for sensor subsystem runtime thread
62 to notify dispatch thread, runtime thread priority should lower than
63 dispatch thread priority to ensure dispatch thread could fetch data as
71 int "stack size for sensor dispatch thread"
75 This is the stack size for sensor dispatch thread
79 int "priority for sensor dispatch thread"
83 This is the thread priority for sensing subsystem dispatch thread
[all …]
/subsys/tracing/user/
A Dtracing_user.c81 sys_trace_thread_create_user(thread); in sys_trace_thread_create()
86 sys_trace_thread_abort_user(thread); in sys_trace_thread_abort()
91 sys_trace_thread_suspend_user(thread); in sys_trace_thread_suspend()
96 sys_trace_thread_resume_user(thread); in sys_trace_thread_resume()
101 sys_trace_thread_name_set_user(thread); in sys_trace_thread_name_set()
114 void sys_trace_thread_info(struct k_thread *thread) in sys_trace_thread_info() argument
116 sys_trace_thread_info_user(thread); in sys_trace_thread_info()
121 sys_trace_thread_priority_set_user(thread, prio); in sys_trace_thread_sched_priority_set()
126 sys_trace_thread_sched_ready_user(thread); in sys_trace_thread_sched_ready()
129 void sys_trace_thread_pend(struct k_thread *thread) in sys_trace_thread_pend() argument
[all …]
A Dtracing_user.h42 void sys_trace_thread_info(struct k_thread *thread);
45 void sys_trace_thread_pend(struct k_thread *thread);
120 #define sys_port_trace_k_thread_wakeup(thread) argument
121 #define sys_port_trace_k_thread_start(thread) argument
122 #define sys_port_trace_k_thread_abort(thread) sys_trace_thread_abort(thread) argument
123 #define sys_port_trace_k_thread_suspend_enter(thread) sys_trace_thread_suspend(thread) argument
125 #define sys_port_trace_k_thread_resume_enter(thread) sys_trace_thread_resume(thread) argument
128 #define sys_port_trace_k_thread_name_set(thread, ret) sys_trace_thread_name_set(thread) argument
131 #define sys_port_trace_k_thread_info(thread) sys_trace_thread_info(thread) argument
137 #define sys_port_trace_k_thread_sched_ready(thread) sys_trace_thread_sched_ready(thread) argument
[all …]
/subsys/debug/coredump/
A Dcoredump_core.c55 ARG_UNUSED(thread); in arch_coredump_priv_stack_dump()
88 *start = thread->stack_info.start; in select_stack_region()
89 *end = thread->stack_info.start + thread->stack_info.size; in select_stack_region()
95 sp = arch_coredump_stack_ptr_get(thread); in select_stack_region()
117 if (thread == NULL) { in dump_thread()
121 start_addr = POINTER_TO_UINT(thread); in dump_thread()
122 end_addr = start_addr + sizeof(*thread); in dump_thread()
130 arch_coredump_priv_stack_dump(thread); in dump_thread()
203 struct k_thread *thread) in coredump() argument
217 if (thread != NULL) { in coredump()
[all …]
/subsys/net/lib/latmon/
A DKconfig20 int "Stack size for the network transfer thread"
23 Specify the stack size for the network transfer thread used in latency monitoring.
26 int "Priority for the network transfer thread"
32 int "Stack size for the Latmon thread"
35 Specify the stack size for the Latmon thread used in latency monitoring.
38 int "Priority for the Latmon thread"
41 Specify the priority for the Latmon thread used in latency monitoring.
44 int "Stack size for the monitor thread"
47 Specify the stack size for the monitor thread used in latency monitoring.
50 int "Priority for the monitor thread"
[all …]
/subsys/tracing/ctf/
A Dctf_top.c33 struct k_thread *thread; in sys_trace_k_thread_switched_out() local
36 _get_thread_name(thread, &name); in sys_trace_k_thread_switched_out()
43 struct k_thread *thread; in sys_trace_k_thread_user_mode_enter() local
62 struct k_thread *thread; in sys_trace_k_thread_switched_in() local
101 (uint32_t)(uintptr_t)thread, in sys_trace_k_thread_create()
102 thread->base.prio, in sys_trace_k_thread_create()
108 (uint32_t)(uintptr_t)thread, in sys_trace_k_thread_create()
110 thread->stack_info.start, in sys_trace_k_thread_create()
111 thread->stack_info.size in sys_trace_k_thread_create()
172 thread->stack_info.start, in sys_trace_k_thread_info()
[all …]
A Dtracing_ctf.h47 #define sys_port_trace_k_thread_wakeup(thread) sys_trace_k_thread_wakeup(thread) argument
48 #define sys_port_trace_k_thread_start(thread) sys_trace_k_thread_start(thread) argument
49 #define sys_port_trace_k_thread_abort(thread) sys_trace_k_thread_abort(thread) argument
51 sys_trace_k_thread_suspend(thread)
52 #define sys_port_trace_k_thread_suspend_exit(thread) argument
54 sys_trace_k_thread_resume(thread)
61 sys_trace_k_thread_name_set(thread, ret)
67 #define sys_port_trace_k_thread_info(thread) sys_trace_k_thread_info(thread) argument
70 #define sys_port_trace_k_thread_sched_abort(thread) argument
72 #define sys_port_trace_k_thread_sched_ready(thread) argument
[all …]
/subsys/logging/
A DKconfig.processing25 bool "Block in thread context on full"
32 int "Maximum time (in milliseconds) thread can be blocked"
40 logging (e.g. logger or shell thread).
50 this threshold is used by the internal thread.
53 bool "Use internal thread for log processing"
65 int "Set log processing thread startup delay"
72 int "Set internal log processing thread sleep period"
107 bool "Custom log thread priority"
109 Set a custom value for the log processing thread.
112 int "Priority of the log processing thread"
[all …]
/subsys/net/ip/
A DKconfig.stack9 int "TX thread stack size"
12 Set the TX thread stack size in bytes. The TX thread is waiting
14 TX thread for sending network packets destined to it.
19 int "RX thread stack size"
23 Set the RX thread stack size in bytes. The RX thread is waiting
24 data from network. There is one RX thread in the system.
/subsys/usb/device_next/class/
A DKconfig.bt14 int "TX thread priority"
17 Bluetooth HCI USB Transport Layer TX thread priority.
20 int "TX thread stack size"
23 Bluetooth HCI USB Transport Layer TX thread stack size.
26 int "RX thread priority"
29 Bluetooth HCI USB Transport Layer RX thread priority.
/subsys/portability/cmsis_rtos_v2/
A Dthread.c42 static inline int _is_thread_cmsis_inactive(struct k_thread *thread) in _is_thread_cmsis_inactive() argument
44 uint8_t state = thread->base.thread_state; in _is_thread_cmsis_inactive()
503 struct k_thread *thread; in osThreadGetCount() local
507 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in osThreadGetCount()
508 if (get_cmsis_thread_id(thread) && z_is_thread_queued(thread)) { in osThreadGetCount()
521 struct k_thread *thread; in osThreadEnumerate() local
529 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in osThreadEnumerate()
534 tid = get_cmsis_thread_id(thread); in osThreadEnumerate()
/subsys/portability/cmsis_rtos_v1/
A Dcmsis_thread.c13 static inline int _is_thread_cmsis_inactive(struct k_thread *thread) in _is_thread_cmsis_inactive() argument
15 uint8_t state = thread->base.thread_state; in _is_thread_cmsis_inactive()
42 void thread_abort_hook(struct k_thread *thread) in thread_abort_hook() argument
46 osThreadDef_t *thread_def = (osThreadDef_t *)(thread->custom_data); in thread_abort_hook()
55 (void)arch_page_phys_get((void *)thread->stack_info.start, &stack_start); in thread_abort_hook()
57 stack_start = thread->stack_info.start; in thread_abort_hook()
154 k_tid_t thread = (k_tid_t)thread_id; in osThreadGetPriority() local
161 priority = k_thread_priority_get(thread); in osThreadGetPriority()
/subsys/input/
A DKconfig32 bool "Process input events in a dedicated thread"
36 processed asynchronously in a dedicated thread.
43 bool "Override default input thread priority"
45 Option to change the default value of input thread priority.
49 int "Input thread priority"
52 Set thread priority of the input
62 int "Input thread stack size"
65 Stack size for the thread processing the input events, must have
/subsys/mgmt/mcumgr/transport/src/
A Dsmp_udp.c55 struct k_thread thread; member
269 k_thread_join(&smp_udp_configs.ipv4.thread, K_NO_WAIT) == -EBUSY) { in smp_udp_open_iface()
295 k_thread_create(&(conf->thread), conf->stack, in create_thread()
300 k_thread_name_set(&(conf->thread), name); in create_thread()
301 k_thread_start(&(conf->thread)); in create_thread()
309 if (k_thread_join(&smp_udp_configs.ipv4.thread, K_NO_WAIT) == 0 || in smp_udp_open()
320 if (k_thread_join(&smp_udp_configs.ipv6.thread, K_NO_WAIT) == 0 || in smp_udp_open()
342 if (k_thread_join(&smp_udp_configs.ipv4.thread, K_NO_WAIT) == -EBUSY) { in smp_udp_close()
343 k_thread_abort(&(smp_udp_configs.ipv4.thread)); in smp_udp_close()
355 if (k_thread_join(&smp_udp_configs.ipv6.thread, K_NO_WAIT) == -EBUSY) { in smp_udp_close()
[all …]

Completed in 118 milliseconds

12345