[PATCH 0/2] Fixes related to lx-slabinfo, lx-slabtrace

From: Illia Ostapyshyn

Date: Mon Apr 27 2026 - 10:47:13 EST


Hi all,

calling slab-related commands in gdb scripts currently fails because
of two reasons. Firstly, x86 mm page ops try to cast symbols without
type information to int, which causes an exception. Secondly, struct
kmem_cache was changed in commit 55f8b4518d14b743 ("scripts/gdb:
implement x86_page_ops in mm.py") to factor out per-node data into a
separate struct, which the gdb scripts do not reflect yet.

These two patches fix these issues.

Illia Ostapyshyn (2):
scripts/gdb: mm: Cast untyped symbols in x86_page_ops
scripts/gdb: slab: Update field names of struct kmem_cache

scripts/gdb/linux/mm.py | 6 +++---
scripts/gdb/linux/slab.py | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)


base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
--
2.51.2