freebsd-dev/sys/conf
Robert Watson 618c7db30a Add textdump(4) facility, which provides an alternative form of kernel
dump using mechanically generated/extracted debugging output rather than
a simple memory dump.  Current sources of debugging output are:

- DDB output capture buffer, if there is captured output to save
- Kernel message buffer
- Kernel configuration, if included in kernel
- Kernel version string
- Panic message

Textdumps are stored in swap/dump partitions as with regular dumps, but
are laid out as ustar files in order to allow multiple parts to be stored
as a stream of sequentially written blocks.  Blocks are written out in
reverse order, as the size of a textdump isn't known a priori.  As with
regular dumps, they will be extracted using savecore(8).

One new DDB(4) command is added, "textdump", which accepts "set",
"unset", and "status" arguments.  By default, normal kernel dumps are
generated unless "textdump set" is run in order to schedule a textdump.
It can be canceled using "textdump unset" to restore generation of a
normal kernel dump.

Several sysctls exist to configure aspects of textdumps;
debug.ddb.textdump.pending can be set to check whether a textdump is
pending, or set/unset in order to control whether the next kernel dump
will be a textdump from userspace.

While textdumps don't have to be generated as a result of a DDB script
run automatically as part of a kernel panic, this is a particular useful
way to use them, as instead of generating a complete memory dump, a
simple transcript of an automated DDB session can be captured using the
DDB output capture and textdump facilities.  This can be used to
generate quite brief kernel bug reports rich in debugging information
but not dependent on kernel symbol tables or precisely synchronized
source code.  Most textdumps I generate are less than 100k including
the full message buffer.  Using textdumps with an interactive debugging
session is also useful, with capture being enabled/disabled in order to
record some but not all of the DDB session.

MFC after:	3 months
2007-12-26 11:32:33 +00:00
..
defines
files Add textdump(4) facility, which provides an alternative form of kernel 2007-12-26 11:32:33 +00:00
files.amd64 Add the 'hptrr' driver for supporting the following Highpoint RocketRAID 2007-12-15 00:56:17 +00:00
files.arm Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
files.i386 "vt" doesn't refer to any existing device anymore. Remove it. 2007-12-25 22:41:29 +00:00
files.ia64 Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
files.pc98 Catch up pc98 for i386 stack(9) changes: 2007-12-03 11:38:28 +00:00
files.powerpc Redefine bus_space_tag_t on PowerPC from a 32-bit integral to 2007-12-19 18:00:50 +00:00
files.sparc64 Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
files.sun4v Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
kern.mk Temporarily add 'WITH_GCC3' that removes -Wno-pointer-sign from the 2007-05-24 21:53:42 +00:00
kern.post.mk If KERNEL_EXTRA is defined, make kernel-all target depend on it. 2007-03-23 21:55:59 +00:00
kern.pre.mk Re-enable -Werror for PowerPC. This should really be unconditional again. 2007-08-08 19:12:06 +00:00
kmod_syms.awk
kmod.mk Re-enable -Werror for modules. 2007-11-19 16:24:10 +00:00
ldscript.amd64
ldscript.arm Create a non-elf pure binary version of the kernel as well. 2005-11-24 02:25:49 +00:00
ldscript.i386
ldscript.ia64
ldscript.powerpc
ldscript.sparc64
Makefile.amd64 Kernel and hwpmc(4) support for callchain capture. 2007-12-07 08:20:17 +00:00
Makefile.arm Bring in two bandaids to get the elf trampoline to work again, until I find 2007-07-27 14:42:25 +00:00
Makefile.i386 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.ia64 Remove definition of the GCC3 variable. It was introduced in rev. 2007-06-02 21:30:39 +00:00
Makefile.pc98 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.powerpc Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.sparc64 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.sun4v Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
makeLINT.mk
makeLINT.sed
newvers.sh To honor the birth of RELENG_7 bump HEAD to 8.0-CURRENT. 2007-10-11 04:28:08 +00:00
NOTES Make TCP offload work on HEAD (modulo negative interaction between sbcompress 2007-12-17 08:17:51 +00:00
options - Re-implement lock profiling in such a way that it no longer breaks 2007-12-15 23:13:31 +00:00
options.amd64 Allow the sio acpi attachment to be disabled (ie: use hints only). This 2007-11-30 21:45:07 +00:00
options.arm Add CPU_ARM9E 2007-10-31 07:28:45 +00:00
options.i386 Allow the sio acpi attachment to be disabled (ie: use hints only). This 2007-11-30 21:45:07 +00:00
options.ia64 Add option EXCEPTION_TRACING, which enables KTR-like functionality 2007-07-30 22:42:33 +00:00
options.pc98 Temporary disconnect i4bing, i4bisppp and i4bipr from the build for 2007-07-04 00:18:39 +00:00
options.powerpc Rename OEA to AIM. The former means nothing as it applies to all 2007-12-16 00:45:56 +00:00
options.sparc64 - In sunkbd_probe_keyboard() don't bother to determine the keyboard layout 2006-11-02 00:01:15 +00:00
options.sun4v Remove remnants from the sparc64 origin of this file and which are 2007-01-19 12:22:50 +00:00
systags.sh Use a simpler way to reach the <machine> include dir, which should 2005-12-03 21:37:54 +00:00