[Crash-utility] [PATCH] s390x: Implement swap PTE for kernel 3.12

Michael Holzheu holzheu at linux.vnet.ibm.com
Thu Oct 10 18:44:02 UTC 2013


Hi Dave,

The following kernel git commit changes swap PTEs again
for Linux 3.12:

commit e509861105a3c1425f3f929bd631f88340b499bf
Author: Martin Schwidefsky <schwidefsky at de.ibm.com>
Date:   Tue Jul 23 20:57:57 2013 +0200

    s390/mm: cleanup page table definitions

So we have to do this also in crash.

Signed-off-by: Michael Holzheu <holzheu at linux.vnet.ibm.com>
---
 s390x.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/s390x.c
+++ b/s390x.c
@@ -590,9 +590,12 @@ static int swap_entry(ulong entry)
 	if (THIS_KERNEL_VERSION < LINUX(2,6,19)) {
 		if ((entry & 0x601ULL) == 0x600ULL)
 			return 1;
-	} else {
+	} if (THIS_KERNEL_VERSION < LINUX(3,12,0)) {
 		if ((entry & 0x403ULL) == 0x403ULL)
 			return 1;
+	} else {
+		if ((entry & 0x603ULL) == 0x402ULL)
+			return 1;
 	}
 	return 0;
 }




More information about the Crash-utility mailing list