--- zzzz-none-000/linux-5.15.111/drivers/tty/serial/serial_core.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/drivers/tty/serial/serial_core.c 2024-02-07 09:28:02.000000000 +0000 @@ -7,6 +7,10 @@ * Copyright 1999 ARM Limited * Copyright (C) 2000-2001 Deep Blue Solutions Ltd. */ +/* +Includes Intel Corporation's changes/modifications dated: 2014, 2017. +Changed/modified portions - Copyright (c) 2014-2017, Intel Corporation. +*/ #include #include #include @@ -1861,6 +1865,7 @@ char stat_buf[32]; unsigned int status; int mmio; + int j; mutex_lock(&port->mutex); uport = uart_port_check(state); @@ -1926,6 +1931,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: