From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgate02.uberspace.is (mailgate02.uberspace.is [185.26.156.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E67652D739B for ; Mon, 27 Apr 2026 14:42:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.26.156.114 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777300938; cv=none; b=nCGf/hxL1iKvbQNzKjtMnVfvgstG5+pnx9ZBljWTmH4qWZpS0Okva5LeGb88hKezvqLDGjp/rlccrFzhAQRzMEab5JdUBka1b43DdCVyY8TNa4zyy1HFIcapyRkSNLYgozpsF3A4tqam97mFsiETLsrMFmQIBZLLB5vtDxLRA7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777300938; c=relaxed/simple; bh=sNF0aj/zHHZtmpy1UYD+dVJ+PYdcGEDkNGtFAX+EUxU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q3a+Xrj4Oi/5klKqJMoU19s0n/twbXvFW07RunPzu6z7igFSTBSSB/T1kNP9F1yx4pmnzRv43rtOjix6j78UGj/MZnre7fN0QKFpDaK2zvagea5vuxEk01e1YhUa95ELEspI7V/ggkUpd/VgS5QiBRcpZ4p/5LrsDM6JbD0+GAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=yshyn.com; spf=pass smtp.mailfrom=yshyn.com; dkim=pass (2048-bit key) header.d=yshyn.com header.i=@yshyn.com header.b=CctxXDhP; arc=none smtp.client-ip=185.26.156.114 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=yshyn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yshyn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yshyn.com header.i=@yshyn.com header.b="CctxXDhP" Received: from phoenix.uberspace.de (phoenix.uberspace.de [95.143.172.135]) by mailgate02.uberspace.is (Postfix) with ESMTPS id CF2D618477A for ; Mon, 27 Apr 2026 16:25:13 +0200 (CEST) Received: (qmail 3989 invoked by uid 988); 27 Apr 2026 14:25:13 -0000 Authentication-Results: phoenix.uberspace.de; auth=pass (plain) Received: from unknown (HELO unkown) (::1) by phoenix.uberspace.de (Haraka/3.1.1) with ESMTPSA; Mon, 27 Apr 2026 16:25:13 +0200 From: Illia Ostapyshyn To: linux-kernel@vger.kernel.org Cc: Hao Li , Harry Yoo , "Vlastimil Babka (SUSE)" , Illia Ostapyshyn , Andrew Morton , Seongjun Hong , Kieran Bingham , Jan Kiszka , Florian Fainelli Subject: [PATCH 2/2] scripts/gdb: slab: Update field names of struct kmem_cache Date: Mon, 27 Apr 2026 16:24:48 +0200 Message-ID: <20260427142448.666117-3-illia@yshyn.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260427142448.666117-1-illia@yshyn.com> References: <20260427142448.666117-1-illia@yshyn.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Bar: ---- X-Rspamd-Report: REPLY(-4) BAYES_HAM(-2.209211) MID_CONTAINS_FROM(1) MIME_GOOD(-0.1) R_MISSING_CHARSET(0.5) X-Rspamd-Score: -4.809211 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yshyn.com; s=uberspace; h=from:to:cc:subject:date; bh=sNF0aj/zHHZtmpy1UYD+dVJ+PYdcGEDkNGtFAX+EUxU=; b=CctxXDhPOa/TxSfDGR/iidN4btH/FsbNpDD757gLDR7di3Co2NoRVeDD8AX0t0dM+pSc/ZaBgT cqEOFu/zse8gREPbZCQnWJZBytkb1l2zC7JmaSBidXYN0J2kA3bKVgRZltc8FmXjmBrIFVneZr8H UrkH1ChjLj1QVZyYG8ap+EZAt3m/rbNOSf86agy3uRqtQQRQSDJ5WGuhSswqMG0L+tF4lmGg5wtX k/meOpyZ5v6fEBc73ejrNMD0olaiDr5jBiplGyPMYDZ/bGOvSfN/mhtCjKgei90n5y1Rx2LADQOv vX9+Fqo0Lwwf86d4coHnWS1PsvkQuucW+oIL7Y0g== 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. Fixes: 5ba6bc27b1f9 ("slab: decouple pointer to barn from kmem_cache_node") Signed-off-by: Illia Ostapyshyn --- scripts/gdb/linux/slab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gdb/linux/slab.py b/scripts/gdb/linux/slab.py index 0e2d93867fe2..ddde25aeca8d 100644 --- a/scripts/gdb/linux/slab.py +++ b/scripts/gdb/linux/slab.py @@ -196,7 +196,7 @@ def slabtrace(alloc, cache_name): if target_cache['flags'] & SLAB_STORE_USER: for i in range(0, nr_node_ids): - cache_node = target_cache['node'][i] + cache_node = target_cache['per_node']['node'][i] if cache_node['nr_slabs']['counter'] == 0: continue process_slab(loc_track, cache_node['partial'], alloc, target_cache) @@ -300,7 +300,7 @@ def slabinfo(): nr_free = 0 nr_slabs = 0 for i in range(0, nr_node_ids): - cache_node = cache['node'][i] + cache_node = cache['per_node']['node'][i] try: nr_slabs += cache_node['nr_slabs']['counter'] nr_objs = int(cache_node['total_objects']['counter']) -- 2.51.2