Skip to content

tools: debug_stream: set explicit ctypes layout to "ms" - #11283

Open
jsarha wants to merge 1 commit into
thesofproject:mainfrom
jsarha:debug_stream_py_fix
Open

jsarha wants to merge 1 commit into
thesofproject:mainfrom
jsarha:debug_stream_py_fix

Conversation

@jsarha

@jsarha jsarha commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Setting the ctype to most logical choice was not correct. Python, both 3.12 and 3.14, have a 'feature' that a packed ctype struct forces layout to "ms". 3.12 did this silently, but 3.14 gives a warning if the layout is not explicitly set, and an error if its set to something else than "ms", in packed structs.

Fixes: 2451522 ("tools: debug_stream: set explicit ctypes layout")

Setting the ctype to most logical choice was not correct. Python, both
3.12 and 3.14, have a 'feature' that a packed ctype struct forces
layout to "ms". 3.12 did this silently, but 3.14 gives a warning if
the layout is not explicitly set, and an error if its set to something
else than "ms", in packed structs.

Fixes: 2451522 ("tools: debug_stream: set explicit ctypes layout")
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Copilot AI balanced review requested due to automatic review settings October 8, 2026 09:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The three layout changes match ctypes packing requirements and preserve compatibility with the firmware record definitions.

0 open findings

What changed in this PR

Corrects packed structure layouts in the debug-stream decoder for Python 3.14 compatibility.

Changes:

  • Sets _layout_ = "ms" for CPUInfo, ThreadInfo, and TextMsg, matching ctypes packing requirements.
File Description
tools/​debug_stream/​debug_stream.py Corrects explicit layouts for three packed ctypes structures.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@intel-sofci

Copy link
Copy Markdown

PR 11283: test results

Run date: 2026-10-08 14:00 UTC

Tested commit: babf26b4507a226bdfb9985ebf79f1c62eaac481

mtl pass rate lnl pass rate ptl pass rate wcl pass rate nvl pass rate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants