kdump/kdump-calibrate-adjust-sizeof-struct-page.patch

88 lines
2.4 KiB
Diff
Raw Normal View History

From: Petr Tesarik <ptesarik@suse.com>
Date: Thu, 8 Feb 2018 17:47:21 +0100
Subject: calibrate: Adjust sizeof(struct page)
Upstream: merged
Git-commit: f3aed9afcece4a6d25f9ee5ed0d4a2e82204cfa1
After adding a memcg pointer, struct page has grown by one pointer.
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
---
kdumptool/calibrate.cc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--- a/kdumptool/calibrate.cc
+++ b/kdumptool/calibrate.cc
@@ -63,7 +63,7 @@
# define KERNEL_INIT_KB MB(5)
# define INIT_KB MB(34)
# define INIT_NET_KB MB(3)
-# define SIZE_STRUCT_PAGE 56
+# define SIZE_STRUCT_PAGE 64
# define KDUMP_PHYS_LOAD 0
# define CAN_REDUCE_CPUS 1
# define PERCPU_KB 108
@@ -74,7 +74,7 @@
# define KERNEL_INIT_KB MB(4)
# define INIT_KB MB(29)
# define INIT_NET_KB MB(2)
-# define SIZE_STRUCT_PAGE 32
+# define SIZE_STRUCT_PAGE 36
# define KDUMP_PHYS_LOAD 0
# define CAN_REDUCE_CPUS 1
# define PERCPU_KB 56
@@ -96,7 +96,7 @@
# define KERNEL_INIT_KB MB(5)
# define INIT_KB MB(34)
# define INIT_NET_KB MB(2)
-# define SIZE_STRUCT_PAGE 32
+# define SIZE_STRUCT_PAGE 36
# define KDUMP_PHYS_LOAD MB(128)
# define CAN_REDUCE_CPUS 0
# define PERCPU_KB 0 // TODO !!!
@@ -107,7 +107,7 @@
# define KERNEL_INIT_KB 512
# define INIT_KB MB(34)
# define INIT_NET_KB MB(2)
-# define SIZE_STRUCT_PAGE 56
+# define SIZE_STRUCT_PAGE 64
# define KDUMP_PHYS_LOAD 0
# define CAN_REDUCE_CPUS 1
# define PERCPU_KB 48
@@ -120,7 +120,7 @@
# define KERNEL_INIT_KB 512
# define INIT_KB MB(29)
# define INIT_NET_KB MB(2)
-# define SIZE_STRUCT_PAGE 32
+# define SIZE_STRUCT_PAGE 36
# define KDUMP_PHYS_LOAD 0
# define CAN_REDUCE_CPUS 1
# define PERCPU_KB 0 // TODO !!!
@@ -133,7 +133,7 @@
# define KERNEL_INIT_KB MB(3)
# define INIT_KB MB(44)
# define INIT_NET_KB MB(4)
-# define SIZE_STRUCT_PAGE 56
+# define SIZE_STRUCT_PAGE 64
# define KDUMP_PHYS_LOAD 0
# define CAN_REDUCE_CPUS 1
# define PERCPU_KB 0 // TODO !!!
@@ -144,7 +144,7 @@
# define KERNEL_INIT_KB MB(1)
# define INIT_KB MB(29)
# define INIT_NET_KB MB(2)
-# define SIZE_STRUCT_PAGE 56
+# define SIZE_STRUCT_PAGE 64
# define KDUMP_PHYS_LOAD 0
# define CAN_REDUCE_CPUS 1
# define PERCPU_KB 0 // TODO !!!
@@ -155,7 +155,7 @@
# define KERNEL_INIT_KB MB(1)
# define INIT_KB MB(29)
# define INIT_NET_KB MB(2)
-# define SIZE_STRUCT_PAGE 32
+# define SIZE_STRUCT_PAGE 36
# define KDUMP_PHYS_LOAD 0
# define CAN_REDUCE_CPUS 1
# define PERCPU_KB 0 // TODO !!!