[PR #2244] boot_trace: summarize XMem allocation attribute observations #2247

Open
opened 2026-11-26 21:20:33 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2244
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: codex/boot-trace-xmem-attr-samples


📝 Commits (1)

  • 51b4428 boot_trace: summarize XMem allocation attribute observations

📊 Changes

2 files changed (+31 additions, -4 deletions)

View changed files

📝 tests/test_boot_trace.py (+15 -0)
📝 tools/boot_trace.py (+16 -4)

📄 Description

Claimed in the coordination issue as: BOOT-TRACE-XMEM-ATTR-SAMPLES

What and why

The runtime emits xmem_attributes when 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.py
  • git diff --check and the changed-path no-game-data scan passed.
  • Shared main baseline: 498 semantic test files, 6,351 tests passed.

GPUs tested: N/A (synthetic CPU tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.

🔄 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/2244 **Author:** [@kirigayakazima](https://github.com/kirigayakazima) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/boot-trace-xmem-attr-samples` --- ### 📝 Commits (1) - [`51b4428`](https://github.com/ubiquitarianism/leonida/commit/51b44286229ec68222c28e6ead75a378c915fd21) boot_trace: summarize XMem allocation attribute observations ### 📊 Changes **2 files changed** (+31 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_boot_trace.py` (+15 -0) 📝 `tools/boot_trace.py` (+16 -4) </details> ### 📄 Description Claimed in the coordination issue as: [BOOT-TRACE-XMEM-ATTR-SAMPLES](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7189018014) ### What and why The runtime emits `xmem_attributes` when 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.py` - `git diff --check` and the changed-path no-game-data scan passed. - Shared main baseline: 498 semantic test files, 6,351 tests passed. GPUs tested: N/A (synthetic CPU tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#2247
No description provided.