]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Support compressed crash dumps in crashinfo(8).
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 23 Jul 2018 18:08:56 +0000 (18:08 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 23 Jul 2018 18:08:56 +0000 (18:08 +0000)
commit6f77212f270f7644575fe3705ed2596eafe0577d
tree679e35975fccbae8ddf2fea117842db8d072056f
parentc798532ffa445cc95e4099e94081f7220c6cf0c9
Support compressed crash dumps in crashinfo(8).

Temporarily decompress a copy of a crash dump compressed with either
gzip or zstd and run various tools against the decompressed copy while
generating the crash information.  The uncompressed copy is deleted when
the script exits.

Note that crashinfo is enabled by default, so this will attempt to
decompress the most recent compressed crash dump after a crash that
generates a compressed crash dump.  Users who wish to only do offline
analysis of compressed crash dumps can disable crashinfo in rc.conf.

Tested by: ler
Reviewed by: markj
MFC after: 2 weeks
usr.sbin/crashinfo/crashinfo.sh