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@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.