Skip to content

feat(ktrace): added ktrace-decode to turn a .ktrace recording into a SQLite database - #349

Merged
FlareCoding merged 4 commits into
masterfrom
pr/ktrace-decoder
Oct 8, 2026
Merged

FlareCoding merged 4 commits into
masterfrom
pr/ktrace-decoder

Conversation

@FlareCoding

Copy link
Copy Markdown
Owner

Summary

  • Reading a .ktrace file meant first writing a decoder for its binary layout, and each one-off decoder could misread what a record means.
  • ktrace-decode FILE -o DB runs on StelluxOS and writes a SQLite database: session, cpus and health tables, plus one table per event built from field lists in the format header. A compile-time check ties each list to its payload struct, so a new event needs no decoder change and the two cannot drift apart.
  • The format lives in kernel/trace/ktrace_format.h, which userland includes as <stlx/ktrace_format.h>, and SQLite 3.53.4 is vendored as libsqlite3.

@cursor

cursor Bot commented Oct 8, 2026

Copy link
Copy Markdown

This PR is too large for Bugbot to review. It changes 111,256 lines and 4,078,421 characters. Split the change into smaller pull requests to get a review.

@FlareCoding
FlareCoding merged commit 476ac37 into master Oct 8, 2026
9 checks passed
@FlareCoding
FlareCoding deleted the pr/ktrace-decoder branch October 8, 2026 20:36
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.

1 participant