summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2026-04-20 21:21:51 -0400
committerSasha Levin <sashal@kernel.org>2026-10-07 18:26:44 -0400
commitfe1d9958459e22cb4860abf92fa7c70bffc5fef4 (patch)
tree3280b1953ee56e77acbae5fe539297c5ede289b9 /tools/perf/scripts/python/stackcollapse.py
parent89224dc705016dd40cce6c924148e31f0a0dbbb0 (diff)
downloadlinux-next-fe1d9958459e22cb4860abf92fa7c70bffc5fef4.tar.gz
linux-next-fe1d9958459e22cb4860abf92fa7c70bffc5fef4.zip
tools/kapi: add kernel API specification extraction tool
The kapi tool extracts and renders kernel API specifications from three input sources and emits them in one of three output formats: Input modes: --source PATH parse kerneldoc blocks from a C source file or directory --vmlinux PATH decode the `.kapi_specs` ELF section from a compiled kernel binary --debugfs PATH read the spec dumps exposed under /sys/kernel/debug/kapi/ on a running kernel Output formats: plain, json, rst The tool is written in Rust and builds with cargo from the crates pinned in Cargo.lock; the resulting binary has no runtime dependencies. It ships alongside the kernel to give documentation tools, static analyzers, and IDE integrations a single entry point for querying the spec data produced by the framework. Assisted-by: LLM Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions