Messages in this thread | | | From | Denys Vlasenko <> | Subject | Re: [PATCH] Extend core dump note section to contain file names of mapped files | Date | Sun, 1 Apr 2012 15:33:51 +0200 |
| |
On Sunday 01 April 2012 05:13, Andi Kleen wrote: > > I propose to save this information in core dump, as a new note > > in note segment. > > Seems like a good idea but rather than write complicated code i would just reuse > the /proc/*/maps code and dump it in that format?
I looked at this code (it's in fs/proc/task_mmu.c).
It uses seq_printf(). It will need refactoring if we would want to use it for purposes other than /proc pseudo-file generation.
-- vda
| |