Date: Tue, 2 Mar 2010 06:58:58 +0000 (UTC) From: Alfred Perlstein <alfred@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/conf files options src/sys/kern imgact_elf.c kern_gzio.c kern_sig.c src/sys/net zlib.h zutil.h src/sys/sys eventhandler.h imgact.h imgact_aout.h imgact_elf.h sysent.h Message-ID: <201003020659.o226xnQG086195@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alfred 2010-03-02 06:58:58 UTC
FreeBSD src repository
Modified files:
sys/conf files options
sys/kern imgact_elf.c kern_sig.c
sys/net zlib.h
sys/sys eventhandler.h imgact.h imgact_aout.h
imgact_elf.h sysent.h
Added files:
sys/kern kern_gzio.c
sys/net zutil.h
Log:
SVN rev 204552 on 2010-03-02 06:58:58Z by alfred
Merge projects/enhanced_coredumps (r204346) into HEAD:
Enhanced process coredump routines.
This brings in the following features:
1) Limit number of cores per process via the %I coredump formatter.
Example:
if corefilename is set to %N.%I.core AND num_cores = 3, then
if a process "rpd" cores, then the corefile will be named
"rpd.0.core", however if it cores again, then the kernel will
generate "rpd.1.core" until we hit the limit of "num_cores".
this is useful to get several corefiles, but also prevent filling
the machine with corefiles.
2) Encode machine hostname in core dump name via %H.
3) Compress coredumps, useful for embedded platforms with limited space.
A sysctl kern.compress_user_cores is made available if turned on.
To enable compressed coredumps, the following config options need to be set:
options COMPRESS_USER_CORES
device zlib # brings in the zlib requirements.
device gzio # brings in the kernel vnode gzip output module.
4) Eventhandlers are fired to indicate coredumps in progress.
5) The imgact sv_coredump routine has grown a flag to pass in more
state, currently this is used only for passing a flag down to compress
the coredump or not.
Note that the gzio facility can be used for generic output of gzip'd
streams via vnodes.
Obtained from: Juniper Networks
Reviewed by: kan
Revision Changes Path
1.1502 +2 -1 src/sys/conf/files
1.700 +1 -0 src/sys/conf/options
1.204 +156 -16 src/sys/kern/imgact_elf.c
1.1 +406 -0 src/sys/kern/kern_gzio.c (new)
1.387 +121 -9 src/sys/kern/kern_sig.c
1.11 +7 -0 src/sys/net/zlib.h
1.1 +231 -0 src/sys/net/zutil.h (new)
1.46 +13 -0 src/sys/sys/eventhandler.h
1.44 +2 -0 src/sys/sys/imgact.h
1.25 +2 -1 src/sys/sys/imgact_aout.h
1.37 +1 -1 src/sys/sys/imgact_elf.h
1.61 +1 -1 src/sys/sys/sysent.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003020659.o226xnQG086195>
