xref: /openbmc/qemu/hw/char/trace-events (revision 284d697c)
1# See docs/devel/tracing.txt for syntax documentation.
2
3# parallel.c
4parallel_ioport_read(const char *desc, uint16_t addr, uint8_t value) "read [%s] addr 0x%02x val 0x%02x"
5parallel_ioport_write(const char *desc, uint16_t addr, uint8_t value) "write [%s] addr 0x%02x val 0x%02x"
6
7# serial.c
8serial_read(uint16_t addr, uint8_t value) "read addr 0x%02x val 0x%02x"
9serial_write(uint16_t addr, uint8_t value) "write addr 0x%02x val 0x%02x"
10serial_update_parameters(uint64_t baudrate, char parity, int data_bits, int stop_bits) "baudrate=%"PRIu64" parity='%c' data=%d stop=%d"
11
12# virtio-serial-bus.c
13virtio_serial_send_control_event(unsigned int port, uint16_t event, uint16_t value) "port %u, event %u, value %u"
14virtio_serial_throttle_port(unsigned int port, bool throttle) "port %u, throttle %d"
15virtio_serial_handle_control_message(uint16_t event, uint16_t value) "event %u, value %u"
16virtio_serial_handle_control_message_port(unsigned int port) "port %u"
17
18# virtio-console.c
19virtio_console_flush_buf(unsigned int port, size_t len, ssize_t ret) "port %u, in_len %zu, out_len %zd"
20virtio_console_chr_read(unsigned int port, int size) "port %u, size %d"
21virtio_console_chr_event(unsigned int port, int event) "port %u, event %d"
22
23# grlib_apbuart.c
24grlib_apbuart_event(int event) "event:%d"
25grlib_apbuart_writel_unknown(uint64_t addr, uint32_t value) "addr 0x%"PRIx64" value 0x%x"
26grlib_apbuart_readl_unknown(uint64_t addr) "addr 0x%"PRIx64
27
28# lm32_juart.c
29lm32_juart_get_jtx(uint32_t value) "jtx 0x%08x"
30lm32_juart_set_jtx(uint32_t value) "jtx 0x%08x"
31lm32_juart_get_jrx(uint32_t value) "jrx 0x%08x"
32lm32_juart_set_jrx(uint32_t value) "jrx 0x%08x"
33
34# lm32_uart.c
35lm32_uart_memory_write(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
36lm32_uart_memory_read(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
37lm32_uart_irq_state(int level) "irq state %d"
38
39# milkymist-uart.c
40milkymist_uart_memory_read(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
41milkymist_uart_memory_write(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
42milkymist_uart_raise_irq(void) "Raise IRQ"
43milkymist_uart_lower_irq(void) "Lower IRQ"
44
45# escc.c
46escc_put_queue(char channel, int b) "channel %c put: 0x%02x"
47escc_get_queue(char channel, int val) "channel %c get 0x%02x"
48escc_update_irq(int irq) "IRQ = %d"
49escc_update_parameters(char channel, int speed, int parity, int data_bits, int stop_bits) "channel %c: speed=%d parity=%c data=%d stop=%d"
50escc_mem_writeb_ctrl(char channel, uint32_t reg, uint32_t val) "Write channel %c, reg[%d] = 0x%2.2x"
51escc_mem_writeb_data(char channel, uint32_t val) "Write channel %c, ch %d"
52escc_mem_readb_ctrl(char channel, uint32_t reg, uint8_t val) "Read channel %c, reg[%d] = 0x%2.2x"
53escc_mem_readb_data(char channel, uint32_t ret) "Read channel %c, ch %d"
54escc_serial_receive_byte(char channel, int ch) "channel %c put ch %d"
55escc_sunkbd_event_in(int ch, const char *name, int down) "QKeyCode 0x%2.2x [%s], down %d"
56escc_sunkbd_event_out(int ch) "Translated keycode 0x%2.2x"
57escc_kbd_command(int val) "Command %d"
58escc_sunmouse_event(int dx, int dy, int buttons_state) "dx=%d dy=%d buttons=0x%01x"
59
60# pl011.c
61pl011_irq_state(int level) "irq state %d"
62pl011_read(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
63pl011_read_fifo(int read_count) "FIFO read, read_count now %d"
64pl011_write(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
65pl011_can_receive(uint32_t lcr, int read_count, int r) "LCR 0x%08x read_count %d returning %d"
66pl011_put_fifo(uint32_t c, int read_count) "new char 0x%x read_count now %d"
67pl011_put_fifo_full(void) "FIFO now full, RXFF set"
68pl011_baudrate_change(unsigned int baudrate, uint64_t clock, uint32_t ibrd, uint32_t fbrd) "new baudrate %u (clk: %" PRIu64 "hz, ibrd: %" PRIu32 ", fbrd: %" PRIu32 ")"
69
70# cmsdk-apb-uart.c
71cmsdk_apb_uart_read(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB UART read: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u"
72cmsdk_apb_uart_write(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB UART write: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u"
73cmsdk_apb_uart_reset(void) "CMSDK APB UART: reset"
74cmsdk_apb_uart_receive(uint8_t c) "CMSDK APB UART: got character 0x%x from backend"
75cmsdk_apb_uart_tx_pending(void) "CMSDK APB UART: character send to backend pending"
76cmsdk_apb_uart_tx(uint8_t c) "CMSDK APB UART: character 0x%x sent to backend"
77cmsdk_apb_uart_set_params(int speed) "CMSDK APB UART: params set to %d 8N1"
78
79# nrf51_uart.c
80nrf51_uart_read(uint64_t addr, uint64_t r, unsigned int size) "addr 0x%" PRIx64 " value 0x%" PRIx64 " size %u"
81nrf51_uart_write(uint64_t addr, uint64_t value, unsigned int size) "addr 0x%" PRIx64 " value 0x%" PRIx64 " size %u"
82
83# exynos4210_uart.c
84exynos_uart_dmabusy(uint32_t channel) "UART%d: DMA busy (Rx buffer empty)"
85exynos_uart_dmaready(uint32_t channel) "UART%d: DMA ready"
86exynos_uart_irq_raised(uint32_t channel, uint32_t reg) "UART%d: IRQ raised: 0x%08"PRIx32
87exynos_uart_irq_lowered(uint32_t channel) "UART%d: IRQ lowered"
88exynos_uart_update_params(uint32_t channel, int speed, uint8_t parity, int data, int stop, uint64_t wordtime) "UART%d: speed: %d, parity: %c, data bits: %d, stop bits: %d wordtime: %"PRId64"ns"
89exynos_uart_write(uint32_t channel, uint32_t offset, const char *name, uint64_t val) "UART%d: <0x%04x> %s <- 0x%" PRIx64
90exynos_uart_read(uint32_t channel, uint32_t offset, const char *name, uint64_t val) "UART%d: <0x%04x> %s -> 0x%" PRIx64
91exynos_uart_rx_fifo_reset(uint32_t channel) "UART%d: Rx FIFO Reset"
92exynos_uart_tx_fifo_reset(uint32_t channel) "UART%d: Tx FIFO Reset"
93exynos_uart_tx(uint32_t channel, uint8_t ch) "UART%d: Tx 0x%02"PRIx32
94exynos_uart_intclr(uint32_t channel, uint32_t reg) "UART%d: interrupts cleared: 0x%08"PRIx32
95exynos_uart_ro_write(uint32_t channel, const char *name, uint32_t reg) "UART%d: Trying to write into RO register: %s [0x%04"PRIx32"]"
96exynos_uart_rx(uint32_t channel, uint8_t ch) "UART%d: Rx 0x%02"PRIx32
97exynos_uart_rx_error(uint32_t channel) "UART%d: Rx error"
98exynos_uart_wo_read(uint32_t channel, const char *name, uint32_t reg) "UART%d: Trying to read from WO register: %s [0x%04"PRIx32"]"
99exynos_uart_rxsize(uint32_t channel, uint32_t size) "UART%d: Rx FIFO size: %d"
100exynos_uart_channel_error(uint32_t channel) "Wrong UART channel number: %d"
101exynos_uart_rx_timeout(uint32_t channel, uint32_t stat, uint32_t intsp) "UART%d: Rx timeout stat=0x%x intsp=0x%x"
102
103# cadence_uart.c
104cadence_uart_baudrate(unsigned baudrate) "baudrate %u"
105