xref: /qemu/hw/block/trace-events (revision d0fb9657)
1# See docs/devel/tracing.rst for syntax documentation.
2
3# fdc.c
4fdc_ioport_read(uint8_t reg, uint8_t value) "read reg 0x%02x val 0x%02x"
5fdc_ioport_write(uint8_t reg, uint8_t value) "write reg 0x%02x val 0x%02x"
6
7# pflash_cfi01.c
8# pflash_cfi02.c
9pflash_chip_erase_invalid(const char *name, uint64_t offset) "%s: chip erase: invalid address 0x%" PRIx64
10pflash_chip_erase_start(const char *name) "%s: start chip erase"
11pflash_data_read(const char *name, uint64_t offset, unsigned size, uint32_t value) "%s: data offset:0x%04"PRIx64" size:%u value:0x%04x"
12pflash_data_write(const char *name, uint64_t offset, unsigned size, uint32_t value, uint64_t counter) "%s: data offset:0x%04"PRIx64" size:%u value:0x%04x counter:0x%016"PRIx64
13pflash_device_id(const char *name, uint16_t id) "%s: read device ID: 0x%04x"
14pflash_device_info(const char *name, uint64_t offset) "%s: read device information offset:0x%04" PRIx64
15pflash_erase_complete(const char *name) "%s: sector erase complete"
16pflash_erase_timeout(const char *name, int count) "%s: erase timeout fired; erasing %d sectors"
17pflash_io_read(const char *name, uint64_t offset, unsigned int size, uint32_t value, uint8_t cmd, uint8_t wcycle) "%s: offset:0x%04" PRIx64 " size:%u value:0x%04x cmd:0x%02x wcycle:%u"
18pflash_io_write(const char *name, uint64_t offset, unsigned int size, uint32_t value, uint8_t wcycle) "%s: offset:0x%04"PRIx64" size:%u value:0x%04x wcycle:%u"
19pflash_manufacturer_id(const char *name, uint16_t id) "%s: read manufacturer ID: 0x%04x"
20pflash_mode_read_array(const char *name) "%s: read array mode"
21pflash_postload_cb(const char *name)  "%s: updating bdrv"
22pflash_read_done(const char *name, uint64_t offset, uint64_t ret) "%s: ID:0x%" PRIx64 " ret:0x%" PRIx64
23pflash_read_status(const char *name, uint32_t ret) "%s: status:0x%x"
24pflash_read_unknown_state(const char *name, uint8_t cmd) "%s: unknown command state:0x%x"
25pflash_reset(const char *name) "%s: reset"
26pflash_sector_erase_start(const char *name, int width1, uint64_t start, int width2, uint64_t end) "%s: start sector erase at: 0x%0*" PRIx64 "-0x%0*" PRIx64
27pflash_timer_expired(const char *name, uint8_t cmd) "%s: command 0x%02x done"
28pflash_unlock0_failed(const char *name, uint64_t offset, uint8_t cmd, uint16_t addr0) "%s: unlock0 failed 0x%" PRIx64 " 0x%02x 0x%04x"
29pflash_unlock1_failed(const char *name, uint64_t offset, uint8_t cmd) "%s: unlock0 failed 0x%" PRIx64 " 0x%02x"
30pflash_unsupported_device_configuration(const char *name, uint8_t width, uint8_t max) "%s: unsupported device configuration: device_width:%d max_device_width:%d"
31pflash_write(const char *name, const char *str) "%s: %s"
32pflash_write_block(const char *name, uint32_t value) "%s: block write: bytes:0x%x"
33pflash_write_block_erase(const char *name, uint64_t offset, uint64_t len) "%s: block erase offset:0x%" PRIx64 " bytes:0x%" PRIx64
34pflash_write_failed(const char *name, uint64_t offset, uint8_t cmd) "%s: command failed 0x%" PRIx64 " 0x%02x"
35pflash_write_invalid(const char *name, uint8_t cmd) "%s: invalid write for command 0x%02x"
36pflash_write_invalid_command(const char *name, uint8_t cmd) "%s: invalid command 0x%02x (wc 5)"
37pflash_write_invalid_state(const char *name, uint8_t cmd, int wc) "%s: invalid command state 0x%02x (wc %d)"
38pflash_write_start(const char *name, uint8_t cmd) "%s: starting command 0x%02x"
39pflash_write_unknown(const char *name, uint8_t cmd) "%s: unknown command 0x%02x"
40
41# virtio-blk.c
42virtio_blk_req_complete(void *vdev, void *req, int status) "vdev %p req %p status %d"
43virtio_blk_rw_complete(void *vdev, void *req, int ret) "vdev %p req %p ret %d"
44virtio_blk_handle_write(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sector %"PRIu64" nsectors %zu"
45virtio_blk_handle_read(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sector %"PRIu64" nsectors %zu"
46virtio_blk_submit_multireq(void *vdev, void *mrb, int start, int num_reqs, uint64_t offset, size_t size, bool is_write) "vdev %p mrb %p start %d num_reqs %d offset %"PRIu64" size %zu is_write %d"
47
48# hd-geometry.c
49hd_geometry_lchs_guess(void *blk, int cyls, int heads, int secs) "blk %p LCHS %d %d %d"
50hd_geometry_guess(void *blk, uint32_t cyls, uint32_t heads, uint32_t secs, int trans) "blk %p CHS %u %u %u trans %d"
51
52# xen-block.c
53xen_block_realize(const char *type, uint32_t disk, uint32_t partition) "%s d%up%u"
54xen_block_connect(const char *type, uint32_t disk, uint32_t partition) "%s d%up%u"
55xen_block_disconnect(const char *type, uint32_t disk, uint32_t partition) "%s d%up%u"
56xen_block_unrealize(const char *type, uint32_t disk, uint32_t partition) "%s d%up%u"
57xen_block_size(const char *type, uint32_t disk, uint32_t partition, int64_t sectors) "%s d%up%u %"PRIi64
58xen_disk_realize(void) ""
59xen_disk_unrealize(void) ""
60xen_cdrom_realize(void) ""
61xen_cdrom_unrealize(void) ""
62xen_block_blockdev_add(char *str) "%s"
63xen_block_blockdev_del(const char *node_name) "%s"
64xen_block_device_create(unsigned int number) "%u"
65xen_block_device_destroy(unsigned int number) "%u"
66
67# m25p80.c
68m25p80_flash_erase(void *s, int offset, uint32_t len) "[%p] offset = 0x%"PRIx32", len = %u"
69m25p80_programming_zero_to_one(void *s, uint32_t addr, uint8_t prev, uint8_t data) "[%p] programming zero to one! addr=0x%"PRIx32"  0x%"PRIx8" -> 0x%"PRIx8
70m25p80_reset_done(void *s) "[%p] Reset done."
71m25p80_command_decoded(void *s, uint32_t cmd) "[%p] new command:0x%"PRIx32
72m25p80_complete_collecting(void *s, uint32_t cmd, int n, uint8_t ear, uint32_t cur_addr) "[%p] decode cmd: 0x%"PRIx32" len %d ear 0x%"PRIx8" addr 0x%"PRIx32
73m25p80_populated_jedec(void *s) "[%p] populated jedec code"
74m25p80_chip_erase(void *s) "[%p] chip erase"
75m25p80_select(void *s, const char *what) "[%p] %sselect"
76m25p80_page_program(void *s, uint32_t addr, uint8_t tx) "[%p] page program cur_addr=0x%"PRIx32" data=0x%"PRIx8
77m25p80_transfer(void *s, uint8_t state, uint32_t len, uint8_t needed, uint32_t pos, uint32_t cur_addr, uint8_t t) "[%p] Transfer state 0x%"PRIx8" len 0x%"PRIx32" needed 0x%"PRIx8" pos 0x%"PRIx32" addr 0x%"PRIx32" tx 0x%"PRIx8
78m25p80_read_byte(void *s, uint32_t addr, uint8_t v) "[%p] Read byte 0x%"PRIx32"=0x%"PRIx8
79m25p80_read_data(void *s, uint32_t pos, uint8_t v) "[%p] Read data 0x%"PRIx32"=0x%"PRIx8
80m25p80_binding(void *s) "[%p] Binding to IF_MTD drive"
81m25p80_binding_no_bdrv(void *s) "[%p] No BDRV - binding to RAM"
82