]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 359900: Export a sysctl count of RX FIFO overrun events.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 8 Sep 2020 22:50:24 +0000 (22:50 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 8 Sep 2020 22:50:24 +0000 (22:50 +0000)
commit13ccf661f6633628bf977612b86b6b638f0b5273
treed210b06716f565e14e982b6453afa7f1fc295848
parentdb246688667a2c3c38030f20b3f85739071d8950
MFC 359900: Export a sysctl count of RX FIFO overrun events.

uart(4) backends currently detect RX FIFO overrun errors and report
them to the uart(4) core layer.  They are then reported to the generic
TTY layer which promptly ignores them.  As a result, there is
currently no good way to determine if a uart is experiencing RX FIFO
overruns.  One could add a generic per-tty counter, but there did not
appear to be a good way to export those.  Instead, add a sysctl under
the uart(4) sysctl tree to export the count of overruns.
sys/dev/uart/uart_bus.h
sys/dev/uart/uart_core.c