On 5/12/26 7:14 PM, Praveen Talari wrote: > Add tracing to the Qualcomm GENI serial driver to improve runtime > observability. > > Trace hooks are added at key points including termios and clock > configuration, manual control get/set, interrupt handling, and data > TX/RX paths. > > Usage examples: > > Enable all serial traces: > echo 1 > /sys/kernel/debug/tracing/events/qcom_geni_serial/enable > cat /sys/kernel/debug/tracing/trace_pipe > > Example trace output: > > 2517.938432: geni_serial_clk_cfg: a94000.serial: desired_rate=1843200 > clk_rate=7372800 clk_div=4 clk_idx=0 > 2517.938753: geni_serial_irq: a94000.serial: m_irq=0x88800000 > s_irq=0x08000111 dma_tx=0x00000000 dma_rx=0x00000000 > 2517.938803: geni_serial_set_termios: a94000.serial: baud=115200 bpc=8 > tx_trans=0x00000002 tx_par=0x00000000 rx_trans=0x00000000 > rx_par=0x00000000 stop=0 > 2517.938807: geni_serial_set_mctrl: a94000.serial: mctrl=0x8006 > uart_manual_rfr=0x00000000 > 2517.938818: geni_serial_get_mctrl: a94000.serial: mctrl=0x0160 > geni_ios=0x00000001 > 2517.939165: geni_serial_irq: a94000.serial: m_irq=0x00400000 > s_irq=0x00000000 dma_tx=0x00000000 dma_rx=0x00000000 > 2517.939592: geni_serial_tx_data: a94000.serial: tx_len=8 data=61 62 63 > 64 65 66 67 68 > 2517.940610: geni_serial_irq: a94000.serial: m_irq=0x00000001 > s_irq=0x00000000 dma_tx=0x00000003 dma_rx=0x00000000 > 2517.942174: geni_serial_irq: a94000.serial: m_irq=0x08000000 > s_irq=0x08000100 dma_tx=0x00000000 dma_rx=0x00000003 > 2517.942323: geni_serial_rx_data: a94000.serial: rx_len=8 data=61 62 63 > 64 65 66 67 68 > 2517.942680: geni_serial_set_mctrl: a94000.serial: mctrl=0x8000 > uart_manual_rfr=0x80000002
I think the example (or at least the data that it produces) could go under the --- line, there's plenty of docs regarding tracing on docs.kernel.org Reviewed-by: Konrad Dybcio <[email protected]> Konrad
