wip: shell support for debug and agentic use. [for agentic review] - #11041
Draft
lgirdwood wants to merge 10 commits into
Draft
wip: shell support for debug and agentic use. [for agentic review]#11041lgirdwood wants to merge 10 commits into
lgirdwood wants to merge 10 commits into
Conversation
…l architecture Introduce the modular SOF Zephyr shell framework under CONFIG_SOF_SHELL. Split implementation into supervisor (kernel.c) and user-mode (user.c) command handlers, connected via system call wrappers in sof_shell_syscall.h. Annotate shell commands with __cold to optimize SRAM usage, and add QEMU test support.
Implement cycle-accurate IPC message tracking (ipc_stats) and last-message header snapshots (ipc_last). Record RX/TX statistics across IPC3 and IPC4 platform handlers, and route statistics accessors through Zephyr system calls for user-mode shell commands.
Add Virtual Page (vpage) and Virtual Region (vregion) tracking structures and APIs. Allows the 'sof vpage_status' and 'sof vregion_status' shell commands to inspect virtual memory allocation, free lists, and reference counts.
Implement scheduler_dump_tasks callbacks across LL timer, LL DMA, DP, and TWB scheduler domains. Exposes task list state, priority, and execution cycles for the 'sof sched_tasks' and 'sof sched_load' shell commands.
…LEXT modules Add virtual memory address (VMA) page-level allocation using sys_bitarray over the library region. Support relocatable LLEXT linking, SLID symbol linking, unsigned LLEXT modules, and interactive LLEXT shell management (llext_load, llext_list, llext_purge).
…oling Enable mirroring of shell output over probe extraction DMA streams. Add python helper scripts for probe framing, packet decoding, bridge adapters, shell command validation, and GDB debugging, alongside documentation in SHELL.md and GDB.md.
…command execution
…f pipeline and sof module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP upgrades for developer and agentic shell usage.