makedumpfile support kernel 3.10

This is back ported from makedumpfile upstream directly:

commit 1202589997ad008b18276f504c5c2b8529b41dfe
Author: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Date:   Fri Sep 20 09:34:57 2013 +0900

    [PATCH] Support newer kernels.

     A new makedumpfile supports newer kernels:

           - 3.10    (x86 FLATMEM)
           - 3.10    (x86 SPARSEMEM)
           - 3.10    (x86_64 SPARSEMEM)

    Signed-off-by: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
This commit is contained in:
Baoquan He 2013-09-26 17:39:23 +08:00
parent 64ab43fb97
commit 2ce047b9ed
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
From 1202589997ad008b18276f504c5c2b8529b41dfe Mon Sep 17 00:00:00 2001
Message-Id: <1202589997ad008b18276f504c5c2b8529b41dfe.1380186577.git.bhe@redhat.com>
From: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Date: Fri, 20 Sep 2013 09:34:57 +0900
Subject: [PATCH] [PATCH] Support newer kernels.
A new makedumpfile supports newer kernels:
- 3.10 (x86 FLATMEM)
- 3.10 (x86 SPARSEMEM)
- 3.10 (x86_64 SPARSEMEM)
Signed-off-by: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Signed-off-by: Baoquan He <bhe@redhat.com>
---
README | 1 +
makedumpfile.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/makedumpfile-1.5.4/README b/makedumpfile-1.5.4/README
index b587485..4e838d8 100644
--- a/makedumpfile-1.5.4/README
+++ b/makedumpfile-1.5.4/README
@@ -97,6 +97,7 @@
3.7 | OK | ** | | | | ** | | -- | OK | OK | | |
3.8 | OK | ** | | | | ** | | -- | OK | OK | | |
3.9 | OK | ** | | | | ** | | -- | OK | OK | | |
+ 3.10 | OK | ** | | | | ** | | -- | OK | OK | | |
OK : Support.
-- : Not support.
diff --git a/makedumpfile-1.5.4/makedumpfile.h b/makedumpfile-1.5.4/makedumpfile.h
index a04154e..c504bfb 100644
--- a/makedumpfile-1.5.4/makedumpfile.h
+++ b/makedumpfile-1.5.4/makedumpfile.h
@@ -426,7 +426,7 @@ do { \
#define KVER_MIN_SHIFT 16
#define KERNEL_VERSION(x,y,z) (((x) << KVER_MAJ_SHIFT) | ((y) << KVER_MIN_SHIFT) | (z))
#define OLDEST_VERSION KERNEL_VERSION(2, 6, 15)/* linux-2.6.15 */
-#define LATEST_VERSION KERNEL_VERSION(3, 9, 6)/* linux-3.9.6 */
+#define LATEST_VERSION KERNEL_VERSION(3, 10, 7)/* linux-3.10.7 */
/*
* vmcoreinfo in /proc/vmcore
--
1.8.3.1

View File

@ -77,6 +77,7 @@ Patch301: kexec-tools-2.0.4-makedumpfile-Add-vmap_area_list-definition-for-ppc-p
#
Patch601: kexec-tools-2.0.3-disable-kexec-test.patch
Patch604: kexec-tools-2.0.3-build-makedumpfile-eppic-shared-object.patch
Patch605: kexec-tools-2.0.4-makedumpfile-PATCH-Support-newer-kernels.patch
%description
kexec-tools provides /sbin/kexec binary that facilitates a new
@ -108,6 +109,7 @@ tar -z -x -v -f %{SOURCE19}
%patch301 -p1
%patch601 -p1
%patch604 -p1
%patch605 -p1
tar -z -x -v -f %{SOURCE13}