feat(datasource):通过Python暴露文本Ftrace解码能力 - #239
Merged
Merged
Conversation
This was referenced Aug 31, 2026
qiqingzhixin
force-pushed
the
codex/issue-230-ftrace-converter-pr
branch
2 times, most recently
from
September 1, 2026 08:48
882d0f5 to
a0e65e0
Compare
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.
问题
PR #232 同时包含文本 ftrace 转换内核与 PACK Provider,超过仓库可 review 门禁。本 PR 先独立交付来源解码能力,使解析、类型合同、Parquet 发布和 Python 调用边界能够单独验收。
最小切片
kat/platform/datasourceRust crate,不再新增独立二进制或 wheel。kat-datasource原生 wheel 暴露kat_datasource.text_ftrace.decode(source, destination, clock_domain)。sched_switch、sched_wakeup、sched_wakeup_new、tracing_mark_write。kat_datasource.text_ftrace.DecodeError。非目标
验证
cargo +stable test --locked -p kat-datasource:通过,文本 ftrace 转换合同 7 passed。cargo +stable clippy --locked -p kat-datasource --all-targets -- -D warnings:通过。PYO3_PYTHON=D:\\soft\\Python310\\python.exe cargo +stable clippy --locked -p kat-datasource --features python-extension --all-targets -- -D warnings:通过。cargo +stable fmt --all -- --check:通过。test_text_ftrace_api.py:4 passed;实际生成 4 张类型化 Parquet 关系。build/tests/test_wheel_artifacts.py:10 passed。build/tests/test_payload_ci_workflows.py:11 passed。git diff --check:通过。仓库锁定的 Rust 1.95.0 当前镜像返回 404;本地验证使用已安装的 stable,未修改
rust-toolchain.toml。正式 CPython 3.14 Windows/Linux wheel 由 PR payload CI 验证。Closes #230
Refs #219
Split from #232