--- zzzz-none-000/linux-4.9.279/drivers/tty/serial/serial_core.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/drivers/tty/serial/serial_core.c 2023-02-08 10:58:14.000000000 +0000 @@ -20,6 +20,10 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/* +Includes Intel Corporation's changes/modifications dated: 2014, 2017. +Changed/modified portions - Copyright (c) 2014-2017, Intel Corporation. +*/ #include #include #include @@ -1771,6 +1775,7 @@ char stat_buf[32]; unsigned int status; int mmio; + int j; mutex_lock(&port->mutex); uport = uart_port_check(state); @@ -1834,6 +1839,14 @@ seq_puts(m, stat_buf); } seq_putc(m, '\n'); + seq_printf(m, "Rx histogram (num of bytes read from fifo): \n"); + if (uport->irq == 8) + { + for (j = 0; j < 16; j++) + { + seq_printf(m, "%d bytes: %d\n", j+1, uport->histogram_RX_stats[j]); + } + } #undef STATBIT #undef INFOBIT out: