This commit extends the shell command functionality by adding three new operations for thread management. kernel thread suspend <thread_id>: Suspends any thread based on its identifier. kernel thread resume <thread_id>: Resumes the thread that was previously suspended. kernel thread kill <thread_id>: Terminates any thread based on its identifier These extended commands are useful for controlling any threads through Zephyr Shell. Signed-off-by: S Swetha <s.swetha@intel.com>
25 lines
708 B
CMake
25 lines
708 B
CMake
# Copyright (c) 2024 Meta Platforms
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_include_directories(../)
|
|
|
|
# Main command
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL thread.c)
|
|
|
|
# Subcommands
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL_LIST list.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL_MASK mask.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL_MASK pin.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL_STACKS stacks.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL_UNWIND unwind.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL_SUSPEND suspend.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL_RESUME resume.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_KERNEL_THREAD_SHELL_KILL kill.c)
|