Re: [PATCH v2] Extend core dump note section to contain file names of mapped files

2012-07-13 Thread Oleg Nesterov
On 07/13, Andi Kleen wrote: > > More information during debugging is always good. Agreed. BTW. Can't we turn (rename and export) alloc_fdmem/free_fdmem into the generic helpers? This patch looks like the "obvious" user. And pidlist_allocate... probably something else. (Denys, to avoid the confus

Re: [PATCH v2] Extend core dump note section to contain file names of mapped files

2012-07-13 Thread Andi Kleen
On Fri, Jul 13, 2012 at 04:58:06PM +0200, Oleg Nesterov wrote: > On 07/12, Denys Vlasenko wrote: > > > > This note has the following format: > > > > long count -- how many files are mapped > > long page_size -- units for file_ofs > > array of [COUNT] elements of > >long start > >long en

Re: [PATCH v2] Extend core dump note section to contain file names of mapped files

2012-07-13 Thread Oleg Nesterov
On 07/12, Denys Vlasenko wrote: > > This note has the following format: > > long count -- how many files are mapped > long page_size -- units for file_ofs > array of [COUNT] elements of >long start >long end >long file_ofs > followed by COUNT filenames in ASCII: "FILE1" NUL "FILE2"

[PATCH v2] Extend core dump note section to contain file names of mapped files

2012-07-12 Thread Denys Vlasenko
This note has the following format: long count -- how many files are mapped long page_size -- units for file_ofs array of [COUNT] elements of long start long end long file_ofs followed by COUNT filenames in ASCII: "FILE1" NUL "FILE2" NUL... Compared to previous version, code is simpl