summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2013-04-14 19:59:38 +0000
committertrociny <trociny@FreeBSD.org>2013-04-14 19:59:38 +0000
commit99603a0f212eda46b1b439585792e59c69eba194 (patch)
treef9e488ebc2a5f599f2e3d9cdff396346324a721e /sys/kern/kern_proc.c
parent0b437872bc482cd395787165f2bf6e16ffdd1cf5 (diff)
downloadFreeBSD-src-99603a0f212eda46b1b439585792e59c69eba194.zip
FreeBSD-src-99603a0f212eda46b1b439585792e59c69eba194.tar.gz
Re-factor coredump routines. For each type of notes an output
function is provided, which is used either to calculate the note size or output it to sbuf. On the first pass the notes are registered in a list and the resulting size is found, on the second pass the list is traversed outputing notes to sbuf. For the sbuf a drain routine is provided that writes data to a core file. The main goal of the change is to make coredump to write notes directly to the core file, without preliminary preparing them all in a memory buffer. Storing notes in memory is not a problem for the current, rather small, set of notes we write to the core, but it may becomes an issue when we start to store procstat notes. Reviewed by: jhb (initial version), kib Discussed with: jhb, kib MFC after: 3 weeks
Diffstat (limited to 'sys/kern/kern_proc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud