boot_trace: include XMem page observation totals in counts-only JSON (BOOT-TRACE-XMEM-COUNT) #962
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!962
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/962/head"
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?
@TheGeogeo on GitHub · 2026-11-24 15:54 UTC · original
TheGeogeo:fix/boot-trace-xmem-count→main· +14 −0 · 2 files · 1 commits · merged 2026-11-24 20:04 UTCClaimed in the coordination issue as: BOOT-TRACE-XMEM-COUNT
What and why
Include
xmem_physical_pages_countinboot_trace.py --counts-onlystartup reports. This exposes the same total already used by the text summary, independently of--limit. The report contains the count with no XMem samples or trace fields. A synthetic trace with three observations and a one-sample limit verifies the behavior.Tested
1504c1afwith a missingxmem_physical_pages_countfield.python -I -B tests/test_boot_trace.py: 33 passed.python -I -B tests/test_dev_boot_trace.py: 5 passed.42041b6b) in an isolated worktree without conflicts and reranpython -I -B tests/test_boot_trace.py: 35 passed.git diff --checkandpython -I -B scripts/check_no_game_data.py tools/boot_trace.py tests/test_boot_trace.py: passed.GPUs tested: n/a. CPU-only synthetic traces.
AI-assisted: Yes, Codex.
Checklist
main.@KernelSmoker on GitHub · 2026-11-24 16:08 UTC · original · approved these changes
Verified submitted head
45883852a311d1b5011c3917ed55310899b21264.test_boot_trace.pypassed 33/33 andtest_dev_boot_trace.pypassed 5/5. The regression checks that counts-only reports all three synthetic XMem page observations despite--limit 1, omits raw observation fields, and does not echo private synthetic values.check_no_game_data.pyandgit diff --checkpassed. Synthetic CPU test only; no game data/GPU.@kawaii-shakal on GitHub · 2026-11-24 16:14 UTC · original
Independent test of #962 (BOOT-TRACE-XMEM-COUNT)
Head tested:
45883852a3(merge base1504c1af). Environment: Windows 11, native Python 3.13.13, no GPU.Commands and results:
python -I -B tests/test_boot_trace.py: Ran 33 tests, OK.python -I -B tests/test_dev_boot_trace.py: OK.tools/boot_trace.pyfrom the merge base: the new test ERRORS withKeyError: 'xmem_physical_pages_count'.len(startup["xmem_physical_pages"])(the sample list, which--limitcaps). The new test FAILS with1 != 3, so it pins the total rather than the number of samples shown. Restored afterwards.git merge-tree --write-tree origin/main <head>(origin/main0af7753c): clean.python -I scripts/check_no_game_data.pyon the changed files: exit 0.git diff --check: clean.Findings:
startup["kinds"], the same per-kind counter the text summary reads (line 362). The JSON and text outputs therefore agree, and the count does not depend on--limit.assertNotIn("private-", ...)).*_countkeys (file_open_failed_count,exception_count).Verdict: looks good.
AI-assisted.
@QemmHD on GitHub · 2026-11-24 20:04 UTC · original
Merging.
Why merged: BOOT-TRACE-XMEM-COUNT: boot_trace's --counts-only JSON now includes xmem_physical_pages_count, a one-line addition with a test. kawaii-shakal checked it on Windows (33 OK) and KernelSmoker approved it (33/33, 5/5).
Why it's good: test_boot_trace and test_dev_boot_trace: 39 passed.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main
6293c1c4f. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 571 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. Security read of the three-dot diff: no binaries, game data, downloads, network calls, new env vars or build/CI changes.AI-assisted (Claude Code, Claude Opus 5.5).