[PATCH v5 7/8] vmcore: calculate vmcore file size from buffer size and total size of vmcore objects
HATAYAMA Daisuke
d.hatayama at jp.fujitsu.com
Wed May 15 04:25:41 EDT 2013
(2013/05/15 1:47), Vivek Goyal wrote:
> On Tue, May 14, 2013 at 10:57:46AM +0900, HATAYAMA Daisuke wrote:
>> The previous patches newly added holes before each chunk of memory and
>> the holes need to be count in vmcore file size. There are two ways to
>> count file size in such a way:
>>
>> 1) supporse p as a poitner to the last program header entry with
>> PT_LOAD type, then roundup(p->p_offset + p->p_memsz, PAGE_SIZE), or
This part was wrong. This should have been:
1) support m as a pointer to the last vmcore object in vmcore_list, then
file size is (m->offset + m->size), or
I'll correct this way in next patch.
Note that no functional change, only description is wrong here.
--
Thanks.
HATAYAMA, Daisuke
More information about the kexec
mailing list