freebsd-nq/sbin
Gleb Smirnoff c999e3481d dmesg: detect wrapped msgbuf on the kernel side and if so, skip first line
Since 59f256ec35 dmesg(8) will always skip first line of the message
buffer, cause it might be incomplete.  The problem is that in most cases
it is complete, valid and contains the "---<<BOOT>>---" marker.  This
skip can be disabled with '-a', but that would also unhide all non-kernel
messages.  Move this functionality from dmesg(8) to kernel, since kernel
actually knows if wrap has happened or not.

The main motivation for the change is not actually the value of the
"---<<BOOT>>---" marker.  The problem breaks unit tests, that clear
message buffer, perform a test and then check the message buffer for
a result.  Example of such test is sys/kern/sonewconn_overflow.
2022-02-05 13:35:31 -08:00
..
adjkerntz
bectl
bsdlabel
camcontrol update external URL 2022-02-05 17:09:48 +00:00
ccdconfig
clri
comcontrol
conscontrol
ddb
decryptcore
devd devd: correct wifi regexp 2022-01-09 10:16:31 -07:00
devfs
devmatch
dhclient
dmesg dmesg: detect wrapped msgbuf on the kernel side and if so, skip first line 2022-02-05 13:35:31 -08:00
dump
dumpfs
dumpon
etherswitchcfg
fdisk
ffsinfo
fsck fsck(8): Fix typo 2022-01-12 13:52:23 +08:00
fsck_ffs Properly fix parameter to sysctlnametomib(). 2022-02-04 14:04:12 -08:00
fsck_msdosfs
fsdb
fsirand
gbde
geom
ggate ggatec: Use ANSI C definition for init_initial_buffer_size. 2022-01-31 17:12:04 -08:00
growfs
gvinum
hastctl
hastd
ifconfig ifconfig: remove debug printf introduced in 779fd05344 2022-01-29 11:19:01 +00:00
init
ipf ipfilter: Restore ipfsync 2022-01-07 21:46:53 -08:00
ipfw dnctl: Support reading config from file like ipfw(8) 2022-01-03 09:50:18 +01:00
kldconfig
kldload
kldstat
kldunload
ldconfig ldconfig: remove two symbols 2022-01-08 12:45:46 +02:00
md5 update external URLs 2022-02-05 08:19:56 +00:00
mdconfig
mdmfs
mknod
mksnap_ffs
mount vfslist.c: initialize skipvfs variable 2022-01-05 23:00:36 +01:00
mount_cd9660
mount_fusefs
mount_msdosfs
mount_nfs mount_nfs: Add a "bgnow" NFS mount option 2022-01-11 08:21:35 -08:00
mount_nullfs
mount_udf
mount_unionfs
natd
newfs
newfs_msdos
nfsiod
nos-tun
nvmecontrol
pfctl libpfctl: fix creatorid endianness 2022-01-27 09:07:27 +01:00
pfilctl
pflogd
ping update external URL 2022-02-05 17:11:18 +00:00
ping6
quotacheck
rcorder
reboot
recoverdisk
resolvconf
restore
route route: remove write-only struct hostent from getaddr() 2022-01-06 10:45:44 -05:00
routed
rtsol
savecore
sconfig
setkey update external URL 2022-02-05 17:14:27 +00:00
shutdown
swapon
sysctl
tests
tunefs
umount
veriexec
zfsbootcfg
Makefile
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.mips
Makefile.powerpc64