1# Kernel thread configuration options
2
3# Copyright (c) 2024 Meta Platforms
4# SPDX-License-Identifier: Apache-2.0
5
6config KERNEL_THREAD_SHELL
7	bool
8	depends on THREAD_MONITOR
9	help
10	  Internal helper macro to determine if the main `thread` command
11	  should be compiled.
12
13config KERNEL_THREAD_SHELL_LIST
14	bool
15	default y
16	depends on INIT_STACKS
17	depends on THREAD_MONITOR
18	depends on THREAD_STACK_INFO
19	select KERNEL_THREAD_SHELL
20	help
21	  Internal helper macro to compile the `list` subcommand
22
23config KERNEL_THREAD_SHELL_STACKS
24	bool
25	default y
26	depends on INIT_STACKS
27	depends on THREAD_MONITOR
28	depends on THREAD_STACK_INFO
29	select KERNEL_THREAD_SHELL
30	help
31	  Internal helper macro to compile the `stacks` subcommand
32
33config KERNEL_THREAD_SHELL_MASK
34	bool
35	default y
36	depends on SCHED_CPU_MASK
37	select KERNEL_THREAD_SHELL
38	help
39	  Internal helper macro to compile the `mask` subcommand
40
41config KERNEL_THREAD_SHELL_PIN
42	bool
43	default y
44	depends on SCHED_CPU_MASK
45	select KERNEL_THREAD_SHELL
46	help
47	  Internal helper macro to compile the `pin` subcommand
48
49config KERNEL_THREAD_SHELL_UNWIND
50	bool
51	default y
52	depends on ARCH_STACKWALK
53	select KERNEL_THREAD_SHELL
54	help
55	  Internal helper macro to compile the `unwind` subcommand
56
57config KERNEL_THREAD_SHELL_SUSPEND
58	bool
59	default y
60	depends on THREAD_MONITOR
61	select KERNEL_THREAD_SHELL
62	help
63	  Internal helper macro to compile the 'suspend' subcommand
64
65config KERNEL_THREAD_SHELL_RESUME
66	bool
67	default y
68	depends on THREAD_MONITOR
69	select KERNEL_THREAD_SHELL
70	help
71	  Internal helper macro to compile the 'resume' subcommand
72
73config KERNEL_THREAD_SHELL_KILL
74	bool
75	default y
76	depends on THREAD_MONITOR
77	select KERNEL_THREAD_SHELL
78	help
79	  Internal helper macro to compile the 'kill' subcommad
80