Message ID | 20231127070404.4192-3-Kuan-Ying.Lee@mediatek.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 139CFC0755A for <linux-mm@archiver.kernel.org>; Mon, 27 Nov 2023 07:06:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B76BE6B02D7; Mon, 27 Nov 2023 02:06:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B00F46B02DA; Mon, 27 Nov 2023 02:06:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 867F16B030A; Mon, 27 Nov 2023 02:06:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 697996B02DA for <linux-mm@kvack.org>; Mon, 27 Nov 2023 02:06:35 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 04A9CC012B for <linux-mm@kvack.org>; Mon, 27 Nov 2023 07:06:34 +0000 (UTC) X-FDA: 81502851150.24.97CB378 Received: from mailgw02.mediatek.com (mailgw02.mediatek.com [216.200.240.185]) by imf14.hostedemail.com (Postfix) with ESMTP id 47B93100015 for <linux-mm@kvack.org>; Mon, 27 Nov 2023 07:06:31 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=mediatek.com header.s=dk header.b=OsroDviT; spf=pass (imf14.hostedemail.com: domain of kuan-ying.lee@mediatek.com designates 216.200.240.185 as permitted sender) smtp.mailfrom=kuan-ying.lee@mediatek.com; dmarc=pass (policy=quarantine) header.from=mediatek.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701068791; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=HtK55VLY1NxyNBcORvef+jn+nTQMaITRftKAsWDHxMA=; b=aT677lzZMRCHyb/zbpfU6O5TWZLjtZONQBN8fVcqkqdmoaPk0xGy9dQDu4Xrjbg7OWA5iQ nSVMFVxY971QMw0yBjNQA7f4YFCOhXfVzGcNEcH5bM4Z1JgcG1HpTRSKeow3HCn2qD9ASy BgtjjM9KlWGI6gDU0njbBXoZrSsGJfs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701068791; a=rsa-sha256; cv=none; b=sQpt5KjL7ZgB1rpqpuA1HU6eQRgL6uTJk8/Gv0jcapbACJzXnvyiQEDrVRXza/4Jn8zt6C IJJi1xAwP5PYE/E175k1BOwMD+L3rIE9noUOHEQYSibedhD0/tze3QhdtoNMaH/79tmV4T lADr6pYxYmKaZ6BlDusFC+kGFp0Yo7I= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=mediatek.com header.s=dk header.b=OsroDviT; spf=pass (imf14.hostedemail.com: domain of kuan-ying.lee@mediatek.com designates 216.200.240.185 as permitted sender) smtp.mailfrom=kuan-ying.lee@mediatek.com; dmarc=pass (policy=quarantine) header.from=mediatek.com X-UUID: 77dedd248cf311ee86758d4a7c00f3a0-20231127 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=HtK55VLY1NxyNBcORvef+jn+nTQMaITRftKAsWDHxMA=; b=OsroDviT3f+sXfQHzUzqntbZJSJIpZl3hkXyIl25Oavh1IfrItIqQ8ceP+yzuYgVZ0ooWiRWo+NenwnKH1xQPFiQeb0w2uAn8jJErGh1Oij42ucg5lK+0XyFl2ceQ9PPWvBbZyKA2VLE/VJBbxD5oJPrFOX4GfJt5TJFJ5QiALQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.33,REQID:3b8f619f-494e-4a1a-9d82-cc44a82ecad5,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:364b77b,CLOUDID:d655d995-10ce-4e4b-85c2-c9b5229ff92b,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 77dedd248cf311ee86758d4a7c00f3a0-20231127 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from <kuan-ying.lee@mediatek.com>) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1936018134; Mon, 27 Nov 2023 00:06:21 -0700 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 27 Nov 2023 15:05:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 27 Nov 2023 15:05:18 +0800 From: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com> To: Jan Kiszka <jan.kiszka@siemens.com>, Kieran Bingham <kbingham@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> CC: <casper.li@mediatek.com>, <chinwen.chang@mediatek.com>, <qun-wei.lin@mediatek.com>, <linux-mm@kvack.org>, <akpm@linux-foundation.org>, Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>, Andrey Konovalov <andreyknvl@google.com>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org> Subject: [PATCH 2/3] scripts/gdb/stackdepot: Rename pool_index_cached to pools_num Date: Mon, 27 Nov 2023 15:04:02 +0800 Message-ID: <20231127070404.4192-3-Kuan-Ying.Lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231127070404.4192-1-Kuan-Ying.Lee@mediatek.com> References: <20231127070404.4192-1-Kuan-Ying.Lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--0.010000-8.000000 X-TMASE-MatchedRID: v+sphrBU45Fo3s9tP0IpFpA6S0SjvcYU+KgiyLtJrSBh2fnHe1cil/vO +ii1kEU9/pKwAK6MbUrbCHv011Gy9Z8H7IRkmk143fn7n/ZHGqZ9LQinZ4QefPcjNeVeWlqY+gt Hj7OwNO22utO5qEfOUVc0Kd0RiPLSKIZsPfXtYDI2ZAMv1y9yYuiku9X3rg3DYrC60dTQ6lwgkV TLdeBsisRw65kGgQa5HA8v7nBpXwZAmtKtYco7Lkma3zYT97IFAYfQIAUhBayZvmCbKVb49sZL6 x5U/HriPpCuffGH9zI= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--0.010000-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 3B0E1DE16128D260FD1688E220366A70E47761E071E403750C9EB17B147451602000:8 X-MTK: N X-Rspamd-Queue-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fvW9EQ 7a9OcEB4 q4GYWqYbpFNeUA9MGP409RnxE9Df/xwINs6SmI0mKILY/xS8ZR7vGrfHm1ur4fDtIKJriVVLFHmGYPGVTP/EsGPH9zXUZwOzRQdR1m+dADBSxDuc/lbeFKpuu7Yy6K8QArx7J4AMZegXJCDPV78GUY9O7Pg5C+rCe9Qj9a99dOmdYlYLqh7HX6IcCbS7Cuf5kLwFP+bYgqjn2X8yBaeiNb9eUwwjSfhVM0BKly8fgeRZFkxRxLyqf4ve8xtkbBqZgS7+YMCuKiOBJgv9Z/wSPfWYPcetj5VW03JJkMcVbCLoV85zDDvJW079zA81Xfi5MPtCzIUwNDbs10k76uJNVz0qFdd/yp1TuQ6sDT99n/Skvelm3Ntf0O37Ukw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Fix GDB commands error
|
expand
|
diff --git a/scripts/gdb/linux/stackdepot.py b/scripts/gdb/linux/stackdepot.py index 047d329a6a12..0281d9de4b7c 100644 --- a/scripts/gdb/linux/stackdepot.py +++ b/scripts/gdb/linux/stackdepot.py @@ -25,10 +25,10 @@ def stack_depot_fetch(handle): handle_parts_t = gdb.lookup_type("union handle_parts") parts = handle.cast(handle_parts_t) offset = parts['offset'] << DEPOT_STACK_ALIGN - pool_index_cached = gdb.parse_and_eval('pool_index') + pools_num = gdb.parse_and_eval('pools_num') - if parts['pool_index'] > pool_index_cached: - gdb.write("pool index %d out of bounds (%d) for stack id 0x%08x\n" % (parts['pool_index'], pool_index_cached, handle)) + if parts['pool_index'] > pools_num: + gdb.write("pool index %d out of bounds (%d) for stack id 0x%08x\n" % (parts['pool_index'], pools_num, handle)) return gdb.Value(0), 0 stack_pools = gdb.parse_and_eval('stack_pools')
After stackdepot evicting support patchset[1], we rename pool_index_cached to pools_num. [1] https://lore.kernel.org/linux-mm/cover.1700502145.git.andreyknvl@google.com/ Cc: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com> --- scripts/gdb/linux/stackdepot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)