freebsd-dev/sys/arm
Mitchell Horne 22e6a67086 Add a routine to dump boot metadata
The boot metadata (also referred to as modinfo, or preload metadata)
provides information about the size and location of the kernel,
pre-loaded modules, and other metadata (e.g. the EFI framebuffer) to be
consumed during by the kernel during early boot. It is encoded as a
series of type-length-value entries and is usually constructed by
loader(8) and passed to the kernel. It is also faked on some
architectures when booted by other means.

Although much of the module information is available via kldstat(8),
there is no easy way to debug the metadata in its entirety. Add some
routines to parse this data and allow it to be printed to the console
during early boot or output via a sysctl.

Since the output can be lengthly, printing to the console is gated
behind the debug.dump_modinfo_at_boot kenv variable as well as the
BOOTVERBOSE flag. The sysctl to print the metadata is named
debug.dump_modinfo.

Reviewed by:	tsoome
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D26687
2020-10-08 18:02:05 +00:00
..
allwinner aw_pwm: add a check and some comments related to long periods 2020-09-25 07:41:51 +00:00
altera/socfpga arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
amlogic/aml8726 arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
annapurna/alpine arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
arm Add a routine to dump boot metadata 2020-10-08 18:02:05 +00:00
broadcom/bcm2835 bcm2838_pci.c: Respect DMA limits of controller. 2020-09-12 23:49:43 +00:00
cloudabi32 Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. 2020-09-27 18:47:06 +00:00
conf Fix LINT: Add backlight to NOTES 2020-10-02 20:52:09 +00:00
freescale arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
include Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. 2020-09-27 18:47:06 +00:00
linux Regen after r366145. 2020-09-25 10:05:38 +00:00
mv arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
nvidia arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
rockchip arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
samsung/exynos arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
ti arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
versatile arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
xilinx arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00