Skip to content

Commit eb1004a

Browse files
author
Jyri Sarha
committed
tools: debug_stream: set explicit ctypes layout
The packed structs need extra definitions in python 3.14. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 9eeae8c commit eb1004a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/debug_stream/debug_stream.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class CPUInfo(ctypes.Structure):
5252
"""
5353

5454
_pack_ = 1
55+
_layout_ = "gcc"
5556
_fields_ = [
5657
("hdr", DebugStreamRecord),
5758
("load", ctypes.c_ubyte),
@@ -65,6 +66,7 @@ class ThreadInfo(ctypes.Structure):
6566
"""
6667

6768
_pack_ = 1
69+
_layout_ = "gcc"
6870
_fields_ = [
6971
("stack_usage", ctypes.c_ubyte),
7072
("cpu_load", ctypes.c_ubyte),
@@ -78,6 +80,7 @@ class TextMsg(ctypes.Structure):
7880
"""
7981

8082
_pack_ = 1
83+
_layout_ = "gcc"
8184
_fields_ = [
8285
("hdr", DebugStreamRecord),
8386
]

0 commit comments

Comments
 (0)