The process context dump patch (procdump-2417.patch) extends the
crash dump mechanism (lkcd) to allow different tasks user memory to be
selectively placed in a crash dump or excluded from the dump. This patch is
created against 2.4.17, the current CVS lkcd 2.4 sources (as of Feb 2003)
and customdump patch posted to lkcd_devel mailing list on March 1, 2003.
To pass various requests, lkcd_config command has to modified for passing
these requests to the kernel using 'dumpfs' filesystem. Planning to modify
this command later. Hence, to use this patch, the user has to create the
'dumpfs' filesystem entries explicitly for passing various user requests.
Note that, the customdump patch is needed to configure 'dumpfs' filesystem.
Please see the 'procdump_instructions dump' document that explains the
configuration of 'dumpfs' filesystem, various requests and filesystem
entries that will be created to pass these requests.
The task command in lcrash expects complete task list to retrieve tasks
that are present in the dump file. Since this patch allows to dump tasks
selectively, the task command is modified and thus, posting the lkcdutils
patch. Instead of looking from task list, the task command scans all page
structures and determines the pages that have task structures. To do this,
the lkcd patch is modified to include 'task_struct_cachep' in the
corresponding page structure (page->list.next) for each task. The
modification was part of the customdump patch and posted on March 1, 2003.
Note that, from 2.5 kernel and onwards, all task structures are allocated
from 'task_struct_cachep' cache. Therefore, this kernel modification is
needed only for 2.4 kernel. The 'pdump_lkcdutils.patch' patch is needed to
retrieve tasks from the dump file that has selective tasks. Let me know
(See attached file: procdump-2417.patch) (See attached file:
pdump_lkcdutils.patch) (See attached file: procdump_instructions.html)