serial: expose buf_overrun count through proc interface
authorJeremy Kerr <jk@ozlabs.org>
Wed, 21 Mar 2018 02:52:38 +0000 (10:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Mar 2018 15:34:06 +0000 (16:34 +0100)
commit4f794097797f551917b68797e39f25fcb17d5b3a
tree0e3744bc26a6170e36de43337d3d3ff1828839a3
parentc685af1108d7c303f0b901413405d68eaeac4477
serial: expose buf_overrun count through proc interface

The buf_overrun count is only every written, and not exposed to
userspace anywhere. This means that dropped characters due to flip
buffer overruns are never visible to userspace.

The /proc/tty/driver/serial file exports a bunch of metrics (including
hardware overruns) already, so add the buf_overrun (as "bo:") to this
file.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c