[Crash-utility] [PATCH] diskdump: Allow zero CPUs for s390

Michael Holzheu holzheu at linux.vnet.ibm.com
Wed Oct 12 16:22:42 UTC 2011


Hi Dave,

For s390 there are cases where makedumpfile generated dumps do not have CPU
information in the dump header. This happens when old s390 dump tools are
used to create a dump that do not write the CPU information into the s390
dump header. We can deal with this situation because we have a fallback that
gets the CPU register information out of memory (see s390x_get_lowcore).

So for s390 it would be better that we only get a warning, when crash
does not find CPU information in a makedumpfile generated dump.

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

--- a/diskdump.c
+++ b/diskdump.c
@@ -369,7 +369,10 @@ restart:
                 error(INFO, "%s: invalid nr_cpus value: %d\n",
                         DISKDUMP_VALID() ? "diskdump" : "compressed kdump",
                         header->nr_cpus);
-                        goto err;
+#if !defined(S390) && !defined(S390X)
+		/* s390 can get register information also from memory */
+		goto err;
+#endif
         }
 
 	/* read sub header */

-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-5.1.8-kdump-0-cpus.patch
Type: text/x-patch
Size: 1098 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20111012/fc9c0961/attachment.bin>


More information about the Crash-utility mailing list