Add Intel PT AUX trace range support - #386
Draft
namtran1812 wants to merge 1 commit into
Draft
Conversation
Signed-off-by: namtran1812 <158846154+namtran1812@users.noreply.github.com>
namtran1812
force-pushed
the
feature/perf-aux-action
branch
from
August 14, 2026 21:23
b268390 to
95bb6c6
Compare
Author
|
Draft for validation: DCO is passing, but the Linux build workflow is currently blocked before any jobs are created, so I haven't received a compile/test result yet. I'll keep this in draft until CI and Intel PT validation are complete. |
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.
Summary
Add record-time Intel PT range gating using perf AUX actions.
This introduces
-aux-range "(START STOP)", which resolves the selected symbols to runtime addresses and configures perf so that:The control events are emitted in the same perf event group as the Intel PT source.
Motivation
magic-trace currently relies on userspace snapshot/control paths for trigger-based workflows. perf's AUX pause/resume support allows tracing to be gated directly by perf events, avoiding unnecessary trace collection outside the selected region.
Implementation
start-paused,resume,pause)runandattachValidation
dune build @fmtpasses locallygit diff --checkpasses locallyOpening as draft to validate the full Linux build/test suite before marking ready.