* + scripts-gdb-stackdepot-rename-pool_index_cached-to-pools_num.patch added to mm-nonmm-unstable branch
@ 2023-11-27 18:49 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-11-27 18:49 UTC (permalink / raw)
To: mm-commits, qun-wei.lin, oleg, matthias.bgg, chinwen.chang,
angelogioacchino.delregno, andreyknvl, Kuan-Ying.Lee, akpm
The patch titled
Subject: scripts/gdb/stackdepot: rename pool_index_cached to pools_num
has been added to the -mm mm-nonmm-unstable branch. Its filename is
scripts-gdb-stackdepot-rename-pool_index_cached-to-pools_num.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/scripts-gdb-stackdepot-rename-pool_index_cached-to-pools_num.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Subject: scripts/gdb/stackdepot: rename pool_index_cached to pools_num
Date: Mon, 27 Nov 2023 15:04:02 +0800
After stackdepot evicting support patchset[1], we rename pool_index_cached
to pools_num.
Link: https://lore.kernel.org/linux-mm/cover.1700502145.git.andreyknvl@google.com/ [1]
Link: https://lkml.kernel.org/r/20231127070404.4192-3-Kuan-Ying.Lee@mediatek.com
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Chinwen Chang <chinwen.chang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Qun-Wei Lin <qun-wei.lin@mediatek.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
scripts/gdb/linux/stackdepot.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/scripts/gdb/linux/stackdepot.py~scripts-gdb-stackdepot-rename-pool_index_cached-to-pools_num
+++ a/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')
_
Patches currently in -mm which might be from Kuan-Ying.Lee@mediatek.com are
scripts-gdb-tasks-fix-lx-ps-command-error.patch
scripts-gdb-stackdepot-rename-pool_index_cached-to-pools_num.patch
scripts-gdb-remove-exception-handling-and-refine-print-format.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-27 18:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-27 18:49 + scripts-gdb-stackdepot-rename-pool_index_cached-to-pools_num.patch added to mm-nonmm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.