Skip to content

Fixes related to lx-slabinfo, lx-slabtrace

Illia Ostapyshyn lkml 1 version Applied

Status from this message: [merged mm-hotfixes-stable] scripts-gdb-slab-update-field-names-of-struct-kmem_cache.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2scripts/gdb: mm: Cast untyped symbols in x86_page_opsscripts/gdb/linux/mm.py+3 -30 repliesApplied
2/2scripts/gdb: slab: Update field names of struct kmem_cachescripts/gdb/linux/slab.py+2 -22 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchHarry Yoo (Oracle)Vlastimil Babka (SUSE)
1/2
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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

Signature · 1 line
2.51.2