1d0fb9657SStefano Garzarella# See docs/devel/tracing.rst for syntax documentation. 23eee2611SJohn Snow 3500016e5SMarkus Armbruster# core.c 43eee2611SJohn Snow# portio 5335ca2f2SJohn Snowide_ioport_read(uint32_t addr, const char *reg, uint32_t val, void *bus, void *s) "IDE PIO rd @ 0x%"PRIx32" (%s); val 0x%02"PRIx32"; bus %p IDEState %p" 6335ca2f2SJohn Snowide_ioport_write(uint32_t addr, const char *reg, uint32_t val, void *bus, void *s) "IDE PIO wr @ 0x%"PRIx32" (%s); val 0x%02"PRIx32"; bus %p IDEState %p" 73eee2611SJohn Snowide_status_read(uint32_t addr, uint32_t val, void *bus, void *s) "IDE PIO rd @ 0x%"PRIx32" (Alt Status); val 0x%02"PRIx32"; bus %p; IDEState %p" 898d98912SJohn Snowide_ctrl_write(uint32_t addr, uint32_t val, void *bus) "IDE PIO wr @ 0x%"PRIx32" (Device Control); val 0x%02"PRIx32"; bus %p" 91787efc3SJohn Snow# Warning: verbose 101787efc3SJohn Snowide_data_readw(uint32_t addr, uint32_t val, void *bus, void *s) "IDE PIO rd @ 0x%"PRIx32" (Data: Word); val 0x%04"PRIx32"; bus %p; IDEState %p" 111787efc3SJohn Snowide_data_writew(uint32_t addr, uint32_t val, void *bus, void *s) "IDE PIO wr @ 0x%"PRIx32" (Data: Word); val 0x%04"PRIx32"; bus %p; IDEState %p" 121787efc3SJohn Snowide_data_readl(uint32_t addr, uint32_t val, void *bus, void *s) "IDE PIO rd @ 0x%"PRIx32" (Data: Long); val 0x%08"PRIx32"; bus %p; IDEState %p" 131787efc3SJohn Snowide_data_writel(uint32_t addr, uint32_t val, void *bus, void *s) "IDE PIO wr @ 0x%"PRIx32" (Data: Long); val 0x%08"PRIx32"; bus %p; IDEState %p" 143eee2611SJohn Snow# misc 15*783f4474SPhilippe Mathieu-Daudéide_bus_exec_cmd(void *bus, void *state, uint32_t cmd) "IDE exec cmd: bus %p; state %p; cmd 0x%02x" 163eee2611SJohn Snowide_cancel_dma_sync_buffered(void *fn, void *req) "invoking cb %p of buffered request %p with -ECANCELED" 173eee2611SJohn Snowide_cancel_dma_sync_remaining(void) "draining all remaining requests" 183eee2611SJohn Snowide_sector_read(int64_t sector_num, int nsectors) "sector=%"PRId64" nsectors=%d" 193eee2611SJohn Snowide_sector_write(int64_t sector_num, int nsectors) "sector=%"PRId64" nsectors=%d" 203eee2611SJohn Snowide_reset(void *s) "IDEstate %p" 210e168d35SJohn Snowide_bus_reset_aio(void) "aio_cancel" 220e168d35SJohn Snowide_dma_cb(void *s, int64_t sector_num, int n, const char *dma) "IDEState %p; sector_num=%"PRId64" n=%d cmd=%s" 233eee2611SJohn Snow 243eee2611SJohn Snow# BMDMA HBAs: 253eee2611SJohn Snow 26500016e5SMarkus Armbruster# cmd646.c 273eee2611SJohn Snowbmdma_read_cmd646(uint64_t addr, uint32_t val) "bmdma: readb 0x%"PRIx64" : 0x%02x" 283eee2611SJohn Snowbmdma_write_cmd646(uint64_t addr, uint64_t val) "bmdma: writeb 0x%"PRIx64" : 0x%02"PRIx64 293eee2611SJohn Snow 30500016e5SMarkus Armbruster# pci.c 313eee2611SJohn Snowbmdma_reset(void) "" 323eee2611SJohn Snowbmdma_cmd_writeb(uint32_t val) "val: 0x%08x" 333eee2611SJohn Snowbmdma_addr_read(uint64_t data) "data: 0x%016"PRIx64 343eee2611SJohn Snowbmdma_addr_write(uint64_t data) "data: 0x%016"PRIx64 353eee2611SJohn Snow 36500016e5SMarkus Armbruster# piix.c 373eee2611SJohn Snowbmdma_read(uint64_t addr, uint8_t val) "bmdma: readb 0x%"PRIx64" : 0x%02x" 383eee2611SJohn Snowbmdma_write(uint64_t addr, uint64_t val) "bmdma: writeb 0x%"PRIx64" : 0x%02"PRIx64 393eee2611SJohn Snow 40500016e5SMarkus Armbruster# sii3112.c 41a9dd6604SBALATON Zoltansii3112_read(int size, uint64_t addr, uint64_t val) "bmdma: read (size %d) 0x%"PRIx64" : 0x%02"PRIx64 42a9dd6604SBALATON Zoltansii3112_write(int size, uint64_t addr, uint64_t val) "bmdma: write (size %d) 0x%"PRIx64" : 0x%02"PRIx64 43a9dd6604SBALATON Zoltansii3112_set_irq(int channel, int level) "channel %d level %d" 44a9dd6604SBALATON Zoltan 45500016e5SMarkus Armbruster# via.c 463eee2611SJohn Snowbmdma_read_via(uint64_t addr, uint32_t val) "bmdma: readb 0x%"PRIx64" : 0x%02x" 473eee2611SJohn Snowbmdma_write_via(uint64_t addr, uint64_t val) "bmdma: writeb 0x%"PRIx64" : 0x%02"PRIx64 4882a13ff8SJohn Snow 49500016e5SMarkus Armbruster# atapi.c 5082a13ff8SJohn Snowcd_read_sector_sync(int lba) "lba=%d" 5182a13ff8SJohn Snowcd_read_sector_cb(int lba, int ret) "lba=%d ret=%d" 5282a13ff8SJohn Snowcd_read_sector(int lba) "lba=%d" 5382a13ff8SJohn Snowide_atapi_cmd_error(void *s, int sense_key, int asc) "IDEState: %p; sense=0x%x asc=0x%x" 5482a13ff8SJohn Snowide_atapi_cmd_reply_end(void *s, int tx_size, int elem_tx_size, int32_t index) "IDEState %p; reply: tx_size=%d elem_tx_size=%d index=%"PRId32 5582a13ff8SJohn Snowide_atapi_cmd_reply_end_eot(void *s, int status) "IDEState: %p; end of transfer, status=0x%x" 5682a13ff8SJohn Snowide_atapi_cmd_reply_end_bcl(void *s, int bcl) "IDEState: %p; byte_count_limit=%d" 5782a13ff8SJohn Snowide_atapi_cmd_reply_end_new(void *s, int status) "IDEState: %p; new transfer started, status=0x%x" 5882a13ff8SJohn Snowide_atapi_cmd_check_status(void *s) "IDEState: %p" 5982a13ff8SJohn Snowide_atapi_cmd_read(void *s, const char *method, int lba, int nb_sectors) "IDEState: %p; read %s: LBA=%d nb_sectors=%d" 6082a13ff8SJohn Snowide_atapi_cmd(void *s, uint8_t cmd) "IDEState: %p; cmd: 0x%02x" 610e168d35SJohn Snowide_atapi_cmd_read_dma_cb_aio(void *s, int lba, int n) "IDEState: %p; aio read: lba=%d n=%d" 6282a13ff8SJohn Snow# Warning: Verbose 6382a13ff8SJohn Snowide_atapi_cmd_packet(void *s, uint16_t limit, const char *packet) "IDEState: %p; limit=0x%x packet: %s" 64e4baa9f0SJohn Snow 65500016e5SMarkus Armbruster# ahci.c 66e5389163SJohn Snowahci_port_read(void *s, int port, const char *reg, int offset, uint32_t ret) "ahci(%p)[%d]: port read [reg:%s] @ 0x%x: 0x%08x" 67e5389163SJohn Snowahci_port_read_default(void *s, int port, const char *reg, int offset) "ahci(%p)[%d]: unimplemented port read [reg:%s] @ 0x%x" 68e4baa9f0SJohn Snowahci_irq_raise(void *s) "ahci(%p): raise irq" 69e4baa9f0SJohn Snowahci_irq_lower(void *s) "ahci(%p): lower irq" 70e4baa9f0SJohn Snowahci_check_irq(void *s, uint32_t old, uint32_t new) "ahci(%p): check irq 0x%08x --> 0x%08x" 715fa0feecSJohn Snowahci_trigger_irq(void *s, int port, const char *name, uint32_t val, uint32_t old, uint32_t new, uint32_t effective) "ahci(%p)[%d]: trigger irq +%s (0x%08x); irqstat: 0x%08x --> 0x%08x; effective: 0x%08x" 7206e35065SJohn Snowahci_port_write(void *s, int port, const char *reg, int offset, uint32_t val) "ahci(%p)[%d]: port write [reg:%s] @ 0x%x: 0x%08x" 7306e35065SJohn Snowahci_port_write_unimpl(void *s, int port, const char *reg, int offset, uint32_t val) "ahci(%p)[%d]: unimplemented port write [reg:%s] @ 0x%x: 0x%08x" 74e4baa9f0SJohn Snowahci_mem_read_32(void *s, uint64_t addr, uint32_t val) "ahci(%p): mem read @ 0x%"PRIx64": 0x%08x" 759da8ac32SJohn Snowahci_mem_read_32_default(void *s, uint64_t addr, uint32_t val) "ahci(%p): mem read @ 0x%"PRIx64": 0x%08x" 769da8ac32SJohn Snowahci_mem_read_32_host(void *s, const char *reg, uint64_t addr, uint32_t val) "ahci(%p): mem read [reg:%s] @ 0x%"PRIx64": 0x%08x" 779da8ac32SJohn Snowahci_mem_read_32_host_default(void *s, const char *reg, uint64_t addr) "ahci(%p): unimplemented mem read [reg:%s] @ 0x%"PRIx64 78e4baa9f0SJohn Snowahci_mem_read(void *s, unsigned size, uint64_t addr, uint64_t val) "ahci(%p): read%u @ 0x%"PRIx64": 0x%016"PRIx64 79e4baa9f0SJohn Snowahci_mem_write(void *s, unsigned size, uint64_t addr, uint64_t val) "ahci(%p): write%u @ 0x%"PRIx64": 0x%016"PRIx64 8001796126SJohn Snowahci_mem_write_host_unimpl(void *s, unsigned size, const char *reg, uint64_t addr) "ahci(%p) unimplemented write%u [reg:%s] @ 0x%"PRIx64 8101796126SJohn Snowahci_mem_write_host(void *s, unsigned size, const char *reg, uint64_t addr, uint64_t val) "ahci(%p) write%u [reg:%s] @ 0x%"PRIx64": 0x%016"PRIx64 8201796126SJohn Snowahci_mem_write_unimpl(void *s, unsigned size, uint64_t addr, uint64_t val) "ahci(%p): write%u to unknown register 0x%"PRIx64": 0x%016"PRIx64 83e4baa9f0SJohn Snowahci_set_signature(void *s, int port, uint8_t nsector, uint8_t sector, uint8_t lcyl, uint8_t hcyl, uint32_t sig) "ahci(%p)[%d]: set signature sector:0x%02x nsector:0x%02x lcyl:0x%02x hcyl:0x%02x (cumulatively: 0x%08x)" 84e4baa9f0SJohn Snowahci_reset_port(void *s, int port) "ahci(%p)[%d]: reset port" 85e4baa9f0SJohn Snowahci_unmap_fis_address_null(void *s, int port) "ahci(%p)[%d]: Attempt to unmap NULL FIS address" 86e4baa9f0SJohn Snowahci_unmap_clb_address_null(void *s, int port) "ahci(%p)[%d]: Attempt to unmap NULL CLB address" 87e4baa9f0SJohn Snowahci_populate_sglist(void *s, int port) "ahci(%p)[%d]" 88e4baa9f0SJohn Snowahci_populate_sglist_no_prdtl(void *s, int port, uint16_t opts) "ahci(%p)[%d]: no sg list given by guest: 0x%04x" 89e4baa9f0SJohn Snowahci_populate_sglist_no_map(void *s, int port) "ahci(%p)[%d]: DMA mapping failed" 90e4baa9f0SJohn Snowahci_populate_sglist_short_map(void *s, int port) "ahci(%p)[%d]: mapped less than expected" 91e4baa9f0SJohn Snowahci_populate_sglist_bad_offset(void *s, int port, int off_idx, int64_t off_pos) "ahci(%p)[%d]: Incorrect offset! off_idx: %d, off_pos: %"PRId64 92e4baa9f0SJohn Snowncq_finish(void *s, int port, uint8_t tag) "ahci(%p)[%d][tag:%d]: NCQ transfer finished" 93e4baa9f0SJohn Snowexecute_ncq_command_read(void *s, int port, uint8_t tag, int count, int64_t lba) "ahci(%p)[%d][tag:%d]: NCQ reading %d sectors from LBA %"PRId64 94eb8fde18SFiona Ebnerexecute_ncq_command_write(void *s, int port, uint8_t tag, int count, int64_t lba) "ahci(%p)[%d][tag:%d]: NCQ writing %d sectors to LBA %"PRId64 95e4baa9f0SJohn Snowexecute_ncq_command_unsup(void *s, int port, uint8_t tag, uint8_t cmd) "ahci(%p)[%d][tag:%d]: error: unsupported NCQ command (0x%02x) received" 96e4baa9f0SJohn Snowprocess_ncq_command_mismatch(void *s, int port, uint8_t tag, uint8_t slot) "ahci(%p)[%d][tag:%d]: Warning: NCQ slot (%d) did not match the given tag" 97e4baa9f0SJohn Snowprocess_ncq_command_aux(void *s, int port, uint8_t tag) "ahci(%p)[%d][tag:%d]: Warn: Attempt to use NCQ auxiliary fields" 98e4baa9f0SJohn Snowprocess_ncq_command_prioicc(void *s, int port, uint8_t tag) "ahci(%p)[%d][tag:%d]: Warn: Unsupported attempt to use PRIO/ICC fields" 99e4baa9f0SJohn Snowprocess_ncq_command_fua(void *s, int port, uint8_t tag) "ahci(%p)[%d][tag:%d]: Warn: Unsupported attempt to use Force Unit Access" 100e4baa9f0SJohn Snowprocess_ncq_command_rarc(void *s, int port, uint8_t tag) "ahci(%p)[%d][tag:%d]: Warn: Unsupported attempt to use Rebuild Assist" 101e4baa9f0SJohn Snowprocess_ncq_command_large(void *s, int port, uint8_t tag, size_t prdtl, size_t size) "ahci(%p)[%d][tag:%d]: Warn: PRDTL (0x%zx) does not match requested size (0x%zx)" 102e4baa9f0SJohn Snowprocess_ncq_command(void *s, int port, uint8_t tag, uint8_t cmd, uint64_t lba, uint64_t end) "ahci(%p)[%d][tag:%d]: NCQ op 0x%02x on sectors [%"PRId64",%"PRId64"]" 103e4baa9f0SJohn Snowhandle_reg_h2d_fis_pmp(void *s, int port, char b0, char b1, char b2) "ahci(%p)[%d]: Port Multiplier not supported, FIS: 0x%02x-%02x-%02x" 104e4baa9f0SJohn Snowhandle_reg_h2d_fis_res(void *s, int port, char b0, char b1, char b2) "ahci(%p)[%d]: Reserved flags set in H2D Register FIS, FIS: 0x%02x-%02x-%02x" 105e4baa9f0SJohn Snowhandle_cmd_busy(void *s, int port) "ahci(%p)[%d]: engine busy" 106e4baa9f0SJohn Snowhandle_cmd_nolist(void *s, int port) "ahci(%p)[%d]: handle_cmd called without s->dev[port].lst" 107e4baa9f0SJohn Snowhandle_cmd_badport(void *s, int port) "ahci(%p)[%d]: guest accessed unused port" 108e4baa9f0SJohn Snowhandle_cmd_badfis(void *s, int port) "ahci(%p)[%d]: guest provided an invalid cmd FIS" 109e4baa9f0SJohn Snowhandle_cmd_badmap(void *s, int port, uint64_t len) "ahci(%p)[%d]: dma_memory_map failed, 0x%02"PRIx64" != 0x80" 110e4baa9f0SJohn Snowhandle_cmd_unhandled_fis(void *s, int port, uint8_t b0, uint8_t b1, uint8_t b2) "ahci(%p)[%d]: unhandled FIS type. cmd_fis: 0x%02x-%02x-%02x" 111bed9bcfaSPaolo Bonziniahci_pio_transfer(void *s, int port, const char *rw, uint32_t size, const char *tgt, const char *sgl) "ahci(%p)[%d]: %sing %d bytes on %s w/%s sglist" 112e4baa9f0SJohn Snowahci_start_dma(void *s, int port) "ahci(%p)[%d]: start dma" 113e4baa9f0SJohn Snowahci_dma_prepare_buf(void *s, int port, int32_t io_buffer_size, int32_t limit) "ahci(%p)[%d]: prepare buf limit=%"PRId32" prepared=%"PRId32 114e4baa9f0SJohn Snowahci_dma_prepare_buf_fail(void *s, int port) "ahci(%p)[%d]: sglist population failed" 115e4baa9f0SJohn Snowahci_dma_rw_buf(void *s, int port, int l) "ahci(%p)[%d] len=0x%x" 116e4baa9f0SJohn Snowahci_cmd_done(void *s, int port) "ahci(%p)[%d]: cmd done" 117e4baa9f0SJohn Snowahci_reset(void *s) "ahci(%p): HBA reset" 118797285c8SJohn Snow 119797285c8SJohn Snow# Warning: Verbose 120797285c8SJohn Snowhandle_reg_h2d_fis_dump(void *s, int port, const char *fis) "ahci(%p)[%d]: %s" 121797285c8SJohn Snowhandle_cmd_fis_dump(void *s, int port, const char *fis) "ahci(%p)[%d]: %s" 122dec97760SMarkus Armbruster 123dec97760SMarkus Armbruster# ahci-allwinner.c 124dec97760SMarkus Armbrusterallwinner_ahci_mem_read(void *s, void *a, uint64_t addr, uint64_t val, unsigned size) "ahci(%p): read a=%p addr=0x%"PRIx64" val=0x%"PRIx64", size=%d" 125dec97760SMarkus Armbrusterallwinner_ahci_mem_write(void *s, void *a, uint64_t addr, uint64_t val, unsigned size) "ahci(%p): write a=%p addr=0x%"PRIx64" val=0x%"PRIx64", size=%d" 126