]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scripts/gdb: slab: update field names of struct kmem_cache
authorIllia Ostapyshyn <illia@yshyn.com>
Mon, 27 Apr 2026 14:24:48 +0000 (16:24 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 14 May 2026 00:40:01 +0000 (17:40 -0700)
commit228e25e33325865ebe589da5366449a8ecf7d0da
tree6b140283c977a29acea5db49d27fb5a89c533a49
parentc416aee7e7d04fec2d2d30786b3c8393108b85d2
scripts/gdb: slab: update field names of struct kmem_cache

The commit 5ba6bc27b1f9 ("slab: decouple pointer to barn from
kmem_cache_node") reorganized the struct kmem_cache to factor out the
per-node fields to the new struct kmem_cache_per_node_ptrs.  This causes
the gdb scripts for lx-slabinfo and lx-slabtrace fail as they still
reference the old structure.

Adjust the gdb scripts to match the current state of struct kmem_cache.

Link: https://lore.kernel.org/20260427142448.666117-3-illia@yshyn.com
Fixes: 5ba6bc27b1f9 ("slab: decouple pointer to barn from kmem_cache_node")
Signed-off-by: Illia Ostapyshyn <illia@yshyn.com>
Acked-by: Harry Yoo (Oracle) <harry@kernel.org>
Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Cc: Florian Fainelli <florian.fainelli@broadcom.com>
Cc: Hao Li <hao.li@linux.dev>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Seongjun Hong <hsj0512@snu.ac.kr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/gdb/linux/slab.py