Re: PATCH 00/10] teach crash to work with "live" ramdump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility



[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux