zephyr/subsys/shell/modules/kernel_service/thread/CMakeLists.txt
S Swetha 8f647ef46b [shell]: Add thread control features through shell
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>
2025-02-04 11:56:22 +01:00

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)