Skip to content

wip: shell support for debug and agentic use. [for agentic review] - #11041

Draft
lgirdwood wants to merge 10 commits into
thesofproject:mainfrom
lgirdwood:upstream/shell-series
Draft

wip: shell support for debug and agentic use. [for agentic review]#11041
lgirdwood wants to merge 10 commits into
thesofproject:mainfrom
lgirdwood:upstream/shell-series

Conversation

@lgirdwood

Copy link
Copy Markdown
Member

WIP upgrades for developer and agentic shell usage.

lrgirdwo added 10 commits July 26, 2026 09:27
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants