[Crash-utility] PATCH 00/10] teach crash to work with "live" ramdump

Oleg Nesterov oleg at redhat.com
Wed Apr 27 13:02:27 UTC 2016


On 04/26, Dave Anderson wrote:
>
> > I see. What I can't understand is why (2) sets KDUMP but switches to
> > pc->readmem = read_ramdump() instead of read_kdump(), even if it creates the
> > same elf vmcore.
>
> I didn't write this code, but here's how I understand it.
>
> (1) If the crash command line contains a memory at address reference, then it's describing
>     a ramdump, and it calls ramdump_to_elf() to create an ELF header.
>
> (2) If "-o dumpfile" had also been specified, then it creates a new ELF vmcore file.
>
> (3) If "-o" was not used, then it creates a temporary in-memory ELF header.

Yes, thank, I see.

I didn't notice that write_elf() doesn't "copy" ramdump's into elf file if
"-o" was not used, it only creates a header.

Oleg.




More information about the Crash-utility mailing list