[Crash-utility] Is there a way to validate the coherency of a kdump-compressed dumpfile ?

Kazuhito Hagio kazuhito.hagio at gmail.com
Thu Feb 11 22:45:16 UTC 2021


Hi Patrick,

On Thu, Feb 11, 2021 at 7:27 PM Agrain Patrick
<patrick.agrain at al-enterprise.com> wrote:
>
> Hello,
>
> I’m trying to setup an analyze procedure (with scripts) and would like to ‘check’ the dumpfile before starting the interactive mode of ‘crash’.
>
> Is there a ‘crash’ option, command that would just :
> Return a status to say ‘dumpfile is OK to be processed by crash’.

This should need to finish session initialization, and

> Display a header that I could parse.

"help -D" command displays the dumpfile's header.

So I think the exit status and output of this might help, but it takes
some time as you know.
  $ echo 'help -D' | crash -s vmlinux vmcore

Thanks,
Kazu

> Or ?
>
> Or should I grab directly in the dumpfile (Hmm… kdump-compressed seems not to be easy to parse) ?
> More possibilities with an ELF formatted dumpfile ?
>
> Thanks.
> Best regards,
> Patrick Agrain
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility





More information about the Crash-utility mailing list