[PR #450] [MERGED] boot_trace: show XMem physical page requests #501

Closed
opened 2026-11-26 20:18:05 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/450
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: ubiq/boot-trace-xmem-physical-pages


📝 Commits (1)

  • 45c99d9 boot_trace: show XMem physical page requests

📊 Changes

3 files changed (+126 additions, -9 deletions)

View changed files

📝 docs/boot.md (+5 -0)
📝 tests/test_boot_trace.py (+78 -4)
📝 tools/boot_trace.py (+43 -5)

📄 Description

Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123160789

What changed

  • tools/boot_trace.py: Surface the first --limit xmem_physical_pages observations in trace order (API, raw 0x attribute word, requested page count, caller) in both text and JSON summaries while keeping the full count in startup.kinds["xmem_physical_pages"]. Preserves valid UTF-8 module names (including non-breaking spaces) while rejecting control characters and malformed/out-of-range values (? in text, null in JSON), and supports --limit 0.
  • tests/test_boot_trace.py: Synthetic tests covering single/multiple observations, trace order, --limit truncation including --limit 0, UTF-8 NBSP callers, and missing/malformed fields.
  • docs/boot.md: Documents xmem_physical_pages sampling and full-count retention.

Testing & Disclosure

  • AI-assisted: Implemented with Codex (gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).
  • Environment: macOS 27.3, Apple M1 Max, Python 3.14.3 (CPU-only, synthetic traces, zero game data).
  • Verified on ubiquitarianism/leonida main (8f481cf16): test_boot_trace.py (32/32), test_dev_boot_trace.py (5/5), check_no_game_data.py, LF check — all passed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/450 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `ubiq/boot-trace-xmem-physical-pages` --- ### 📝 Commits (1) - [`45c99d9`](https://github.com/ubiquitarianism/leonida/commit/45c99d977c736eed9a1dd15570a58459e66ce71b) boot_trace: show XMem physical page requests ### 📊 Changes **3 files changed** (+126 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `docs/boot.md` (+5 -0) 📝 `tests/test_boot_trace.py` (+78 -4) 📝 `tools/boot_trace.py` (+43 -5) </details> ### 📄 Description Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123160789 ### What changed - **`tools/boot_trace.py`**: Surface the first `--limit` `xmem_physical_pages` observations in trace order (API, raw `0x` attribute word, requested page count, caller) in both text and JSON summaries while keeping the full count in `startup.kinds["xmem_physical_pages"]`. Preserves valid UTF-8 module names (including non-breaking spaces) while rejecting control characters and malformed/out-of-range values (`?` in text, `null` in JSON), and supports `--limit 0`. - **`tests/test_boot_trace.py`**: Synthetic tests covering single/multiple observations, trace order, `--limit` truncation including `--limit 0`, UTF-8 NBSP callers, and missing/malformed fields. - **`docs/boot.md`**: Documents `xmem_physical_pages` sampling and full-count retention. ### Testing & Disclosure - **AI-assisted:** Implemented with Codex (`gpt-6.2-sol`) and reviewed with Codex (`gpt-6.2-astra`). - **Environment:** macOS 27.3, Apple M1 Max, Python 3.14.3 (CPU-only, synthetic traces, zero game data). - **Verified on `ubiquitarianism/leonida` `main` (`8f481cf16`):** `test_boot_trace.py` (32/32), `test_dev_boot_trace.py` (5/5), `check_no_game_data.py`, LF check — all passed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:05 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#501
No description provided.