Re: [PATCH v5 5/8] vmcore: allocate ELF note segment in the 2nd kernel vmalloc memory

2013-05-15 Thread HATAYAMA Daisuke
(2013/05/15 0:35), Vivek Goyal wrote: On Tue, May 14, 2013 at 10:57:35AM +0900, HATAYAMA Daisuke wrote: The reasons why we don't allocate ELF note segment in the 1st kernel (old memory) on page boundary is to keep backward compatibility for old kernels, and that if doing so, we waste not a littl

Re: [PATCH v5 5/8] vmcore: allocate ELF note segment in the 2nd kernel vmalloc memory

2013-05-14 Thread Vivek Goyal
On Tue, May 14, 2013 at 10:57:35AM +0900, HATAYAMA Daisuke wrote: [..] > +/* Merges all the PT_NOTE headers into one. */ > +static int __init merge_note_headers_elf32(char *elfptr, size_t *elfsz, > +char **notesegptr, size_t *notesegsz, > +

Re: [PATCH v5 5/8] vmcore: allocate ELF note segment in the 2nd kernel vmalloc memory

2013-05-14 Thread Vivek Goyal
On Tue, May 14, 2013 at 10:57:35AM +0900, HATAYAMA Daisuke wrote: > The reasons why we don't allocate ELF note segment in the 1st kernel > (old memory) on page boundary is to keep backward compatibility for > old kernels, and that if doing so, we waste not a little memory due to > round-up operatio

[PATCH v5 5/8] vmcore: allocate ELF note segment in the 2nd kernel vmalloc memory

2013-05-13 Thread HATAYAMA Daisuke
The reasons why we don't allocate ELF note segment in the 1st kernel (old memory) on page boundary is to keep backward compatibility for old kernels, and that if doing so, we waste not a little memory due to round-up operation to fit the memory to page boundary since most of the buffers are in per-