Skip to content

Commit 63ce594

Browse files
kylee0215akpm00
authored andcommitted
scripts/gdb: redefine MAX_ORDER sanely
Patch series "Fix GDB command error". This patchset fixes some GDB command errors. 1. Since memory layout of AARCH64 has been changed, we need to modify the layout in GDB scripts as well. 2. Fix pool_index naming of stackdepot. This patch (of 6): Change the definition of MAX_ORDER to be inclusive. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Fixes: 23baf83 ("mm, treewide: redefine MAX_ORDER sanely") Signed-off-by: Kuan-Ying Lee <[email protected]> Cc: Jan Kiszka <[email protected]> Cc: Kieran Bingham <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Michael Ellerman <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent b8c7dd1 commit 63ce594

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/gdb/linux/mm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def __init__(self):
5959
if str(constants.LX_CONFIG_ARCH_FORCE_MAX_ORDER).isdigit():
6060
self.MAX_ORDER = constants.LX_CONFIG_ARCH_FORCE_MAX_ORDER
6161
else:
62-
self.MAX_ORDER = 11
62+
self.MAX_ORDER = 10
6363

64-
self.MAX_ORDER_NR_PAGES = 1 << (self.MAX_ORDER - 1)
64+
self.MAX_ORDER_NR_PAGES = 1 << (self.MAX_ORDER)
6565
self.PFN_SECTION_SHIFT = self.SECTION_SIZE_BITS - self.PAGE_SHIFT
6666
self.NR_MEM_SECTIONS = 1 << self.SECTIONS_SHIFT
6767
self.PAGES_PER_SECTION = 1 << self.PFN_SECTION_SHIFT

0 commit comments

Comments
 (0)