Re: [PATCH v7 7/8] vmcore: calculate vmcore file size from buffer size and total size of vmcore objects

2013-05-22 Thread Vivek Goyal
On Wed, May 22, 2013 at 11:56:12AM +0900, HATAYAMA Daisuke wrote: [..] > -static u64 __init get_vmcore_size_elf64(char *elfptr, size_t elfsz) > +static u64 __init get_vmcore_size_elf64(size_t elfsz, size_t elfnotesegsz, > + struct list_head *vc_list) > { > -

[PATCH v7 7/8] vmcore: calculate vmcore file size from buffer size and total size of vmcore objects

2013-05-21 Thread HATAYAMA Daisuke
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 m as a poitner to the last vmcore object in vmcore_list. , then file size is (m->offset + m->size), or 2) calcula