boot_trace: summarize XMem allocation attribute observations #2244
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2244
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/boot-trace-xmem-attr-samples"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: BOOT-TRACE-XMEM-ATTR-SAMPLES
What and why
The runtime emits
xmem_attributeswhen it observes allocation parameters. Keep a bounded, validated sample of the API, attribute mask, allocation size and caller in the local report. Counts-only output exposes the total observation count. The synthetic test covers both the sample limit and malformed fields.Tested
Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.
python -I tests/test_boot_trace.pygit diff --checkand the changed-path no-game-data scan passed.GPUs tested: N/A (synthetic CPU tests).
AI-assisted: Yes.
Checklist
Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.
tests/test_boot_trace.py: 35 passed, 19 subtests passed (main: 34 passed).(AI-assisted test run; output checked by hand.)
Approving 51b442862.
XMem attribute observations are collected alongside the physical-page ones (size instead of pages) and summarized with a count and the first few.
Merged onto
maind1dff7949in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13.tests/test_boot_trace.py: 37 passed with #2246 and #2245 merged too (main: 34). AI-assisted (Claude Code, Claude Opus 5.5).Red/green: tests/test_boot_trace.py fails on main (KeyError: 'xmem_attributes') and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)