/* This file is autogenerated by tracetool, do not edit. */
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef TRACE_HW_SCSI_GENERATED_TRACERS_H
#define TRACE_HW_SCSI_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_SCSI_REQ_ALLOC_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_CANCEL_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_DATA_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_DATA_CANCELED_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_DEQUEUE_EVENT;
extern TraceEvent _TRACE_SCSI_BUS_DRAINED_BEGIN_EVENT;
extern TraceEvent _TRACE_SCSI_BUS_DRAINED_END_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_CONTINUE_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_CONTINUE_CANCELED_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_PARSED_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_PARSED_LBA_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_PARSE_BAD_EVENT;
extern TraceEvent _TRACE_SCSI_REQ_BUILD_SENSE_EVENT;
extern TraceEvent _TRACE_SCSI_DEVICE_SET_UA_EVENT;
extern TraceEvent _TRACE_SCSI_REPORT_LUNS_EVENT;
extern TraceEvent _TRACE_SCSI_INQUIRY_EVENT;
extern TraceEvent _TRACE_SCSI_TEST_UNIT_READY_EVENT;
extern TraceEvent _TRACE_SCSI_REQUEST_SENSE_EVENT;
extern TraceEvent _TRACE_MPTSAS_COMMAND_COMPLETE_EVENT;
extern TraceEvent _TRACE_MPTSAS_DIAG_READ_EVENT;
extern TraceEvent _TRACE_MPTSAS_DIAG_WRITE_EVENT;
extern TraceEvent _TRACE_MPTSAS_IRQ_INTX_EVENT;
extern TraceEvent _TRACE_MPTSAS_IRQ_MSI_EVENT;
extern TraceEvent _TRACE_MPTSAS_MMIO_READ_EVENT;
extern TraceEvent _TRACE_MPTSAS_MMIO_UNHANDLED_READ_EVENT;
extern TraceEvent _TRACE_MPTSAS_MMIO_UNHANDLED_WRITE_EVENT;
extern TraceEvent _TRACE_MPTSAS_MMIO_WRITE_EVENT;
extern TraceEvent _TRACE_MPTSAS_PROCESS_MESSAGE_EVENT;
extern TraceEvent _TRACE_MPTSAS_PROCESS_SCSI_IO_REQUEST_EVENT;
extern TraceEvent _TRACE_MPTSAS_RESET_EVENT;
extern TraceEvent _TRACE_MPTSAS_SCSI_OVERFLOW_EVENT;
extern TraceEvent _TRACE_MPTSAS_SGL_OVERFLOW_EVENT;
extern TraceEvent _TRACE_MPTSAS_UNHANDLED_CMD_EVENT;
extern TraceEvent _TRACE_MPTSAS_UNHANDLED_DOORBELL_CMD_EVENT;
extern TraceEvent _TRACE_MPTSAS_CONFIG_SAS_DEVICE_EVENT;
extern TraceEvent _TRACE_MPTSAS_CONFIG_SAS_PHY_EVENT;
extern TraceEvent _TRACE_MEGASAS_INIT_FIRMWARE_EVENT;
extern TraceEvent _TRACE_MEGASAS_INIT_QUEUE_EVENT;
extern TraceEvent _TRACE_MEGASAS_INITQ_MAP_FAILED_EVENT;
extern TraceEvent _TRACE_MEGASAS_INITQ_MAPPED_EVENT;
extern TraceEvent _TRACE_MEGASAS_INITQ_MISMATCH_EVENT;
extern TraceEvent _TRACE_MEGASAS_QF_MAPPED_EVENT;
extern TraceEvent _TRACE_MEGASAS_QF_NEW_EVENT;
extern TraceEvent _TRACE_MEGASAS_QF_BUSY_EVENT;
extern TraceEvent _TRACE_MEGASAS_QF_ENQUEUE_EVENT;
extern TraceEvent _TRACE_MEGASAS_QF_UPDATE_EVENT;
extern TraceEvent _TRACE_MEGASAS_QF_MAP_FAILED_EVENT;
extern TraceEvent _TRACE_MEGASAS_QF_COMPLETE_NOIRQ_EVENT;
extern TraceEvent _TRACE_MEGASAS_QF_COMPLETE_EVENT;
extern TraceEvent _TRACE_MEGASAS_FRAME_BUSY_EVENT;
extern TraceEvent _TRACE_MEGASAS_UNHANDLED_FRAME_CMD_EVENT;
extern TraceEvent _TRACE_MEGASAS_HANDLE_SCSI_EVENT;
extern TraceEvent _TRACE_MEGASAS_SCSI_TARGET_NOT_PRESENT_EVENT;
extern TraceEvent _TRACE_MEGASAS_SCSI_INVALID_CDB_LEN_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOV_READ_OVERFLOW_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOV_WRITE_OVERFLOW_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOV_READ_UNDERFLOW_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOV_WRITE_UNDERFLOW_EVENT;
extern TraceEvent _TRACE_MEGASAS_SCSI_REQ_ALLOC_FAILED_EVENT;
extern TraceEvent _TRACE_MEGASAS_SCSI_READ_START_EVENT;
extern TraceEvent _TRACE_MEGASAS_SCSI_WRITE_START_EVENT;
extern TraceEvent _TRACE_MEGASAS_SCSI_NODATA_EVENT;
extern TraceEvent _TRACE_MEGASAS_SCSI_COMPLETE_EVENT;
extern TraceEvent _TRACE_MEGASAS_COMMAND_COMPLETE_EVENT;
extern TraceEvent _TRACE_MEGASAS_HANDLE_IO_EVENT;
extern TraceEvent _TRACE_MEGASAS_IO_TARGET_NOT_PRESENT_EVENT;
extern TraceEvent _TRACE_MEGASAS_IO_READ_START_EVENT;
extern TraceEvent _TRACE_MEGASAS_IO_WRITE_START_EVENT;
extern TraceEvent _TRACE_MEGASAS_IO_COMPLETE_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOVEC_SGL_OVERFLOW_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOVEC_SGL_UNDERFLOW_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOVEC_SGL_INVALID_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOVEC_OVERFLOW_EVENT;
extern TraceEvent _TRACE_MEGASAS_IOVEC_UNDERFLOW_EVENT;
extern TraceEvent _TRACE_MEGASAS_HANDLE_DCMD_EVENT;
extern TraceEvent _TRACE_MEGASAS_FINISH_DCMD_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_REQ_ALLOC_FAILED_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_INTERNAL_SUBMIT_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_INTERNAL_FINISH_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_INTERNAL_INVALID_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_UNHANDLED_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_ZERO_SGE_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_INVALID_SGE_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_INVALID_XFER_LEN_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_ENTER_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_DUMMY_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_SET_FW_TIME_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_PD_GET_LIST_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_LD_GET_LIST_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_LD_GET_INFO_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_LD_LIST_QUERY_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_PD_GET_INFO_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_PD_LIST_QUERY_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_RESET_LD_EVENT;
extern TraceEvent _TRACE_MEGASAS_DCMD_UNSUPPORTED_EVENT;
extern TraceEvent _TRACE_MEGASAS_ABORT_FRAME_EVENT;
extern TraceEvent _TRACE_MEGASAS_ABORT_NO_CMD_EVENT;
extern TraceEvent _TRACE_MEGASAS_ABORT_INVALID_CONTEXT_EVENT;
extern TraceEvent _TRACE_MEGASAS_RESET_EVENT;
extern TraceEvent _TRACE_MEGASAS_INIT_EVENT;
extern TraceEvent _TRACE_MEGASAS_MSIX_RAISE_EVENT;
extern TraceEvent _TRACE_MEGASAS_MSI_RAISE_EVENT;
extern TraceEvent _TRACE_MEGASAS_IRQ_LOWER_EVENT;
extern TraceEvent _TRACE_MEGASAS_IRQ_RAISE_EVENT;
extern TraceEvent _TRACE_MEGASAS_INTR_ENABLED_EVENT;
extern TraceEvent _TRACE_MEGASAS_INTR_DISABLED_EVENT;
extern TraceEvent _TRACE_MEGASAS_MSIX_ENABLED_EVENT;
extern TraceEvent _TRACE_MEGASAS_MSI_ENABLED_EVENT;
extern TraceEvent _TRACE_MEGASAS_MMIO_READL_EVENT;
extern TraceEvent _TRACE_MEGASAS_MMIO_INVALID_READL_EVENT;
extern TraceEvent _TRACE_MEGASAS_MMIO_WRITEL_EVENT;
extern TraceEvent _TRACE_MEGASAS_MMIO_INVALID_WRITEL_EVENT;
extern TraceEvent _TRACE_PVSCSI_RING_INIT_DATA_EVENT;
extern TraceEvent _TRACE_PVSCSI_RING_INIT_MSG_EVENT;
extern TraceEvent _TRACE_PVSCSI_RING_FLUSH_CMP_EVENT;
extern TraceEvent _TRACE_PVSCSI_RING_FLUSH_MSG_EVENT;
extern TraceEvent _TRACE_PVSCSI_UPDATE_IRQ_LEVEL_EVENT;
extern TraceEvent _TRACE_PVSCSI_UPDATE_IRQ_MSI_EVENT;
extern TraceEvent _TRACE_PVSCSI_CMP_RING_PUT_EVENT;
extern TraceEvent _TRACE_PVSCSI_MSG_RING_PUT_EVENT;
extern TraceEvent _TRACE_PVSCSI_COMPLETE_REQUEST_EVENT;
extern TraceEvent _TRACE_PVSCSI_GET_SG_LIST_EVENT;
extern TraceEvent _TRACE_PVSCSI_GET_NEXT_SG_ELEM_EVENT;
extern TraceEvent _TRACE_PVSCSI_COMMAND_COMPLETE_NOT_FOUND_EVENT;
extern TraceEvent _TRACE_PVSCSI_COMMAND_COMPLETE_DATA_RUN_EVENT;
extern TraceEvent _TRACE_PVSCSI_COMMAND_COMPLETE_SENSE_LEN_EVENT;
extern TraceEvent _TRACE_PVSCSI_CONVERT_SGLIST_EVENT;
extern TraceEvent _TRACE_PVSCSI_PROCESS_REQ_DESCR_EVENT;
extern TraceEvent _TRACE_PVSCSI_PROCESS_REQ_DESCR_UNKNOWN_DEVICE_EVENT;
extern TraceEvent _TRACE_PVSCSI_PROCESS_REQ_DESCR_INVALID_DIR_EVENT;
extern TraceEvent _TRACE_PVSCSI_PROCESS_IO_EVENT;
extern TraceEvent _TRACE_PVSCSI_ON_CMD_NOIMPL_EVENT;
extern TraceEvent _TRACE_PVSCSI_ON_CMD_RESET_DEV_EVENT;
extern TraceEvent _TRACE_PVSCSI_ON_CMD_ARRIVED_EVENT;
extern TraceEvent _TRACE_PVSCSI_ON_CMD_ABORT_EVENT;
extern TraceEvent _TRACE_PVSCSI_ON_CMD_UNKNOWN_EVENT;
extern TraceEvent _TRACE_PVSCSI_ON_CMD_UNKNOWN_DATA_EVENT;
extern TraceEvent _TRACE_PVSCSI_IO_WRITE_EVENT;
extern TraceEvent _TRACE_PVSCSI_IO_WRITE_UNKNOWN_EVENT;
extern TraceEvent _TRACE_PVSCSI_IO_READ_EVENT;
extern TraceEvent _TRACE_PVSCSI_IO_READ_UNKNOWN_EVENT;
extern TraceEvent _TRACE_PVSCSI_INIT_MSI_FAIL_EVENT;
extern TraceEvent _TRACE_PVSCSI_STATE_EVENT;
extern TraceEvent _TRACE_PVSCSI_TX_RINGS_PPN_EVENT;
extern TraceEvent _TRACE_PVSCSI_TX_RINGS_NUM_PAGES_EVENT;
extern TraceEvent _TRACE_ESP_ERROR_FIFO_OVERRUN_EVENT;
extern TraceEvent _TRACE_ESP_ERROR_UNHANDLED_COMMAND_EVENT;
extern TraceEvent _TRACE_ESP_ERROR_INVALID_WRITE_EVENT;
extern TraceEvent _TRACE_ESP_RAISE_IRQ_EVENT;
extern TraceEvent _TRACE_ESP_LOWER_IRQ_EVENT;
extern TraceEvent _TRACE_ESP_RAISE_DRQ_EVENT;
extern TraceEvent _TRACE_ESP_LOWER_DRQ_EVENT;
extern TraceEvent _TRACE_ESP_DMA_ENABLE_EVENT;
extern TraceEvent _TRACE_ESP_DMA_DISABLE_EVENT;
extern TraceEvent _TRACE_ESP_PDMA_READ_EVENT;
extern TraceEvent _TRACE_ESP_PDMA_WRITE_EVENT;
extern TraceEvent _TRACE_ESP_GET_CMD_EVENT;
extern TraceEvent _TRACE_ESP_DO_COMMAND_PHASE_EVENT;
extern TraceEvent _TRACE_ESP_DO_IDENTIFY_EVENT;
extern TraceEvent _TRACE_ESP_HANDLE_SATN_STOP_EVENT;
extern TraceEvent _TRACE_ESP_WRITE_RESPONSE_EVENT;
extern TraceEvent _TRACE_ESP_DO_DMA_EVENT;
extern TraceEvent _TRACE_ESP_COMMAND_COMPLETE_EVENT;
extern TraceEvent _TRACE_ESP_COMMAND_COMPLETE_DEFERRED_EVENT;
extern TraceEvent _TRACE_ESP_COMMAND_COMPLETE_UNEXPECTED_EVENT;
extern TraceEvent _TRACE_ESP_COMMAND_COMPLETE_FAIL_EVENT;
extern TraceEvent _TRACE_ESP_TRANSFER_DATA_EVENT;
extern TraceEvent _TRACE_ESP_HANDLE_TI_EVENT;
extern TraceEvent _TRACE_ESP_HANDLE_TI_CMD_EVENT;
extern TraceEvent _TRACE_ESP_MEM_READB_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_NOP_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_FLUSH_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_RESET_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_BUS_RESET_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_ICCS_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_MSGACC_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_PAD_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_SATN_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_RSTATN_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_SEL_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_SELATN_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_SELATNS_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_ENSEL_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_DISSEL_EVENT;
extern TraceEvent _TRACE_ESP_MEM_WRITEB_CMD_TI_EVENT;
extern TraceEvent _TRACE_ESP_SET_PHASE_EVENT;
extern TraceEvent _TRACE_ESP_INVALID_CMD_EVENT;
extern TraceEvent _TRACE_ESP_PCI_ERROR_INVALID_DMA_DIRECTION_EVENT;
extern TraceEvent _TRACE_ESP_PCI_ERROR_INVALID_READ_EVENT;
extern TraceEvent _TRACE_ESP_PCI_ERROR_INVALID_WRITE_EVENT;
extern TraceEvent _TRACE_ESP_PCI_ERROR_INVALID_WRITE_DMA_EVENT;
extern TraceEvent _TRACE_ESP_PCI_DMA_READ_EVENT;
extern TraceEvent _TRACE_ESP_PCI_DMA_WRITE_EVENT;
extern TraceEvent _TRACE_ESP_PCI_DMA_IDLE_EVENT;
extern TraceEvent _TRACE_ESP_PCI_DMA_BLAST_EVENT;
extern TraceEvent _TRACE_ESP_PCI_DMA_ABORT_EVENT;
extern TraceEvent _TRACE_ESP_PCI_DMA_START_EVENT;
extern TraceEvent _TRACE_ESP_PCI_SBAC_READ_EVENT;
extern TraceEvent _TRACE_ESP_PCI_SBAC_WRITE_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_SEND_RSP_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_NO_DATA_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_DIRECT_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_RANGE_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_DMA_READ_ERROR_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_SEG_EXT_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_BOUNDARY_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_FETCH_DESC_DONE_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_RW_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_BUF_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_SRP_TRANSFER_DATA_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_TRANSFER_DATA_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA1_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA2_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_STATUS_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_SAVE_REQUEST_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_LOAD_REQUEST_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_PROCESS_LOGIN_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_PROCESS_TSK_MGMT_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_QUEUE_CMD_NO_DRIVE_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_QUEUE_CMD_EVENT;
extern TraceEvent _TRACE_SPAPR_VSCSI_DO_CRQ_EVENT;
extern TraceEvent _TRACE_LSI_RESET_EVENT;
extern TraceEvent _TRACE_LSI_UPDATE_IRQ_EVENT;
extern TraceEvent _TRACE_LSI_UPDATE_IRQ_DISCONNECTED_EVENT;
extern TraceEvent _TRACE_LSI_SCRIPT_SCSI_INTERRUPT_EVENT;
extern TraceEvent _TRACE_LSI_SCRIPT_DMA_INTERRUPT_EVENT;
extern TraceEvent _TRACE_LSI_BAD_PHASE_JUMP_EVENT;
extern TraceEvent _TRACE_LSI_BAD_PHASE_INTERRUPT_EVENT;
extern TraceEvent _TRACE_LSI_BAD_SELECTION_EVENT;
extern TraceEvent _TRACE_LSI_DO_DMA_UNAVAILABLE_EVENT;
extern TraceEvent _TRACE_LSI_DO_DMA_EVENT;
extern TraceEvent _TRACE_LSI_QUEUE_COMMAND_EVENT;
extern TraceEvent _TRACE_LSI_ADD_MSG_BYTE_ERROR_EVENT;
extern TraceEvent _TRACE_LSI_ADD_MSG_BYTE_EVENT;
extern TraceEvent _TRACE_LSI_RESELECT_EVENT;
extern TraceEvent _TRACE_LSI_QUEUE_REQ_ERROR_EVENT;
extern TraceEvent _TRACE_LSI_QUEUE_REQ_EVENT;
extern TraceEvent _TRACE_LSI_COMMAND_COMPLETE_EVENT;
extern TraceEvent _TRACE_LSI_TRANSFER_DATA_EVENT;
extern TraceEvent _TRACE_LSI_DO_COMMAND_EVENT;
extern TraceEvent _TRACE_LSI_DO_STATUS_EVENT;
extern TraceEvent _TRACE_LSI_DO_STATUS_ERROR_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGIN_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_DISCONNECT_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_NOOP_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_EXTENDED_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_IGNORED_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_SIMPLEQUEUE_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_ABORT_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_CLEARQUEUE_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_BUSDEVICERESET_EVENT;
extern TraceEvent _TRACE_LSI_DO_MSGOUT_SELECT_EVENT;
extern TraceEvent _TRACE_LSI_MEMCPY_EVENT;
extern TraceEvent _TRACE_LSI_WAIT_RESELECT_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_DELAYED_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_BADPHASE_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_IO_ALREADYRESELECTED_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_IO_SELECTED_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_IO_DISCONNECT_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_IO_SET_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_IO_CLEAR_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_IO_OPCODE_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_NOP_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_DELAYEDSELECT_TIMEOUT_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_COMPC_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_COMPP_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_COMPD_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_JUMP_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_CALL_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_RETURN_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_INTERRUPT_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_ILLEGAL_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_TC_CC_FAILED_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_MM_LOAD_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_MM_STORE_EVENT;
extern TraceEvent _TRACE_LSI_EXECUTE_SCRIPT_STOP_EVENT;
extern TraceEvent _TRACE_LSI_AWOKEN_EVENT;
extern TraceEvent _TRACE_LSI_REG_READ_EVENT;
extern TraceEvent _TRACE_LSI_REG_WRITE_EVENT;
extern TraceEvent _TRACE_LSI_SCRIPTS_TIMER_TRIGGERED_EVENT;
extern TraceEvent _TRACE_LSI_SCRIPTS_TIMER_START_EVENT;
extern TraceEvent _TRACE_NCR710_RESET_EVENT;
extern TraceEvent _TRACE_NCR710_REG_READ_EVENT;
extern TraceEvent _TRACE_NCR710_REG_WRITE_EVENT;
extern TraceEvent _TRACE_NCR710_SCRIPT_SCSI_INTERRUPT_EVENT;
extern TraceEvent _TRACE_NCR710_SCRIPT_DMA_INTERRUPT_EVENT;
extern TraceEvent _TRACE_NCR710_COMMAND_COMPLETE_EVENT;
extern TraceEvent _TRACE_NCR710_DISCONNECT_EVENT;
extern TraceEvent _TRACE_NCR710_BAD_SELECTION_EVENT;
extern TraceEvent _TRACE_NCR710_PARITY_SENSE_CHANGED_EVENT;
extern TraceEvent _TRACE_NCR710_DEVICE_REALIZE_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_DEVICE_REALIZE_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_DEVICE_RESET_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_REG_READ_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_REG_WRITE_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_REG_READ_ID_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_REG_READ_HVERSION_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_REG_FORWARD_READ_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_REG_FORWARD_WRITE_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_COMMAND_COMPLETE_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_TRANSFER_DATA_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_REQUEST_CANCELLED_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_TIMERS_INITIALIZED_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_HANDLE_LEGACY_CMDLINE_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_LEGACY_DRIVE_FOUND_EVENT;
extern TraceEvent _TRACE_LASI_NCR710_SCSI_DEVICE_CREATED_EVENT;
extern TraceEvent _TRACE_VIRTIO_SCSI_CMD_REQ_EVENT;
extern TraceEvent _TRACE_VIRTIO_SCSI_CMD_RESP_EVENT;
extern TraceEvent _TRACE_VIRTIO_SCSI_TMF_REQ_EVENT;
extern TraceEvent _TRACE_VIRTIO_SCSI_TMF_RESP_EVENT;
extern TraceEvent _TRACE_VIRTIO_SCSI_AN_REQ_EVENT;
extern TraceEvent _TRACE_VIRTIO_SCSI_AN_RESP_EVENT;
extern TraceEvent _TRACE_VIRTIO_SCSI_EVENT_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_CHECK_CONDITION_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_READ_COMPLETE_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_READ_DATA_COUNT_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_READ_DATA_INVALID_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_WRITE_COMPLETE_NOIO_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_WRITE_DATA_INVALID_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_00_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_NOT_SUPPORTED_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_83_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_B0_NOT_SUPPORTED_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_MODE_SENSE_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_READ_TOC_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_READ_DATA_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_WRITE_DATA_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_16_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_UNSUPPORTED_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_SEEK_10_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_10_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_UNMAP_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_VERIFY_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_WRITE_SAME_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_UNKNOWN_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_EMULATE_COMMAND_FORMAT_UNIT_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_DMA_COMMAND_READ_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_DMA_COMMAND_WRITE_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_NEW_REQUEST_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_AIO_SGIO_COMMAND_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_MODE_SELECT_PAGE_TRUNCATED_EVENT;
extern TraceEvent _TRACE_SCSI_DISK_MODE_SELECT_SET_BLOCKSIZE_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_COMMAND_COMPLETE_NOIO_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_READ_COMPLETE_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_READ_DATA_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_WRITE_COMPLETE_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_WRITE_COMPLETE_BLOCKSIZE_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_WRITE_DATA_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_SEND_COMMAND_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_REALIZE_TYPE_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_REALIZE_BLOCKSIZE_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_AIO_SGIO_COMMAND_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_IOCTL_SGIO_COMMAND_EVENT;
extern TraceEvent _TRACE_SCSI_GENERIC_IOCTL_SGIO_DONE_EVENT;
extern uint16_t _TRACE_SCSI_REQ_ALLOC_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_CANCEL_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_DATA_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_DATA_CANCELED_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_DEQUEUE_DSTATE;
extern uint16_t _TRACE_SCSI_BUS_DRAINED_BEGIN_DSTATE;
extern uint16_t _TRACE_SCSI_BUS_DRAINED_END_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_CONTINUE_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_CONTINUE_CANCELED_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_PARSED_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_PARSED_LBA_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_PARSE_BAD_DSTATE;
extern uint16_t _TRACE_SCSI_REQ_BUILD_SENSE_DSTATE;
extern uint16_t _TRACE_SCSI_DEVICE_SET_UA_DSTATE;
extern uint16_t _TRACE_SCSI_REPORT_LUNS_DSTATE;
extern uint16_t _TRACE_SCSI_INQUIRY_DSTATE;
extern uint16_t _TRACE_SCSI_TEST_UNIT_READY_DSTATE;
extern uint16_t _TRACE_SCSI_REQUEST_SENSE_DSTATE;
extern uint16_t _TRACE_MPTSAS_COMMAND_COMPLETE_DSTATE;
extern uint16_t _TRACE_MPTSAS_DIAG_READ_DSTATE;
extern uint16_t _TRACE_MPTSAS_DIAG_WRITE_DSTATE;
extern uint16_t _TRACE_MPTSAS_IRQ_INTX_DSTATE;
extern uint16_t _TRACE_MPTSAS_IRQ_MSI_DSTATE;
extern uint16_t _TRACE_MPTSAS_MMIO_READ_DSTATE;
extern uint16_t _TRACE_MPTSAS_MMIO_UNHANDLED_READ_DSTATE;
extern uint16_t _TRACE_MPTSAS_MMIO_UNHANDLED_WRITE_DSTATE;
extern uint16_t _TRACE_MPTSAS_MMIO_WRITE_DSTATE;
extern uint16_t _TRACE_MPTSAS_PROCESS_MESSAGE_DSTATE;
extern uint16_t _TRACE_MPTSAS_PROCESS_SCSI_IO_REQUEST_DSTATE;
extern uint16_t _TRACE_MPTSAS_RESET_DSTATE;
extern uint16_t _TRACE_MPTSAS_SCSI_OVERFLOW_DSTATE;
extern uint16_t _TRACE_MPTSAS_SGL_OVERFLOW_DSTATE;
extern uint16_t _TRACE_MPTSAS_UNHANDLED_CMD_DSTATE;
extern uint16_t _TRACE_MPTSAS_UNHANDLED_DOORBELL_CMD_DSTATE;
extern uint16_t _TRACE_MPTSAS_CONFIG_SAS_DEVICE_DSTATE;
extern uint16_t _TRACE_MPTSAS_CONFIG_SAS_PHY_DSTATE;
extern uint16_t _TRACE_MEGASAS_INIT_FIRMWARE_DSTATE;
extern uint16_t _TRACE_MEGASAS_INIT_QUEUE_DSTATE;
extern uint16_t _TRACE_MEGASAS_INITQ_MAP_FAILED_DSTATE;
extern uint16_t _TRACE_MEGASAS_INITQ_MAPPED_DSTATE;
extern uint16_t _TRACE_MEGASAS_INITQ_MISMATCH_DSTATE;
extern uint16_t _TRACE_MEGASAS_QF_MAPPED_DSTATE;
extern uint16_t _TRACE_MEGASAS_QF_NEW_DSTATE;
extern uint16_t _TRACE_MEGASAS_QF_BUSY_DSTATE;
extern uint16_t _TRACE_MEGASAS_QF_ENQUEUE_DSTATE;
extern uint16_t _TRACE_MEGASAS_QF_UPDATE_DSTATE;
extern uint16_t _TRACE_MEGASAS_QF_MAP_FAILED_DSTATE;
extern uint16_t _TRACE_MEGASAS_QF_COMPLETE_NOIRQ_DSTATE;
extern uint16_t _TRACE_MEGASAS_QF_COMPLETE_DSTATE;
extern uint16_t _TRACE_MEGASAS_FRAME_BUSY_DSTATE;
extern uint16_t _TRACE_MEGASAS_UNHANDLED_FRAME_CMD_DSTATE;
extern uint16_t _TRACE_MEGASAS_HANDLE_SCSI_DSTATE;
extern uint16_t _TRACE_MEGASAS_SCSI_TARGET_NOT_PRESENT_DSTATE;
extern uint16_t _TRACE_MEGASAS_SCSI_INVALID_CDB_LEN_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOV_READ_OVERFLOW_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOV_WRITE_OVERFLOW_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOV_READ_UNDERFLOW_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOV_WRITE_UNDERFLOW_DSTATE;
extern uint16_t _TRACE_MEGASAS_SCSI_REQ_ALLOC_FAILED_DSTATE;
extern uint16_t _TRACE_MEGASAS_SCSI_READ_START_DSTATE;
extern uint16_t _TRACE_MEGASAS_SCSI_WRITE_START_DSTATE;
extern uint16_t _TRACE_MEGASAS_SCSI_NODATA_DSTATE;
extern uint16_t _TRACE_MEGASAS_SCSI_COMPLETE_DSTATE;
extern uint16_t _TRACE_MEGASAS_COMMAND_COMPLETE_DSTATE;
extern uint16_t _TRACE_MEGASAS_HANDLE_IO_DSTATE;
extern uint16_t _TRACE_MEGASAS_IO_TARGET_NOT_PRESENT_DSTATE;
extern uint16_t _TRACE_MEGASAS_IO_READ_START_DSTATE;
extern uint16_t _TRACE_MEGASAS_IO_WRITE_START_DSTATE;
extern uint16_t _TRACE_MEGASAS_IO_COMPLETE_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOVEC_SGL_OVERFLOW_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOVEC_SGL_UNDERFLOW_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOVEC_SGL_INVALID_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOVEC_OVERFLOW_DSTATE;
extern uint16_t _TRACE_MEGASAS_IOVEC_UNDERFLOW_DSTATE;
extern uint16_t _TRACE_MEGASAS_HANDLE_DCMD_DSTATE;
extern uint16_t _TRACE_MEGASAS_FINISH_DCMD_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_REQ_ALLOC_FAILED_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_INTERNAL_SUBMIT_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_INTERNAL_FINISH_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_INTERNAL_INVALID_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_UNHANDLED_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_ZERO_SGE_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_INVALID_SGE_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_INVALID_XFER_LEN_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_ENTER_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_DUMMY_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_SET_FW_TIME_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_PD_GET_LIST_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_LD_GET_LIST_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_LD_GET_INFO_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_LD_LIST_QUERY_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_PD_GET_INFO_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_PD_LIST_QUERY_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_RESET_LD_DSTATE;
extern uint16_t _TRACE_MEGASAS_DCMD_UNSUPPORTED_DSTATE;
extern uint16_t _TRACE_MEGASAS_ABORT_FRAME_DSTATE;
extern uint16_t _TRACE_MEGASAS_ABORT_NO_CMD_DSTATE;
extern uint16_t _TRACE_MEGASAS_ABORT_INVALID_CONTEXT_DSTATE;
extern uint16_t _TRACE_MEGASAS_RESET_DSTATE;
extern uint16_t _TRACE_MEGASAS_INIT_DSTATE;
extern uint16_t _TRACE_MEGASAS_MSIX_RAISE_DSTATE;
extern uint16_t _TRACE_MEGASAS_MSI_RAISE_DSTATE;
extern uint16_t _TRACE_MEGASAS_IRQ_LOWER_DSTATE;
extern uint16_t _TRACE_MEGASAS_IRQ_RAISE_DSTATE;
extern uint16_t _TRACE_MEGASAS_INTR_ENABLED_DSTATE;
extern uint16_t _TRACE_MEGASAS_INTR_DISABLED_DSTATE;
extern uint16_t _TRACE_MEGASAS_MSIX_ENABLED_DSTATE;
extern uint16_t _TRACE_MEGASAS_MSI_ENABLED_DSTATE;
extern uint16_t _TRACE_MEGASAS_MMIO_READL_DSTATE;
extern uint16_t _TRACE_MEGASAS_MMIO_INVALID_READL_DSTATE;
extern uint16_t _TRACE_MEGASAS_MMIO_WRITEL_DSTATE;
extern uint16_t _TRACE_MEGASAS_MMIO_INVALID_WRITEL_DSTATE;
extern uint16_t _TRACE_PVSCSI_RING_INIT_DATA_DSTATE;
extern uint16_t _TRACE_PVSCSI_RING_INIT_MSG_DSTATE;
extern uint16_t _TRACE_PVSCSI_RING_FLUSH_CMP_DSTATE;
extern uint16_t _TRACE_PVSCSI_RING_FLUSH_MSG_DSTATE;
extern uint16_t _TRACE_PVSCSI_UPDATE_IRQ_LEVEL_DSTATE;
extern uint16_t _TRACE_PVSCSI_UPDATE_IRQ_MSI_DSTATE;
extern uint16_t _TRACE_PVSCSI_CMP_RING_PUT_DSTATE;
extern uint16_t _TRACE_PVSCSI_MSG_RING_PUT_DSTATE;
extern uint16_t _TRACE_PVSCSI_COMPLETE_REQUEST_DSTATE;
extern uint16_t _TRACE_PVSCSI_GET_SG_LIST_DSTATE;
extern uint16_t _TRACE_PVSCSI_GET_NEXT_SG_ELEM_DSTATE;
extern uint16_t _TRACE_PVSCSI_COMMAND_COMPLETE_NOT_FOUND_DSTATE;
extern uint16_t _TRACE_PVSCSI_COMMAND_COMPLETE_DATA_RUN_DSTATE;
extern uint16_t _TRACE_PVSCSI_COMMAND_COMPLETE_SENSE_LEN_DSTATE;
extern uint16_t _TRACE_PVSCSI_CONVERT_SGLIST_DSTATE;
extern uint16_t _TRACE_PVSCSI_PROCESS_REQ_DESCR_DSTATE;
extern uint16_t _TRACE_PVSCSI_PROCESS_REQ_DESCR_UNKNOWN_DEVICE_DSTATE;
extern uint16_t _TRACE_PVSCSI_PROCESS_REQ_DESCR_INVALID_DIR_DSTATE;
extern uint16_t _TRACE_PVSCSI_PROCESS_IO_DSTATE;
extern uint16_t _TRACE_PVSCSI_ON_CMD_NOIMPL_DSTATE;
extern uint16_t _TRACE_PVSCSI_ON_CMD_RESET_DEV_DSTATE;
extern uint16_t _TRACE_PVSCSI_ON_CMD_ARRIVED_DSTATE;
extern uint16_t _TRACE_PVSCSI_ON_CMD_ABORT_DSTATE;
extern uint16_t _TRACE_PVSCSI_ON_CMD_UNKNOWN_DSTATE;
extern uint16_t _TRACE_PVSCSI_ON_CMD_UNKNOWN_DATA_DSTATE;
extern uint16_t _TRACE_PVSCSI_IO_WRITE_DSTATE;
extern uint16_t _TRACE_PVSCSI_IO_WRITE_UNKNOWN_DSTATE;
extern uint16_t _TRACE_PVSCSI_IO_READ_DSTATE;
extern uint16_t _TRACE_PVSCSI_IO_READ_UNKNOWN_DSTATE;
extern uint16_t _TRACE_PVSCSI_INIT_MSI_FAIL_DSTATE;
extern uint16_t _TRACE_PVSCSI_STATE_DSTATE;
extern uint16_t _TRACE_PVSCSI_TX_RINGS_PPN_DSTATE;
extern uint16_t _TRACE_PVSCSI_TX_RINGS_NUM_PAGES_DSTATE;
extern uint16_t _TRACE_ESP_ERROR_FIFO_OVERRUN_DSTATE;
extern uint16_t _TRACE_ESP_ERROR_UNHANDLED_COMMAND_DSTATE;
extern uint16_t _TRACE_ESP_ERROR_INVALID_WRITE_DSTATE;
extern uint16_t _TRACE_ESP_RAISE_IRQ_DSTATE;
extern uint16_t _TRACE_ESP_LOWER_IRQ_DSTATE;
extern uint16_t _TRACE_ESP_RAISE_DRQ_DSTATE;
extern uint16_t _TRACE_ESP_LOWER_DRQ_DSTATE;
extern uint16_t _TRACE_ESP_DMA_ENABLE_DSTATE;
extern uint16_t _TRACE_ESP_DMA_DISABLE_DSTATE;
extern uint16_t _TRACE_ESP_PDMA_READ_DSTATE;
extern uint16_t _TRACE_ESP_PDMA_WRITE_DSTATE;
extern uint16_t _TRACE_ESP_GET_CMD_DSTATE;
extern uint16_t _TRACE_ESP_DO_COMMAND_PHASE_DSTATE;
extern uint16_t _TRACE_ESP_DO_IDENTIFY_DSTATE;
extern uint16_t _TRACE_ESP_HANDLE_SATN_STOP_DSTATE;
extern uint16_t _TRACE_ESP_WRITE_RESPONSE_DSTATE;
extern uint16_t _TRACE_ESP_DO_DMA_DSTATE;
extern uint16_t _TRACE_ESP_COMMAND_COMPLETE_DSTATE;
extern uint16_t _TRACE_ESP_COMMAND_COMPLETE_DEFERRED_DSTATE;
extern uint16_t _TRACE_ESP_COMMAND_COMPLETE_UNEXPECTED_DSTATE;
extern uint16_t _TRACE_ESP_COMMAND_COMPLETE_FAIL_DSTATE;
extern uint16_t _TRACE_ESP_TRANSFER_DATA_DSTATE;
extern uint16_t _TRACE_ESP_HANDLE_TI_DSTATE;
extern uint16_t _TRACE_ESP_HANDLE_TI_CMD_DSTATE;
extern uint16_t _TRACE_ESP_MEM_READB_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_NOP_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_FLUSH_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_RESET_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_BUS_RESET_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_ICCS_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_MSGACC_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_PAD_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_SATN_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_RSTATN_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_SEL_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_SELATN_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_SELATNS_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_ENSEL_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_DISSEL_DSTATE;
extern uint16_t _TRACE_ESP_MEM_WRITEB_CMD_TI_DSTATE;
extern uint16_t _TRACE_ESP_SET_PHASE_DSTATE;
extern uint16_t _TRACE_ESP_INVALID_CMD_DSTATE;
extern uint16_t _TRACE_ESP_PCI_ERROR_INVALID_DMA_DIRECTION_DSTATE;
extern uint16_t _TRACE_ESP_PCI_ERROR_INVALID_READ_DSTATE;
extern uint16_t _TRACE_ESP_PCI_ERROR_INVALID_WRITE_DSTATE;
extern uint16_t _TRACE_ESP_PCI_ERROR_INVALID_WRITE_DMA_DSTATE;
extern uint16_t _TRACE_ESP_PCI_DMA_READ_DSTATE;
extern uint16_t _TRACE_ESP_PCI_DMA_WRITE_DSTATE;
extern uint16_t _TRACE_ESP_PCI_DMA_IDLE_DSTATE;
extern uint16_t _TRACE_ESP_PCI_DMA_BLAST_DSTATE;
extern uint16_t _TRACE_ESP_PCI_DMA_ABORT_DSTATE;
extern uint16_t _TRACE_ESP_PCI_DMA_START_DSTATE;
extern uint16_t _TRACE_ESP_PCI_SBAC_READ_DSTATE;
extern uint16_t _TRACE_ESP_PCI_SBAC_WRITE_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_SEND_RSP_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_NO_DATA_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_DIRECT_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_RANGE_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_DMA_READ_ERROR_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_SEG_EXT_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_BOUNDARY_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_FETCH_DESC_DONE_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_RW_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_BUF_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_SRP_TRANSFER_DATA_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_TRANSFER_DATA_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA1_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA2_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_STATUS_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_SAVE_REQUEST_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_LOAD_REQUEST_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_PROCESS_LOGIN_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_PROCESS_TSK_MGMT_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_QUEUE_CMD_NO_DRIVE_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_QUEUE_CMD_DSTATE;
extern uint16_t _TRACE_SPAPR_VSCSI_DO_CRQ_DSTATE;
extern uint16_t _TRACE_LSI_RESET_DSTATE;
extern uint16_t _TRACE_LSI_UPDATE_IRQ_DSTATE;
extern uint16_t _TRACE_LSI_UPDATE_IRQ_DISCONNECTED_DSTATE;
extern uint16_t _TRACE_LSI_SCRIPT_SCSI_INTERRUPT_DSTATE;
extern uint16_t _TRACE_LSI_SCRIPT_DMA_INTERRUPT_DSTATE;
extern uint16_t _TRACE_LSI_BAD_PHASE_JUMP_DSTATE;
extern uint16_t _TRACE_LSI_BAD_PHASE_INTERRUPT_DSTATE;
extern uint16_t _TRACE_LSI_BAD_SELECTION_DSTATE;
extern uint16_t _TRACE_LSI_DO_DMA_UNAVAILABLE_DSTATE;
extern uint16_t _TRACE_LSI_DO_DMA_DSTATE;
extern uint16_t _TRACE_LSI_QUEUE_COMMAND_DSTATE;
extern uint16_t _TRACE_LSI_ADD_MSG_BYTE_ERROR_DSTATE;
extern uint16_t _TRACE_LSI_ADD_MSG_BYTE_DSTATE;
extern uint16_t _TRACE_LSI_RESELECT_DSTATE;
extern uint16_t _TRACE_LSI_QUEUE_REQ_ERROR_DSTATE;
extern uint16_t _TRACE_LSI_QUEUE_REQ_DSTATE;
extern uint16_t _TRACE_LSI_COMMAND_COMPLETE_DSTATE;
extern uint16_t _TRACE_LSI_TRANSFER_DATA_DSTATE;
extern uint16_t _TRACE_LSI_DO_COMMAND_DSTATE;
extern uint16_t _TRACE_LSI_DO_STATUS_DSTATE;
extern uint16_t _TRACE_LSI_DO_STATUS_ERROR_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGIN_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_DISCONNECT_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_NOOP_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_EXTENDED_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_IGNORED_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_SIMPLEQUEUE_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_ABORT_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_CLEARQUEUE_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_BUSDEVICERESET_DSTATE;
extern uint16_t _TRACE_LSI_DO_MSGOUT_SELECT_DSTATE;
extern uint16_t _TRACE_LSI_MEMCPY_DSTATE;
extern uint16_t _TRACE_LSI_WAIT_RESELECT_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_DELAYED_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_BADPHASE_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_IO_ALREADYRESELECTED_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_IO_SELECTED_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_IO_DISCONNECT_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_IO_SET_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_IO_CLEAR_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_IO_OPCODE_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_NOP_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_DELAYEDSELECT_TIMEOUT_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_COMPC_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_COMPP_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_COMPD_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_JUMP_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_CALL_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_RETURN_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_INTERRUPT_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_ILLEGAL_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_TC_CC_FAILED_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_MM_LOAD_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_MM_STORE_DSTATE;
extern uint16_t _TRACE_LSI_EXECUTE_SCRIPT_STOP_DSTATE;
extern uint16_t _TRACE_LSI_AWOKEN_DSTATE;
extern uint16_t _TRACE_LSI_REG_READ_DSTATE;
extern uint16_t _TRACE_LSI_REG_WRITE_DSTATE;
extern uint16_t _TRACE_LSI_SCRIPTS_TIMER_TRIGGERED_DSTATE;
extern uint16_t _TRACE_LSI_SCRIPTS_TIMER_START_DSTATE;
extern uint16_t _TRACE_NCR710_RESET_DSTATE;
extern uint16_t _TRACE_NCR710_REG_READ_DSTATE;
extern uint16_t _TRACE_NCR710_REG_WRITE_DSTATE;
extern uint16_t _TRACE_NCR710_SCRIPT_SCSI_INTERRUPT_DSTATE;
extern uint16_t _TRACE_NCR710_SCRIPT_DMA_INTERRUPT_DSTATE;
extern uint16_t _TRACE_NCR710_COMMAND_COMPLETE_DSTATE;
extern uint16_t _TRACE_NCR710_DISCONNECT_DSTATE;
extern uint16_t _TRACE_NCR710_BAD_SELECTION_DSTATE;
extern uint16_t _TRACE_NCR710_PARITY_SENSE_CHANGED_DSTATE;
extern uint16_t _TRACE_NCR710_DEVICE_REALIZE_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_DEVICE_REALIZE_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_DEVICE_RESET_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_REG_READ_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_REG_WRITE_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_REG_READ_ID_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_REG_READ_HVERSION_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_REG_FORWARD_READ_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_REG_FORWARD_WRITE_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_COMMAND_COMPLETE_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_TRANSFER_DATA_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_REQUEST_CANCELLED_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_TIMERS_INITIALIZED_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_HANDLE_LEGACY_CMDLINE_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_LEGACY_DRIVE_FOUND_DSTATE;
extern uint16_t _TRACE_LASI_NCR710_SCSI_DEVICE_CREATED_DSTATE;
extern uint16_t _TRACE_VIRTIO_SCSI_CMD_REQ_DSTATE;
extern uint16_t _TRACE_VIRTIO_SCSI_CMD_RESP_DSTATE;
extern uint16_t _TRACE_VIRTIO_SCSI_TMF_REQ_DSTATE;
extern uint16_t _TRACE_VIRTIO_SCSI_TMF_RESP_DSTATE;
extern uint16_t _TRACE_VIRTIO_SCSI_AN_REQ_DSTATE;
extern uint16_t _TRACE_VIRTIO_SCSI_AN_RESP_DSTATE;
extern uint16_t _TRACE_VIRTIO_SCSI_EVENT_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_CHECK_CONDITION_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_READ_COMPLETE_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_READ_DATA_COUNT_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_READ_DATA_INVALID_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_WRITE_COMPLETE_NOIO_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_WRITE_DATA_INVALID_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_00_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_NOT_SUPPORTED_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_83_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_VPD_PAGE_B0_NOT_SUPPORTED_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_MODE_SENSE_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_READ_TOC_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_READ_DATA_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_WRITE_DATA_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_16_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_UNSUPPORTED_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_SEEK_10_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_10_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_UNMAP_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_VERIFY_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_WRITE_SAME_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_UNKNOWN_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_EMULATE_COMMAND_FORMAT_UNIT_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_DMA_COMMAND_READ_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_DMA_COMMAND_WRITE_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_NEW_REQUEST_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_AIO_SGIO_COMMAND_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_MODE_SELECT_PAGE_TRUNCATED_DSTATE;
extern uint16_t _TRACE_SCSI_DISK_MODE_SELECT_SET_BLOCKSIZE_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_COMMAND_COMPLETE_NOIO_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_READ_COMPLETE_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_READ_DATA_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_WRITE_COMPLETE_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_WRITE_COMPLETE_BLOCKSIZE_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_WRITE_DATA_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_SEND_COMMAND_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_REALIZE_TYPE_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_REALIZE_BLOCKSIZE_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_AIO_SGIO_COMMAND_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_IOCTL_SGIO_COMMAND_DSTATE;
extern uint16_t _TRACE_SCSI_GENERIC_IOCTL_SGIO_DONE_DSTATE;
#define TRACE_SCSI_REQ_ALLOC_ENABLED 1
#define TRACE_SCSI_REQ_CANCEL_ENABLED 1
#define TRACE_SCSI_REQ_DATA_ENABLED 1
#define TRACE_SCSI_REQ_DATA_CANCELED_ENABLED 1
#define TRACE_SCSI_REQ_DEQUEUE_ENABLED 1
#define TRACE_SCSI_BUS_DRAINED_BEGIN_ENABLED 1
#define TRACE_SCSI_BUS_DRAINED_END_ENABLED 1
#define TRACE_SCSI_REQ_CONTINUE_ENABLED 1
#define TRACE_SCSI_REQ_CONTINUE_CANCELED_ENABLED 1
#define TRACE_SCSI_REQ_PARSED_ENABLED 1
#define TRACE_SCSI_REQ_PARSED_LBA_ENABLED 1
#define TRACE_SCSI_REQ_PARSE_BAD_ENABLED 1
#define TRACE_SCSI_REQ_BUILD_SENSE_ENABLED 1
#define TRACE_SCSI_DEVICE_SET_UA_ENABLED 1
#define TRACE_SCSI_REPORT_LUNS_ENABLED 1
#define TRACE_SCSI_INQUIRY_ENABLED 1
#define TRACE_SCSI_TEST_UNIT_READY_ENABLED 1
#define TRACE_SCSI_REQUEST_SENSE_ENABLED 1
#define TRACE_MPTSAS_COMMAND_COMPLETE_ENABLED 1
#define TRACE_MPTSAS_DIAG_READ_ENABLED 1
#define TRACE_MPTSAS_DIAG_WRITE_ENABLED 1
#define TRACE_MPTSAS_IRQ_INTX_ENABLED 1
#define TRACE_MPTSAS_IRQ_MSI_ENABLED 1
#define TRACE_MPTSAS_MMIO_READ_ENABLED 1
#define TRACE_MPTSAS_MMIO_UNHANDLED_READ_ENABLED 1
#define TRACE_MPTSAS_MMIO_UNHANDLED_WRITE_ENABLED 1
#define TRACE_MPTSAS_MMIO_WRITE_ENABLED 1
#define TRACE_MPTSAS_PROCESS_MESSAGE_ENABLED 1
#define TRACE_MPTSAS_PROCESS_SCSI_IO_REQUEST_ENABLED 1
#define TRACE_MPTSAS_RESET_ENABLED 1
#define TRACE_MPTSAS_SCSI_OVERFLOW_ENABLED 1
#define TRACE_MPTSAS_SGL_OVERFLOW_ENABLED 1
#define TRACE_MPTSAS_UNHANDLED_CMD_ENABLED 1
#define TRACE_MPTSAS_UNHANDLED_DOORBELL_CMD_ENABLED 1
#define TRACE_MPTSAS_CONFIG_SAS_DEVICE_ENABLED 1
#define TRACE_MPTSAS_CONFIG_SAS_PHY_ENABLED 1
#define TRACE_MEGASAS_INIT_FIRMWARE_ENABLED 1
#define TRACE_MEGASAS_INIT_QUEUE_ENABLED 1
#define TRACE_MEGASAS_INITQ_MAP_FAILED_ENABLED 1
#define TRACE_MEGASAS_INITQ_MAPPED_ENABLED 1
#define TRACE_MEGASAS_INITQ_MISMATCH_ENABLED 1
#define TRACE_MEGASAS_QF_MAPPED_ENABLED 1
#define TRACE_MEGASAS_QF_NEW_ENABLED 1
#define TRACE_MEGASAS_QF_BUSY_ENABLED 1
#define TRACE_MEGASAS_QF_ENQUEUE_ENABLED 1
#define TRACE_MEGASAS_QF_UPDATE_ENABLED 1
#define TRACE_MEGASAS_QF_MAP_FAILED_ENABLED 1
#define TRACE_MEGASAS_QF_COMPLETE_NOIRQ_ENABLED 1
#define TRACE_MEGASAS_QF_COMPLETE_ENABLED 1
#define TRACE_MEGASAS_FRAME_BUSY_ENABLED 1
#define TRACE_MEGASAS_UNHANDLED_FRAME_CMD_ENABLED 1
#define TRACE_MEGASAS_HANDLE_SCSI_ENABLED 1
#define TRACE_MEGASAS_SCSI_TARGET_NOT_PRESENT_ENABLED 1
#define TRACE_MEGASAS_SCSI_INVALID_CDB_LEN_ENABLED 1
#define TRACE_MEGASAS_IOV_READ_OVERFLOW_ENABLED 1
#define TRACE_MEGASAS_IOV_WRITE_OVERFLOW_ENABLED 1
#define TRACE_MEGASAS_IOV_READ_UNDERFLOW_ENABLED 1
#define TRACE_MEGASAS_IOV_WRITE_UNDERFLOW_ENABLED 1
#define TRACE_MEGASAS_SCSI_REQ_ALLOC_FAILED_ENABLED 1
#define TRACE_MEGASAS_SCSI_READ_START_ENABLED 1
#define TRACE_MEGASAS_SCSI_WRITE_START_ENABLED 1
#define TRACE_MEGASAS_SCSI_NODATA_ENABLED 1
#define TRACE_MEGASAS_SCSI_COMPLETE_ENABLED 1
#define TRACE_MEGASAS_COMMAND_COMPLETE_ENABLED 1
#define TRACE_MEGASAS_HANDLE_IO_ENABLED 1
#define TRACE_MEGASAS_IO_TARGET_NOT_PRESENT_ENABLED 1
#define TRACE_MEGASAS_IO_READ_START_ENABLED 1
#define TRACE_MEGASAS_IO_WRITE_START_ENABLED 1
#define TRACE_MEGASAS_IO_COMPLETE_ENABLED 1
#define TRACE_MEGASAS_IOVEC_SGL_OVERFLOW_ENABLED 1
#define TRACE_MEGASAS_IOVEC_SGL_UNDERFLOW_ENABLED 1
#define TRACE_MEGASAS_IOVEC_SGL_INVALID_ENABLED 1
#define TRACE_MEGASAS_IOVEC_OVERFLOW_ENABLED 1
#define TRACE_MEGASAS_IOVEC_UNDERFLOW_ENABLED 1
#define TRACE_MEGASAS_HANDLE_DCMD_ENABLED 1
#define TRACE_MEGASAS_FINISH_DCMD_ENABLED 1
#define TRACE_MEGASAS_DCMD_REQ_ALLOC_FAILED_ENABLED 1
#define TRACE_MEGASAS_DCMD_INTERNAL_SUBMIT_ENABLED 1
#define TRACE_MEGASAS_DCMD_INTERNAL_FINISH_ENABLED 1
#define TRACE_MEGASAS_DCMD_INTERNAL_INVALID_ENABLED 1
#define TRACE_MEGASAS_DCMD_UNHANDLED_ENABLED 1
#define TRACE_MEGASAS_DCMD_ZERO_SGE_ENABLED 1
#define TRACE_MEGASAS_DCMD_INVALID_SGE_ENABLED 1
#define TRACE_MEGASAS_DCMD_INVALID_XFER_LEN_ENABLED 1
#define TRACE_MEGASAS_DCMD_ENTER_ENABLED 1
#define TRACE_MEGASAS_DCMD_DUMMY_ENABLED 1
#define TRACE_MEGASAS_DCMD_SET_FW_TIME_ENABLED 1
#define TRACE_MEGASAS_DCMD_PD_GET_LIST_ENABLED 1
#define TRACE_MEGASAS_DCMD_LD_GET_LIST_ENABLED 1
#define TRACE_MEGASAS_DCMD_LD_GET_INFO_ENABLED 1
#define TRACE_MEGASAS_DCMD_LD_LIST_QUERY_ENABLED 1
#define TRACE_MEGASAS_DCMD_PD_GET_INFO_ENABLED 1
#define TRACE_MEGASAS_DCMD_PD_LIST_QUERY_ENABLED 1
#define TRACE_MEGASAS_DCMD_RESET_LD_ENABLED 1
#define TRACE_MEGASAS_DCMD_UNSUPPORTED_ENABLED 1
#define TRACE_MEGASAS_ABORT_FRAME_ENABLED 1
#define TRACE_MEGASAS_ABORT_NO_CMD_ENABLED 1
#define TRACE_MEGASAS_ABORT_INVALID_CONTEXT_ENABLED 1
#define TRACE_MEGASAS_RESET_ENABLED 1
#define TRACE_MEGASAS_INIT_ENABLED 1
#define TRACE_MEGASAS_MSIX_RAISE_ENABLED 1
#define TRACE_MEGASAS_MSI_RAISE_ENABLED 1
#define TRACE_MEGASAS_IRQ_LOWER_ENABLED 1
#define TRACE_MEGASAS_IRQ_RAISE_ENABLED 1
#define TRACE_MEGASAS_INTR_ENABLED_ENABLED 1
#define TRACE_MEGASAS_INTR_DISABLED_ENABLED 1
#define TRACE_MEGASAS_MSIX_ENABLED_ENABLED 1
#define TRACE_MEGASAS_MSI_ENABLED_ENABLED 1
#define TRACE_MEGASAS_MMIO_READL_ENABLED 1
#define TRACE_MEGASAS_MMIO_INVALID_READL_ENABLED 1
#define TRACE_MEGASAS_MMIO_WRITEL_ENABLED 1
#define TRACE_MEGASAS_MMIO_INVALID_WRITEL_ENABLED 1
#define TRACE_PVSCSI_RING_INIT_DATA_ENABLED 1
#define TRACE_PVSCSI_RING_INIT_MSG_ENABLED 1
#define TRACE_PVSCSI_RING_FLUSH_CMP_ENABLED 1
#define TRACE_PVSCSI_RING_FLUSH_MSG_ENABLED 1
#define TRACE_PVSCSI_UPDATE_IRQ_LEVEL_ENABLED 1
#define TRACE_PVSCSI_UPDATE_IRQ_MSI_ENABLED 1
#define TRACE_PVSCSI_CMP_RING_PUT_ENABLED 1
#define TRACE_PVSCSI_MSG_RING_PUT_ENABLED 1
#define TRACE_PVSCSI_COMPLETE_REQUEST_ENABLED 1
#define TRACE_PVSCSI_GET_SG_LIST_ENABLED 1
#define TRACE_PVSCSI_GET_NEXT_SG_ELEM_ENABLED 1
#define TRACE_PVSCSI_COMMAND_COMPLETE_NOT_FOUND_ENABLED 1
#define TRACE_PVSCSI_COMMAND_COMPLETE_DATA_RUN_ENABLED 1
#define TRACE_PVSCSI_COMMAND_COMPLETE_SENSE_LEN_ENABLED 1
#define TRACE_PVSCSI_CONVERT_SGLIST_ENABLED 1
#define TRACE_PVSCSI_PROCESS_REQ_DESCR_ENABLED 1
#define TRACE_PVSCSI_PROCESS_REQ_DESCR_UNKNOWN_DEVICE_ENABLED 1
#define TRACE_PVSCSI_PROCESS_REQ_DESCR_INVALID_DIR_ENABLED 1
#define TRACE_PVSCSI_PROCESS_IO_ENABLED 1
#define TRACE_PVSCSI_ON_CMD_NOIMPL_ENABLED 1
#define TRACE_PVSCSI_ON_CMD_RESET_DEV_ENABLED 1
#define TRACE_PVSCSI_ON_CMD_ARRIVED_ENABLED 1
#define TRACE_PVSCSI_ON_CMD_ABORT_ENABLED 1
#define TRACE_PVSCSI_ON_CMD_UNKNOWN_ENABLED 1
#define TRACE_PVSCSI_ON_CMD_UNKNOWN_DATA_ENABLED 1
#define TRACE_PVSCSI_IO_WRITE_ENABLED 1
#define TRACE_PVSCSI_IO_WRITE_UNKNOWN_ENABLED 1
#define TRACE_PVSCSI_IO_READ_ENABLED 1
#define TRACE_PVSCSI_IO_READ_UNKNOWN_ENABLED 1
#define TRACE_PVSCSI_INIT_MSI_FAIL_ENABLED 1
#define TRACE_PVSCSI_STATE_ENABLED 1
#define TRACE_PVSCSI_TX_RINGS_PPN_ENABLED 1
#define TRACE_PVSCSI_TX_RINGS_NUM_PAGES_ENABLED 1
#define TRACE_ESP_ERROR_FIFO_OVERRUN_ENABLED 1
#define TRACE_ESP_ERROR_UNHANDLED_COMMAND_ENABLED 1
#define TRACE_ESP_ERROR_INVALID_WRITE_ENABLED 1
#define TRACE_ESP_RAISE_IRQ_ENABLED 1
#define TRACE_ESP_LOWER_IRQ_ENABLED 1
#define TRACE_ESP_RAISE_DRQ_ENABLED 1
#define TRACE_ESP_LOWER_DRQ_ENABLED 1
#define TRACE_ESP_DMA_ENABLE_ENABLED 1
#define TRACE_ESP_DMA_DISABLE_ENABLED 1
#define TRACE_ESP_PDMA_READ_ENABLED 1
#define TRACE_ESP_PDMA_WRITE_ENABLED 1
#define TRACE_ESP_GET_CMD_ENABLED 1
#define TRACE_ESP_DO_COMMAND_PHASE_ENABLED 1
#define TRACE_ESP_DO_IDENTIFY_ENABLED 1
#define TRACE_ESP_HANDLE_SATN_STOP_ENABLED 1
#define TRACE_ESP_WRITE_RESPONSE_ENABLED 1
#define TRACE_ESP_DO_DMA_ENABLED 1
#define TRACE_ESP_COMMAND_COMPLETE_ENABLED 1
#define TRACE_ESP_COMMAND_COMPLETE_DEFERRED_ENABLED 1
#define TRACE_ESP_COMMAND_COMPLETE_UNEXPECTED_ENABLED 1
#define TRACE_ESP_COMMAND_COMPLETE_FAIL_ENABLED 1
#define TRACE_ESP_TRANSFER_DATA_ENABLED 1
#define TRACE_ESP_HANDLE_TI_ENABLED 1
#define TRACE_ESP_HANDLE_TI_CMD_ENABLED 1
#define TRACE_ESP_MEM_READB_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_NOP_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_FLUSH_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_RESET_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_BUS_RESET_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_ICCS_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_MSGACC_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_PAD_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_SATN_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_RSTATN_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_SEL_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_SELATN_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_SELATNS_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_ENSEL_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_DISSEL_ENABLED 1
#define TRACE_ESP_MEM_WRITEB_CMD_TI_ENABLED 1
#define TRACE_ESP_SET_PHASE_ENABLED 1
#define TRACE_ESP_INVALID_CMD_ENABLED 1
#define TRACE_ESP_PCI_ERROR_INVALID_DMA_DIRECTION_ENABLED 1
#define TRACE_ESP_PCI_ERROR_INVALID_READ_ENABLED 1
#define TRACE_ESP_PCI_ERROR_INVALID_WRITE_ENABLED 1
#define TRACE_ESP_PCI_ERROR_INVALID_WRITE_DMA_ENABLED 1
#define TRACE_ESP_PCI_DMA_READ_ENABLED 1
#define TRACE_ESP_PCI_DMA_WRITE_ENABLED 1
#define TRACE_ESP_PCI_DMA_IDLE_ENABLED 1
#define TRACE_ESP_PCI_DMA_BLAST_ENABLED 1
#define TRACE_ESP_PCI_DMA_ABORT_ENABLED 1
#define TRACE_ESP_PCI_DMA_START_ENABLED 1
#define TRACE_ESP_PCI_SBAC_READ_ENABLED 1
#define TRACE_ESP_PCI_SBAC_WRITE_ENABLED 1
#define TRACE_SPAPR_VSCSI_SEND_RSP_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_NO_DATA_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_DIRECT_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_RANGE_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_DMA_READ_ERROR_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_SEG_EXT_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_BOUNDARY_ENABLED 1
#define TRACE_SPAPR_VSCSI_FETCH_DESC_DONE_ENABLED 1
#define TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_ENABLED 1
#define TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_RW_ENABLED 1
#define TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_BUF_ENABLED 1
#define TRACE_SPAPR_VSCSI_SRP_TRANSFER_DATA_ENABLED 1
#define TRACE_SPAPR_VSCSI_TRANSFER_DATA_ENABLED 1
#define TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_ENABLED 1
#define TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA1_ENABLED 1
#define TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA2_ENABLED 1
#define TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_STATUS_ENABLED 1
#define TRACE_SPAPR_VSCSI_SAVE_REQUEST_ENABLED 1
#define TRACE_SPAPR_VSCSI_LOAD_REQUEST_ENABLED 1
#define TRACE_SPAPR_VSCSI_PROCESS_LOGIN_ENABLED 1
#define TRACE_SPAPR_VSCSI_PROCESS_TSK_MGMT_ENABLED 1
#define TRACE_SPAPR_VSCSI_QUEUE_CMD_NO_DRIVE_ENABLED 1
#define TRACE_SPAPR_VSCSI_QUEUE_CMD_ENABLED 1
#define TRACE_SPAPR_VSCSI_DO_CRQ_ENABLED 1
#define TRACE_LSI_RESET_ENABLED 1
#define TRACE_LSI_UPDATE_IRQ_ENABLED 1
#define TRACE_LSI_UPDATE_IRQ_DISCONNECTED_ENABLED 1
#define TRACE_LSI_SCRIPT_SCSI_INTERRUPT_ENABLED 1
#define TRACE_LSI_SCRIPT_DMA_INTERRUPT_ENABLED 1
#define TRACE_LSI_BAD_PHASE_JUMP_ENABLED 1
#define TRACE_LSI_BAD_PHASE_INTERRUPT_ENABLED 1
#define TRACE_LSI_BAD_SELECTION_ENABLED 1
#define TRACE_LSI_DO_DMA_UNAVAILABLE_ENABLED 1
#define TRACE_LSI_DO_DMA_ENABLED 1
#define TRACE_LSI_QUEUE_COMMAND_ENABLED 1
#define TRACE_LSI_ADD_MSG_BYTE_ERROR_ENABLED 1
#define TRACE_LSI_ADD_MSG_BYTE_ENABLED 1
#define TRACE_LSI_RESELECT_ENABLED 1
#define TRACE_LSI_QUEUE_REQ_ERROR_ENABLED 1
#define TRACE_LSI_QUEUE_REQ_ENABLED 1
#define TRACE_LSI_COMMAND_COMPLETE_ENABLED 1
#define TRACE_LSI_TRANSFER_DATA_ENABLED 1
#define TRACE_LSI_DO_COMMAND_ENABLED 1
#define TRACE_LSI_DO_STATUS_ENABLED 1
#define TRACE_LSI_DO_STATUS_ERROR_ENABLED 1
#define TRACE_LSI_DO_MSGIN_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_DISCONNECT_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_NOOP_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_EXTENDED_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_IGNORED_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_SIMPLEQUEUE_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_ABORT_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_CLEARQUEUE_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_BUSDEVICERESET_ENABLED 1
#define TRACE_LSI_DO_MSGOUT_SELECT_ENABLED 1
#define TRACE_LSI_MEMCPY_ENABLED 1
#define TRACE_LSI_WAIT_RESELECT_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_DELAYED_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_BADPHASE_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_IO_ALREADYRESELECTED_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_IO_SELECTED_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_IO_DISCONNECT_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_IO_SET_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_IO_CLEAR_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_IO_OPCODE_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_NOP_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_DELAYEDSELECT_TIMEOUT_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_COMPC_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_COMPP_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_COMPD_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_JUMP_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_CALL_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_RETURN_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_INTERRUPT_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_ILLEGAL_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_TC_CC_FAILED_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_MM_LOAD_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_MM_STORE_ENABLED 1
#define TRACE_LSI_EXECUTE_SCRIPT_STOP_ENABLED 1
#define TRACE_LSI_AWOKEN_ENABLED 1
#define TRACE_LSI_REG_READ_ENABLED 1
#define TRACE_LSI_REG_WRITE_ENABLED 1
#define TRACE_LSI_SCRIPTS_TIMER_TRIGGERED_ENABLED 1
#define TRACE_LSI_SCRIPTS_TIMER_START_ENABLED 1
#define TRACE_NCR710_RESET_ENABLED 1
#define TRACE_NCR710_REG_READ_ENABLED 1
#define TRACE_NCR710_REG_WRITE_ENABLED 1
#define TRACE_NCR710_SCRIPT_SCSI_INTERRUPT_ENABLED 1
#define TRACE_NCR710_SCRIPT_DMA_INTERRUPT_ENABLED 1
#define TRACE_NCR710_COMMAND_COMPLETE_ENABLED 1
#define TRACE_NCR710_DISCONNECT_ENABLED 1
#define TRACE_NCR710_BAD_SELECTION_ENABLED 1
#define TRACE_NCR710_PARITY_SENSE_CHANGED_ENABLED 1
#define TRACE_NCR710_DEVICE_REALIZE_ENABLED 1
#define TRACE_LASI_NCR710_DEVICE_REALIZE_ENABLED 1
#define TRACE_LASI_NCR710_DEVICE_RESET_ENABLED 1
#define TRACE_LASI_NCR710_REG_READ_ENABLED 1
#define TRACE_LASI_NCR710_REG_WRITE_ENABLED 1
#define TRACE_LASI_NCR710_REG_READ_ID_ENABLED 1
#define TRACE_LASI_NCR710_REG_READ_HVERSION_ENABLED 1
#define TRACE_LASI_NCR710_REG_FORWARD_READ_ENABLED 1
#define TRACE_LASI_NCR710_REG_FORWARD_WRITE_ENABLED 1
#define TRACE_LASI_NCR710_COMMAND_COMPLETE_ENABLED 1
#define TRACE_LASI_NCR710_TRANSFER_DATA_ENABLED 1
#define TRACE_LASI_NCR710_REQUEST_CANCELLED_ENABLED 1
#define TRACE_LASI_NCR710_TIMERS_INITIALIZED_ENABLED 1
#define TRACE_LASI_NCR710_HANDLE_LEGACY_CMDLINE_ENABLED 1
#define TRACE_LASI_NCR710_LEGACY_DRIVE_FOUND_ENABLED 1
#define TRACE_LASI_NCR710_SCSI_DEVICE_CREATED_ENABLED 1
#define TRACE_VIRTIO_SCSI_CMD_REQ_ENABLED 1
#define TRACE_VIRTIO_SCSI_CMD_RESP_ENABLED 1
#define TRACE_VIRTIO_SCSI_TMF_REQ_ENABLED 1
#define TRACE_VIRTIO_SCSI_TMF_RESP_ENABLED 1
#define TRACE_VIRTIO_SCSI_AN_REQ_ENABLED 1
#define TRACE_VIRTIO_SCSI_AN_RESP_ENABLED 1
#define TRACE_VIRTIO_SCSI_EVENT_ENABLED 1
#define TRACE_SCSI_DISK_CHECK_CONDITION_ENABLED 1
#define TRACE_SCSI_DISK_READ_COMPLETE_ENABLED 1
#define TRACE_SCSI_DISK_READ_DATA_COUNT_ENABLED 1
#define TRACE_SCSI_DISK_READ_DATA_INVALID_ENABLED 1
#define TRACE_SCSI_DISK_WRITE_COMPLETE_NOIO_ENABLED 1
#define TRACE_SCSI_DISK_WRITE_DATA_INVALID_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_00_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_NOT_SUPPORTED_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_83_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_B0_NOT_SUPPORTED_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_MODE_SENSE_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_READ_TOC_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_READ_DATA_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_WRITE_DATA_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_16_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_UNSUPPORTED_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_SEEK_10_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_10_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_UNMAP_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_VERIFY_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_WRITE_SAME_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_UNKNOWN_ENABLED 1
#define TRACE_SCSI_DISK_EMULATE_COMMAND_FORMAT_UNIT_ENABLED 1
#define TRACE_SCSI_DISK_DMA_COMMAND_READ_ENABLED 1
#define TRACE_SCSI_DISK_DMA_COMMAND_WRITE_ENABLED 1
#define TRACE_SCSI_DISK_NEW_REQUEST_ENABLED 1
#define TRACE_SCSI_DISK_AIO_SGIO_COMMAND_ENABLED 1
#define TRACE_SCSI_DISK_MODE_SELECT_PAGE_TRUNCATED_ENABLED 1
#define TRACE_SCSI_DISK_MODE_SELECT_SET_BLOCKSIZE_ENABLED 1
#define TRACE_SCSI_GENERIC_COMMAND_COMPLETE_NOIO_ENABLED 1
#define TRACE_SCSI_GENERIC_READ_COMPLETE_ENABLED 1
#define TRACE_SCSI_GENERIC_READ_DATA_ENABLED 1
#define TRACE_SCSI_GENERIC_WRITE_COMPLETE_ENABLED 1
#define TRACE_SCSI_GENERIC_WRITE_COMPLETE_BLOCKSIZE_ENABLED 1
#define TRACE_SCSI_GENERIC_WRITE_DATA_ENABLED 1
#define TRACE_SCSI_GENERIC_SEND_COMMAND_ENABLED 1
#define TRACE_SCSI_GENERIC_REALIZE_TYPE_ENABLED 1
#define TRACE_SCSI_GENERIC_REALIZE_BLOCKSIZE_ENABLED 1
#define TRACE_SCSI_GENERIC_AIO_SGIO_COMMAND_ENABLED 1
#define TRACE_SCSI_GENERIC_IOCTL_SGIO_COMMAND_ENABLED 1
#define TRACE_SCSI_GENERIC_IOCTL_SGIO_DONE_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_SCSI_REQ_ALLOC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_ALLOC) || \
    false)

static inline void trace_scsi_req_alloc(int target, int lun, int tag)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_ALLOC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_alloc " "target %d lun %d tag %d" "\n", target, lun, tag);
#line 1112 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_CANCEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_CANCEL) || \
    false)

static inline void trace_scsi_req_cancel(int target, int lun, int tag)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_CANCEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_cancel " "target %d lun %d tag %d" "\n", target, lun, tag);
#line 1127 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_DATA) || \
    false)

static inline void trace_scsi_req_data(int target, int lun, int tag, int len)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 6 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_data " "target %d lun %d tag %d len %d" "\n", target, lun, tag, len);
#line 1142 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_DATA_CANCELED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_DATA_CANCELED) || \
    false)

static inline void trace_scsi_req_data_canceled(int target, int lun, int tag, int len)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_DATA_CANCELED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 7 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_data_canceled " "target %d lun %d tag %d len %d" "\n", target, lun, tag, len);
#line 1157 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_DEQUEUE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_DEQUEUE) || \
    false)

static inline void trace_scsi_req_dequeue(int target, int lun, int tag)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_DEQUEUE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_dequeue " "target %d lun %d tag %d" "\n", target, lun, tag);
#line 1172 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_BUS_DRAINED_BEGIN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_BUS_DRAINED_BEGIN) || \
    false)

static inline void trace_scsi_bus_drained_begin(void *bus, void *sdev)
{
    if (trace_event_get_state(TRACE_SCSI_BUS_DRAINED_BEGIN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_bus_drained_begin " "bus %p sdev %p" "\n", bus, sdev);
#line 1187 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_BUS_DRAINED_END_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_BUS_DRAINED_END) || \
    false)

static inline void trace_scsi_bus_drained_end(void *bus, void *sdev)
{
    if (trace_event_get_state(TRACE_SCSI_BUS_DRAINED_END)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_bus_drained_end " "bus %p sdev %p" "\n", bus, sdev);
#line 1202 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_CONTINUE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_CONTINUE) || \
    false)

static inline void trace_scsi_req_continue(int target, int lun, int tag)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_CONTINUE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_continue " "target %d lun %d tag %d" "\n", target, lun, tag);
#line 1217 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_CONTINUE_CANCELED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_CONTINUE_CANCELED) || \
    false)

static inline void trace_scsi_req_continue_canceled(int target, int lun, int tag)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_CONTINUE_CANCELED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 12 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_continue_canceled " "target %d lun %d tag %d" "\n", target, lun, tag);
#line 1232 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_PARSED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_PARSED) || \
    false)

static inline void trace_scsi_req_parsed(int target, int lun, int tag, int cmd, int mode, int xfer)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_PARSED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 13 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_parsed " "target %d lun %d tag %d command %d dir %d length %d" "\n", target, lun, tag, cmd, mode, xfer);
#line 1247 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_PARSED_LBA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_PARSED_LBA) || \
    false)

static inline void trace_scsi_req_parsed_lba(int target, int lun, int tag, int cmd, uint64_t lba)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_PARSED_LBA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 14 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_parsed_lba " "target %d lun %d tag %d command %d lba %"PRIu64 "\n", target, lun, tag, cmd, lba);
#line 1262 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_PARSE_BAD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_PARSE_BAD) || \
    false)

static inline void trace_scsi_req_parse_bad(int target, int lun, int tag, int cmd)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_PARSE_BAD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 15 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_parse_bad " "target %d lun %d tag %d command %d" "\n", target, lun, tag, cmd);
#line 1277 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQ_BUILD_SENSE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQ_BUILD_SENSE) || \
    false)

static inline void trace_scsi_req_build_sense(int target, int lun, int tag, int key, int asc, int ascq)
{
    if (trace_event_get_state(TRACE_SCSI_REQ_BUILD_SENSE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 16 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_req_build_sense " "target %d lun %d tag %d key 0x%02x asc 0x%02x ascq 0x%02x" "\n", target, lun, tag, key, asc, ascq);
#line 1292 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DEVICE_SET_UA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DEVICE_SET_UA) || \
    false)

static inline void trace_scsi_device_set_ua(int target, int lun, int key, int asc, int ascq)
{
    if (trace_event_get_state(TRACE_SCSI_DEVICE_SET_UA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 17 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_device_set_ua " "target %d lun %d key 0x%02x asc 0x%02x ascq 0x%02x" "\n", target, lun, key, asc, ascq);
#line 1307 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REPORT_LUNS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REPORT_LUNS) || \
    false)

static inline void trace_scsi_report_luns(int target, int lun, int tag)
{
    if (trace_event_get_state(TRACE_SCSI_REPORT_LUNS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 18 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_report_luns " "target %d lun %d tag %d" "\n", target, lun, tag);
#line 1322 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_INQUIRY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_INQUIRY) || \
    false)

static inline void trace_scsi_inquiry(int target, int lun, int tag, int cdb1, int cdb2)
{
    if (trace_event_get_state(TRACE_SCSI_INQUIRY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 19 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_inquiry " "target %d lun %d tag %d page 0x%02x/0x%02x" "\n", target, lun, tag, cdb1, cdb2);
#line 1337 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_TEST_UNIT_READY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_TEST_UNIT_READY) || \
    false)

static inline void trace_scsi_test_unit_ready(int target, int lun, int tag)
{
    if (trace_event_get_state(TRACE_SCSI_TEST_UNIT_READY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 20 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_test_unit_ready " "target %d lun %d tag %d" "\n", target, lun, tag);
#line 1352 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_REQUEST_SENSE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_REQUEST_SENSE) || \
    false)

static inline void trace_scsi_request_sense(int target, int lun, int tag)
{
    if (trace_event_get_state(TRACE_SCSI_REQUEST_SENSE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 21 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_request_sense " "target %d lun %d tag %d" "\n", target, lun, tag);
#line 1367 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_COMMAND_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_COMMAND_COMPLETE) || \
    false)

static inline void trace_mptsas_command_complete(void *dev, uint32_t ctx, uint32_t status, uint32_t resid)
{
    if (trace_event_get_state(TRACE_MPTSAS_COMMAND_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 24 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_command_complete " "dev %p context 0x%08x status 0x%x resid %d" "\n", dev, ctx, status, resid);
#line 1382 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_DIAG_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_DIAG_READ) || \
    false)

static inline void trace_mptsas_diag_read(void *dev, uint32_t addr, uint32_t val)
{
    if (trace_event_get_state(TRACE_MPTSAS_DIAG_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 25 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_diag_read " "dev %p addr 0x%08x value 0x%08x" "\n", dev, addr, val);
#line 1397 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_DIAG_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_DIAG_WRITE) || \
    false)

static inline void trace_mptsas_diag_write(void *dev, uint32_t addr, uint32_t val)
{
    if (trace_event_get_state(TRACE_MPTSAS_DIAG_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 26 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_diag_write " "dev %p addr 0x%08x value 0x%08x" "\n", dev, addr, val);
#line 1412 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_IRQ_INTX_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_IRQ_INTX) || \
    false)

static inline void trace_mptsas_irq_intx(void *dev, int level)
{
    if (trace_event_get_state(TRACE_MPTSAS_IRQ_INTX)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 27 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_irq_intx " "dev %p level %d" "\n", dev, level);
#line 1427 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_IRQ_MSI_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_IRQ_MSI) || \
    false)

static inline void trace_mptsas_irq_msi(void *dev)
{
    if (trace_event_get_state(TRACE_MPTSAS_IRQ_MSI)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 28 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_irq_msi " "dev %p " "\n", dev);
#line 1442 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_MMIO_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_MMIO_READ) || \
    false)

static inline void trace_mptsas_mmio_read(void *dev, uint32_t addr, uint32_t val)
{
    if (trace_event_get_state(TRACE_MPTSAS_MMIO_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 29 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_mmio_read " "dev %p addr 0x%08x value 0x%x" "\n", dev, addr, val);
#line 1457 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_MMIO_UNHANDLED_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_MMIO_UNHANDLED_READ) || \
    false)

static inline void trace_mptsas_mmio_unhandled_read(void *dev, uint32_t addr)
{
    if (trace_event_get_state(TRACE_MPTSAS_MMIO_UNHANDLED_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 30 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_mmio_unhandled_read " "dev %p addr 0x%08x" "\n", dev, addr);
#line 1472 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_MMIO_UNHANDLED_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_MMIO_UNHANDLED_WRITE) || \
    false)

static inline void trace_mptsas_mmio_unhandled_write(void *dev, uint32_t addr, uint32_t val)
{
    if (trace_event_get_state(TRACE_MPTSAS_MMIO_UNHANDLED_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 31 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_mmio_unhandled_write " "dev %p addr 0x%08x value 0x%x" "\n", dev, addr, val);
#line 1487 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_MMIO_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_MMIO_WRITE) || \
    false)

static inline void trace_mptsas_mmio_write(void *dev, uint32_t addr, uint32_t val)
{
    if (trace_event_get_state(TRACE_MPTSAS_MMIO_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 32 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_mmio_write " "dev %p addr 0x%08x value 0x%x" "\n", dev, addr, val);
#line 1502 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_PROCESS_MESSAGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_PROCESS_MESSAGE) || \
    false)

static inline void trace_mptsas_process_message(void *dev, int msg, uint32_t ctx)
{
    if (trace_event_get_state(TRACE_MPTSAS_PROCESS_MESSAGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 33 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_process_message " "dev %p cmd %d context 0x%08x" "\n", dev, msg, ctx);
#line 1517 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_PROCESS_SCSI_IO_REQUEST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_PROCESS_SCSI_IO_REQUEST) || \
    false)

static inline void trace_mptsas_process_scsi_io_request(void *dev, int bus, int target, int lun, uint64_t len)
{
    if (trace_event_get_state(TRACE_MPTSAS_PROCESS_SCSI_IO_REQUEST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 34 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_process_scsi_io_request " "dev %p dev %d:%d:%d length %"PRIu64"" "\n", dev, bus, target, lun, len);
#line 1532 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_RESET) || \
    false)

static inline void trace_mptsas_reset(void *dev)
{
    if (trace_event_get_state(TRACE_MPTSAS_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 35 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_reset " "dev %p " "\n", dev);
#line 1547 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_SCSI_OVERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_SCSI_OVERFLOW) || \
    false)

static inline void trace_mptsas_scsi_overflow(void *dev, uint32_t ctx, uint64_t req, uint64_t found)
{
    if (trace_event_get_state(TRACE_MPTSAS_SCSI_OVERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 36 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_scsi_overflow " "dev %p context 0x%08x: %"PRIu64"/%"PRIu64"" "\n", dev, ctx, req, found);
#line 1562 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_SGL_OVERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_SGL_OVERFLOW) || \
    false)

static inline void trace_mptsas_sgl_overflow(void *dev, uint32_t ctx, uint64_t req, uint64_t found)
{
    if (trace_event_get_state(TRACE_MPTSAS_SGL_OVERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 37 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_sgl_overflow " "dev %p context 0x%08x: %"PRIu64"/%"PRIu64"" "\n", dev, ctx, req, found);
#line 1577 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_UNHANDLED_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_UNHANDLED_CMD) || \
    false)

static inline void trace_mptsas_unhandled_cmd(void *dev, uint32_t ctx, uint8_t msg_cmd)
{
    if (trace_event_get_state(TRACE_MPTSAS_UNHANDLED_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 38 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_unhandled_cmd " "dev %p context 0x%08x: Unhandled cmd 0x%x" "\n", dev, ctx, msg_cmd);
#line 1592 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_UNHANDLED_DOORBELL_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_UNHANDLED_DOORBELL_CMD) || \
    false)

static inline void trace_mptsas_unhandled_doorbell_cmd(void *dev, int cmd)
{
    if (trace_event_get_state(TRACE_MPTSAS_UNHANDLED_DOORBELL_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 39 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_unhandled_doorbell_cmd " "dev %p value 0x%08x" "\n", dev, cmd);
#line 1607 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_CONFIG_SAS_DEVICE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_CONFIG_SAS_DEVICE) || \
    false)

static inline void trace_mptsas_config_sas_device(void *dev, int address, int port, int phy_handle, int dev_handle, int page)
{
    if (trace_event_get_state(TRACE_MPTSAS_CONFIG_SAS_DEVICE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 42 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_config_sas_device " "dev %p address %d (port %d, handles: phy %d dev %d) page %d" "\n", dev, address, port, phy_handle, dev_handle, page);
#line 1622 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MPTSAS_CONFIG_SAS_PHY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MPTSAS_CONFIG_SAS_PHY) || \
    false)

static inline void trace_mptsas_config_sas_phy(void *dev, int address, int port, int phy_handle, int dev_handle, int page)
{
    if (trace_event_get_state(TRACE_MPTSAS_CONFIG_SAS_PHY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 43 "../xemu/hw/scsi/trace-events"
            qemu_log("mptsas_config_sas_phy " "dev %p address %d (port %d, handles: phy %d dev %d) page %d" "\n", dev, address, port, phy_handle, dev_handle, page);
#line 1637 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_INIT_FIRMWARE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_INIT_FIRMWARE) || \
    false)

static inline void trace_megasas_init_firmware(uint64_t pa)
{
    if (trace_event_get_state(TRACE_MEGASAS_INIT_FIRMWARE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 46 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_init_firmware " "pa 0x%" PRIx64 " " "\n", pa);
#line 1652 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_INIT_QUEUE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_INIT_QUEUE) || \
    false)

static inline void trace_megasas_init_queue(uint64_t queue_pa, int queue_len, uint32_t head, uint32_t tail, uint32_t flags)
{
    if (trace_event_get_state(TRACE_MEGASAS_INIT_QUEUE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 47 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_init_queue " "queue at 0x%" PRIx64 " len %d head 0x%" PRIx32 " tail 0x%" PRIx32 " flags 0x%x" "\n", queue_pa, queue_len, head, tail, flags);
#line 1667 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_INITQ_MAP_FAILED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_INITQ_MAP_FAILED) || \
    false)

static inline void trace_megasas_initq_map_failed(int frame)
{
    if (trace_event_get_state(TRACE_MEGASAS_INITQ_MAP_FAILED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 48 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_initq_map_failed " "scmd %d: failed to map queue" "\n", frame);
#line 1682 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_INITQ_MAPPED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_INITQ_MAPPED) || \
    false)

static inline void trace_megasas_initq_mapped(uint64_t pa)
{
    if (trace_event_get_state(TRACE_MEGASAS_INITQ_MAPPED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 49 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_initq_mapped " "queue already mapped at 0x%" PRIx64 "\n", pa);
#line 1697 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_INITQ_MISMATCH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_INITQ_MISMATCH) || \
    false)

static inline void trace_megasas_initq_mismatch(int queue_len, int fw_cmds)
{
    if (trace_event_get_state(TRACE_MEGASAS_INITQ_MISMATCH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 50 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_initq_mismatch " "queue size %d max fw cmds %d" "\n", queue_len, fw_cmds);
#line 1712 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_QF_MAPPED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_QF_MAPPED) || \
    false)

static inline void trace_megasas_qf_mapped(unsigned int index)
{
    if (trace_event_get_state(TRACE_MEGASAS_QF_MAPPED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 51 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_qf_mapped " "skip mapped frame 0x%x" "\n", index);
#line 1727 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_QF_NEW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_QF_NEW) || \
    false)

static inline void trace_megasas_qf_new(unsigned int index, uint64_t frame)
{
    if (trace_event_get_state(TRACE_MEGASAS_QF_NEW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 52 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_qf_new " "frame 0x%x addr 0x%" PRIx64 "\n", index, frame);
#line 1742 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_QF_BUSY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_QF_BUSY) || \
    false)

static inline void trace_megasas_qf_busy(unsigned long pa)
{
    if (trace_event_get_state(TRACE_MEGASAS_QF_BUSY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 53 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_qf_busy " "all frames busy for frame 0x%lx" "\n", pa);
#line 1757 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_QF_ENQUEUE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_QF_ENQUEUE) || \
    false)

static inline void trace_megasas_qf_enqueue(unsigned int index, unsigned int count, uint64_t context, uint32_t head, uint32_t tail, unsigned int busy)
{
    if (trace_event_get_state(TRACE_MEGASAS_QF_ENQUEUE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 54 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_qf_enqueue " "frame 0x%x count %d context 0x%" PRIx64 " head 0x%" PRIx32 " tail 0x%" PRIx32 " busy %u" "\n", index, count, context, head, tail, busy);
#line 1772 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_QF_UPDATE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_QF_UPDATE) || \
    false)

static inline void trace_megasas_qf_update(uint32_t head, uint32_t tail, unsigned int busy)
{
    if (trace_event_get_state(TRACE_MEGASAS_QF_UPDATE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 55 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_qf_update " "head 0x%" PRIx32 " tail 0x%" PRIx32 " busy %u" "\n", head, tail, busy);
#line 1787 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_QF_MAP_FAILED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_QF_MAP_FAILED) || \
    false)

static inline void trace_megasas_qf_map_failed(int cmd, unsigned long frame)
{
    if (trace_event_get_state(TRACE_MEGASAS_QF_MAP_FAILED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 56 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_qf_map_failed " "scmd %d: frame %lu" "\n", cmd, frame);
#line 1802 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_QF_COMPLETE_NOIRQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_QF_COMPLETE_NOIRQ) || \
    false)

static inline void trace_megasas_qf_complete_noirq(uint64_t context)
{
    if (trace_event_get_state(TRACE_MEGASAS_QF_COMPLETE_NOIRQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 57 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_qf_complete_noirq " "context 0x%" PRIx64 " " "\n", context);
#line 1817 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_QF_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_QF_COMPLETE) || \
    false)

static inline void trace_megasas_qf_complete(uint64_t context, uint32_t head, uint32_t tail, int busy)
{
    if (trace_event_get_state(TRACE_MEGASAS_QF_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 58 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_qf_complete " "context 0x%" PRIx64 " head 0x%" PRIx32 " tail 0x%" PRIx32 " busy %u" "\n", context, head, tail, busy);
#line 1832 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_FRAME_BUSY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_FRAME_BUSY) || \
    false)

static inline void trace_megasas_frame_busy(uint64_t addr)
{
    if (trace_event_get_state(TRACE_MEGASAS_FRAME_BUSY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 59 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_frame_busy " "frame 0x%" PRIx64 " busy" "\n", addr);
#line 1847 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_UNHANDLED_FRAME_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_UNHANDLED_FRAME_CMD) || \
    false)

static inline void trace_megasas_unhandled_frame_cmd(int cmd, uint8_t frame_cmd)
{
    if (trace_event_get_state(TRACE_MEGASAS_UNHANDLED_FRAME_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 60 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_unhandled_frame_cmd " "scmd %d: MFI cmd 0x%x" "\n", cmd, frame_cmd);
#line 1862 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_HANDLE_SCSI_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_HANDLE_SCSI) || \
    false)

static inline void trace_megasas_handle_scsi(const char *frame, int bus, int dev, int lun, void *sdev, unsigned long size)
{
    if (trace_event_get_state(TRACE_MEGASAS_HANDLE_SCSI)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 61 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_handle_scsi " "%s dev %x/%x/%x sdev %p xfer %lu" "\n", frame, bus, dev, lun, sdev, size);
#line 1877 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_SCSI_TARGET_NOT_PRESENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_SCSI_TARGET_NOT_PRESENT) || \
    false)

static inline void trace_megasas_scsi_target_not_present(const char *frame, int bus, int dev, int lun)
{
    if (trace_event_get_state(TRACE_MEGASAS_SCSI_TARGET_NOT_PRESENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 62 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_scsi_target_not_present " "%s dev %x/%x/%x" "\n", frame, bus, dev, lun);
#line 1892 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_SCSI_INVALID_CDB_LEN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_SCSI_INVALID_CDB_LEN) || \
    false)

static inline void trace_megasas_scsi_invalid_cdb_len(const char *frame, int bus, int dev, int lun, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_SCSI_INVALID_CDB_LEN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 63 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_scsi_invalid_cdb_len " "%s dev %x/%x/%x invalid cdb len %d" "\n", frame, bus, dev, lun, len);
#line 1907 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOV_READ_OVERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOV_READ_OVERFLOW) || \
    false)

static inline void trace_megasas_iov_read_overflow(int cmd, int bytes, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOV_READ_OVERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 64 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iov_read_overflow " "scmd %d: %d/%d bytes" "\n", cmd, bytes, len);
#line 1922 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOV_WRITE_OVERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOV_WRITE_OVERFLOW) || \
    false)

static inline void trace_megasas_iov_write_overflow(int cmd, int bytes, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOV_WRITE_OVERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 65 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iov_write_overflow " "scmd %d: %d/%d bytes" "\n", cmd, bytes, len);
#line 1937 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOV_READ_UNDERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOV_READ_UNDERFLOW) || \
    false)

static inline void trace_megasas_iov_read_underflow(int cmd, int bytes, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOV_READ_UNDERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 66 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iov_read_underflow " "scmd %d: %d/%d bytes" "\n", cmd, bytes, len);
#line 1952 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOV_WRITE_UNDERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOV_WRITE_UNDERFLOW) || \
    false)

static inline void trace_megasas_iov_write_underflow(int cmd, int bytes, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOV_WRITE_UNDERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 67 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iov_write_underflow " "scmd %d: %d/%d bytes" "\n", cmd, bytes, len);
#line 1967 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_SCSI_REQ_ALLOC_FAILED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_SCSI_REQ_ALLOC_FAILED) || \
    false)

static inline void trace_megasas_scsi_req_alloc_failed(const char *frame, int dev, int lun)
{
    if (trace_event_get_state(TRACE_MEGASAS_SCSI_REQ_ALLOC_FAILED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 68 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_scsi_req_alloc_failed " "%s dev %x/%x" "\n", frame, dev, lun);
#line 1982 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_SCSI_READ_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_SCSI_READ_START) || \
    false)

static inline void trace_megasas_scsi_read_start(int cmd, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_SCSI_READ_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 69 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_scsi_read_start " "scmd %d: transfer %d bytes of data" "\n", cmd, len);
#line 1997 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_SCSI_WRITE_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_SCSI_WRITE_START) || \
    false)

static inline void trace_megasas_scsi_write_start(int cmd, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_SCSI_WRITE_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 70 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_scsi_write_start " "scmd %d: transfer %d bytes of data" "\n", cmd, len);
#line 2012 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_SCSI_NODATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_SCSI_NODATA) || \
    false)

static inline void trace_megasas_scsi_nodata(int cmd)
{
    if (trace_event_get_state(TRACE_MEGASAS_SCSI_NODATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 71 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_scsi_nodata " "scmd %d: no data to be transferred" "\n", cmd);
#line 2027 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_SCSI_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_SCSI_COMPLETE) || \
    false)

static inline void trace_megasas_scsi_complete(int cmd, uint32_t status, int len, int xfer)
{
    if (trace_event_get_state(TRACE_MEGASAS_SCSI_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 72 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_scsi_complete " "scmd %d: status 0x%x, len %u/%u" "\n", cmd, status, len, xfer);
#line 2042 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_COMMAND_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_COMMAND_COMPLETE) || \
    false)

static inline void trace_megasas_command_complete(int cmd, uint32_t status, uint32_t resid)
{
    if (trace_event_get_state(TRACE_MEGASAS_COMMAND_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 73 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_command_complete " "scmd %d: status 0x%x, residual %d" "\n", cmd, status, resid);
#line 2057 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_HANDLE_IO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_HANDLE_IO) || \
    false)

static inline void trace_megasas_handle_io(int cmd, const char *frame, int dev, int lun, unsigned long lba, unsigned long count)
{
    if (trace_event_get_state(TRACE_MEGASAS_HANDLE_IO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 74 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_handle_io " "scmd %d: %s dev %x/%x lba 0x%lx count %lu" "\n", cmd, frame, dev, lun, lba, count);
#line 2072 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IO_TARGET_NOT_PRESENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IO_TARGET_NOT_PRESENT) || \
    false)

static inline void trace_megasas_io_target_not_present(int cmd, const char *frame, int dev, int lun)
{
    if (trace_event_get_state(TRACE_MEGASAS_IO_TARGET_NOT_PRESENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 75 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_io_target_not_present " "scmd %d: %s dev 1/%x/%x LUN not present" "\n", cmd, frame, dev, lun);
#line 2087 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IO_READ_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IO_READ_START) || \
    false)

static inline void trace_megasas_io_read_start(int cmd, unsigned long lba, unsigned long count, unsigned long len)
{
    if (trace_event_get_state(TRACE_MEGASAS_IO_READ_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 76 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_io_read_start " "scmd %d: start LBA 0x%lx %lu blocks (%lu bytes)" "\n", cmd, lba, count, len);
#line 2102 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IO_WRITE_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IO_WRITE_START) || \
    false)

static inline void trace_megasas_io_write_start(int cmd, unsigned long lba, unsigned long count, unsigned long len)
{
    if (trace_event_get_state(TRACE_MEGASAS_IO_WRITE_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 77 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_io_write_start " "scmd %d: start LBA 0x%lx %lu blocks (%lu bytes)" "\n", cmd, lba, count, len);
#line 2117 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IO_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IO_COMPLETE) || \
    false)

static inline void trace_megasas_io_complete(int cmd, uint32_t len)
{
    if (trace_event_get_state(TRACE_MEGASAS_IO_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 78 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_io_complete " "scmd %d: %d bytes" "\n", cmd, len);
#line 2132 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOVEC_SGL_OVERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOVEC_SGL_OVERFLOW) || \
    false)

static inline void trace_megasas_iovec_sgl_overflow(int cmd, int index, int limit)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOVEC_SGL_OVERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 79 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iovec_sgl_overflow " "scmd %d: iovec count %d limit %d" "\n", cmd, index, limit);
#line 2147 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOVEC_SGL_UNDERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOVEC_SGL_UNDERFLOW) || \
    false)

static inline void trace_megasas_iovec_sgl_underflow(int cmd, int index)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOVEC_SGL_UNDERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 80 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iovec_sgl_underflow " "scmd %d: iovec count %d" "\n", cmd, index);
#line 2162 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOVEC_SGL_INVALID_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOVEC_SGL_INVALID) || \
    false)

static inline void trace_megasas_iovec_sgl_invalid(int cmd, int index, uint64_t pa, uint32_t len)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOVEC_SGL_INVALID)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 81 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iovec_sgl_invalid " "scmd %d: element %d pa 0x%" PRIx64 " len %u" "\n", cmd, index, pa, len);
#line 2177 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOVEC_OVERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOVEC_OVERFLOW) || \
    false)

static inline void trace_megasas_iovec_overflow(int cmd, int len, int limit)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOVEC_OVERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 82 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iovec_overflow " "scmd %d: len %d limit %d" "\n", cmd, len, limit);
#line 2192 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IOVEC_UNDERFLOW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IOVEC_UNDERFLOW) || \
    false)

static inline void trace_megasas_iovec_underflow(int cmd, int len, int limit)
{
    if (trace_event_get_state(TRACE_MEGASAS_IOVEC_UNDERFLOW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 83 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_iovec_underflow " "scmd %d: len %d limit %d" "\n", cmd, len, limit);
#line 2207 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_HANDLE_DCMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_HANDLE_DCMD) || \
    false)

static inline void trace_megasas_handle_dcmd(int cmd, int opcode)
{
    if (trace_event_get_state(TRACE_MEGASAS_HANDLE_DCMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 84 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_handle_dcmd " "scmd %d: MFI DCMD opcode 0x%x" "\n", cmd, opcode);
#line 2222 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_FINISH_DCMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_FINISH_DCMD) || \
    false)

static inline void trace_megasas_finish_dcmd(int cmd, int size)
{
    if (trace_event_get_state(TRACE_MEGASAS_FINISH_DCMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 85 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_finish_dcmd " "scmd %d: MFI DCMD wrote %d bytes" "\n", cmd, size);
#line 2237 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_REQ_ALLOC_FAILED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_REQ_ALLOC_FAILED) || \
    false)

static inline void trace_megasas_dcmd_req_alloc_failed(int cmd, const char *desc)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_REQ_ALLOC_FAILED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 86 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_req_alloc_failed " "scmd %d: %s" "\n", cmd, desc);
#line 2252 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_INTERNAL_SUBMIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_INTERNAL_SUBMIT) || \
    false)

static inline void trace_megasas_dcmd_internal_submit(int cmd, const char *desc, int dev)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_INTERNAL_SUBMIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 87 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_internal_submit " "scmd %d: %s to dev %d" "\n", cmd, desc, dev);
#line 2267 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_INTERNAL_FINISH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_INTERNAL_FINISH) || \
    false)

static inline void trace_megasas_dcmd_internal_finish(int cmd, int opcode, int lun)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_INTERNAL_FINISH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 88 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_internal_finish " "scmd %d: cmd 0x%x lun %d" "\n", cmd, opcode, lun);
#line 2282 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_INTERNAL_INVALID_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_INTERNAL_INVALID) || \
    false)

static inline void trace_megasas_dcmd_internal_invalid(int cmd, int opcode)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_INTERNAL_INVALID)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 89 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_internal_invalid " "scmd %d: DCMD 0x%x" "\n", cmd, opcode);
#line 2297 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_UNHANDLED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_UNHANDLED) || \
    false)

static inline void trace_megasas_dcmd_unhandled(int cmd, int opcode, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_UNHANDLED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 90 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_unhandled " "scmd %d: opcode 0x%x, len %d" "\n", cmd, opcode, len);
#line 2312 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_ZERO_SGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_ZERO_SGE) || \
    false)

static inline void trace_megasas_dcmd_zero_sge(int cmd)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_ZERO_SGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 91 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_zero_sge " "scmd %d: zero DCMD sge count" "\n", cmd);
#line 2327 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_INVALID_SGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_INVALID_SGE) || \
    false)

static inline void trace_megasas_dcmd_invalid_sge(int cmd, int count)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_INVALID_SGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 92 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_invalid_sge " "scmd %d: DCMD sge count %d" "\n", cmd, count);
#line 2342 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_INVALID_XFER_LEN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_INVALID_XFER_LEN) || \
    false)

static inline void trace_megasas_dcmd_invalid_xfer_len(int cmd, unsigned long size, unsigned long max)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_INVALID_XFER_LEN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 93 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_invalid_xfer_len " "scmd %d: xfer len %ld, max %ld" "\n", cmd, size, max);
#line 2357 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_ENTER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_ENTER) || \
    false)

static inline void trace_megasas_dcmd_enter(int cmd, const char *dcmd, int len)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_ENTER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 94 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_enter " "scmd %d: DCMD %s len %d" "\n", cmd, dcmd, len);
#line 2372 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_DUMMY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_DUMMY) || \
    false)

static inline void trace_megasas_dcmd_dummy(int cmd, unsigned long size)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_DUMMY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 95 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_dummy " "scmd %d: xfer len %ld" "\n", cmd, size);
#line 2387 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_SET_FW_TIME_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_SET_FW_TIME) || \
    false)

static inline void trace_megasas_dcmd_set_fw_time(int cmd, unsigned long time)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_SET_FW_TIME)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 96 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_set_fw_time " "scmd %d: Set FW time 0x%lx" "\n", cmd, time);
#line 2402 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_PD_GET_LIST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_PD_GET_LIST) || \
    false)

static inline void trace_megasas_dcmd_pd_get_list(int cmd, int num, int max, int offset)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_PD_GET_LIST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 97 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_pd_get_list " "scmd %d: DCMD PD get list: %d / %d PDs, size %d" "\n", cmd, num, max, offset);
#line 2417 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_LD_GET_LIST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_LD_GET_LIST) || \
    false)

static inline void trace_megasas_dcmd_ld_get_list(int cmd, int num, int max)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_LD_GET_LIST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 98 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_ld_get_list " "scmd %d: DCMD LD get list: found %d / %d LDs" "\n", cmd, num, max);
#line 2432 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_LD_GET_INFO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_LD_GET_INFO) || \
    false)

static inline void trace_megasas_dcmd_ld_get_info(int cmd, int ld_id)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_LD_GET_INFO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 99 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_ld_get_info " "scmd %d: dev %d" "\n", cmd, ld_id);
#line 2447 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_LD_LIST_QUERY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_LD_LIST_QUERY) || \
    false)

static inline void trace_megasas_dcmd_ld_list_query(int cmd, int flags)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_LD_LIST_QUERY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 100 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_ld_list_query " "scmd %d: query flags 0x%x" "\n", cmd, flags);
#line 2462 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_PD_GET_INFO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_PD_GET_INFO) || \
    false)

static inline void trace_megasas_dcmd_pd_get_info(int cmd, int pd_id)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_PD_GET_INFO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 101 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_pd_get_info " "scmd %d: dev %d" "\n", cmd, pd_id);
#line 2477 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_PD_LIST_QUERY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_PD_LIST_QUERY) || \
    false)

static inline void trace_megasas_dcmd_pd_list_query(int cmd, int flags)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_PD_LIST_QUERY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 102 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_pd_list_query " "scmd %d: query flags 0x%x" "\n", cmd, flags);
#line 2492 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_RESET_LD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_RESET_LD) || \
    false)

static inline void trace_megasas_dcmd_reset_ld(int cmd, int target_id)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_RESET_LD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 103 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_reset_ld " "scmd %d: dev %d" "\n", cmd, target_id);
#line 2507 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_DCMD_UNSUPPORTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_DCMD_UNSUPPORTED) || \
    false)

static inline void trace_megasas_dcmd_unsupported(int cmd, unsigned long size)
{
    if (trace_event_get_state(TRACE_MEGASAS_DCMD_UNSUPPORTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 104 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_dcmd_unsupported " "scmd %d: set properties len %ld" "\n", cmd, size);
#line 2522 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_ABORT_FRAME_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_ABORT_FRAME) || \
    false)

static inline void trace_megasas_abort_frame(int cmd, int abort_cmd)
{
    if (trace_event_get_state(TRACE_MEGASAS_ABORT_FRAME)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 105 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_abort_frame " "scmd %d: frame 0x%x" "\n", cmd, abort_cmd);
#line 2537 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_ABORT_NO_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_ABORT_NO_CMD) || \
    false)

static inline void trace_megasas_abort_no_cmd(int cmd, uint64_t context)
{
    if (trace_event_get_state(TRACE_MEGASAS_ABORT_NO_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 106 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_abort_no_cmd " "scmd %d: no active command for frame context 0x%" PRIx64 "\n", cmd, context);
#line 2552 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_ABORT_INVALID_CONTEXT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_ABORT_INVALID_CONTEXT) || \
    false)

static inline void trace_megasas_abort_invalid_context(int cmd, uint64_t context, int abort_cmd)
{
    if (trace_event_get_state(TRACE_MEGASAS_ABORT_INVALID_CONTEXT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 107 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_abort_invalid_context " "scmd %d: invalid frame context 0x%" PRIx64 " for abort frame 0x%x" "\n", cmd, context, abort_cmd);
#line 2567 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_RESET) || \
    false)

static inline void trace_megasas_reset(int fw_state)
{
    if (trace_event_get_state(TRACE_MEGASAS_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 108 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_reset " "firmware state 0x%x" "\n", fw_state);
#line 2582 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_INIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_INIT) || \
    false)

static inline void trace_megasas_init(int sges, int cmds, const char *mode)
{
    if (trace_event_get_state(TRACE_MEGASAS_INIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 109 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_init " "Using %d sges, %d cmds, %s mode" "\n", sges, cmds, mode);
#line 2597 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_MSIX_RAISE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_MSIX_RAISE) || \
    false)

static inline void trace_megasas_msix_raise(int vector)
{
    if (trace_event_get_state(TRACE_MEGASAS_MSIX_RAISE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 110 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_msix_raise " "vector %d" "\n", vector);
#line 2612 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_MSI_RAISE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_MSI_RAISE) || \
    false)

static inline void trace_megasas_msi_raise(int vector)
{
    if (trace_event_get_state(TRACE_MEGASAS_MSI_RAISE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 111 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_msi_raise " "vector %d" "\n", vector);
#line 2627 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IRQ_LOWER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IRQ_LOWER) || \
    false)

static inline void trace_megasas_irq_lower(void)
{
    if (trace_event_get_state(TRACE_MEGASAS_IRQ_LOWER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 112 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_irq_lower " "INTx" "\n");
#line 2642 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_IRQ_RAISE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_IRQ_RAISE) || \
    false)

static inline void trace_megasas_irq_raise(void)
{
    if (trace_event_get_state(TRACE_MEGASAS_IRQ_RAISE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 113 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_irq_raise " "INTx" "\n");
#line 2657 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_INTR_ENABLED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_INTR_ENABLED) || \
    false)

static inline void trace_megasas_intr_enabled(void)
{
    if (trace_event_get_state(TRACE_MEGASAS_INTR_ENABLED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 114 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_intr_enabled " "Interrupts enabled" "\n");
#line 2672 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_INTR_DISABLED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_INTR_DISABLED) || \
    false)

static inline void trace_megasas_intr_disabled(void)
{
    if (trace_event_get_state(TRACE_MEGASAS_INTR_DISABLED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 115 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_intr_disabled " "Interrupts disabled" "\n");
#line 2687 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_MSIX_ENABLED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_MSIX_ENABLED) || \
    false)

static inline void trace_megasas_msix_enabled(int vector)
{
    if (trace_event_get_state(TRACE_MEGASAS_MSIX_ENABLED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 116 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_msix_enabled " "vector %d" "\n", vector);
#line 2702 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_MSI_ENABLED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_MSI_ENABLED) || \
    false)

static inline void trace_megasas_msi_enabled(int vector)
{
    if (trace_event_get_state(TRACE_MEGASAS_MSI_ENABLED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 117 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_msi_enabled " "vector %d" "\n", vector);
#line 2717 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_MMIO_READL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_MMIO_READL) || \
    false)

static inline void trace_megasas_mmio_readl(const char *reg, uint32_t val)
{
    if (trace_event_get_state(TRACE_MEGASAS_MMIO_READL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 118 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_mmio_readl " "reg %s: 0x%x" "\n", reg, val);
#line 2732 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_MMIO_INVALID_READL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_MMIO_INVALID_READL) || \
    false)

static inline void trace_megasas_mmio_invalid_readl(unsigned long addr)
{
    if (trace_event_get_state(TRACE_MEGASAS_MMIO_INVALID_READL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 119 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_mmio_invalid_readl " "addr 0x%lx" "\n", addr);
#line 2747 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_MMIO_WRITEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_MMIO_WRITEL) || \
    false)

static inline void trace_megasas_mmio_writel(const char *reg, uint32_t val)
{
    if (trace_event_get_state(TRACE_MEGASAS_MMIO_WRITEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 120 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_mmio_writel " "reg %s: 0x%x" "\n", reg, val);
#line 2762 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_MEGASAS_MMIO_INVALID_WRITEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MEGASAS_MMIO_INVALID_WRITEL) || \
    false)

static inline void trace_megasas_mmio_invalid_writel(uint32_t addr, uint32_t val)
{
    if (trace_event_get_state(TRACE_MEGASAS_MMIO_INVALID_WRITEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 121 "../xemu/hw/scsi/trace-events"
            qemu_log("megasas_mmio_invalid_writel " "addr 0x%x: 0x%x" "\n", addr, val);
#line 2777 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_RING_INIT_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_RING_INIT_DATA) || \
    false)

static inline void trace_pvscsi_ring_init_data(uint32_t txr_len_log2, uint32_t rxr_len_log2)
{
    if (trace_event_get_state(TRACE_PVSCSI_RING_INIT_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 124 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_ring_init_data " "TX/RX rings logarithms set to %d/%d" "\n", txr_len_log2, rxr_len_log2);
#line 2792 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_RING_INIT_MSG_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_RING_INIT_MSG) || \
    false)

static inline void trace_pvscsi_ring_init_msg(uint32_t len_log2)
{
    if (trace_event_get_state(TRACE_PVSCSI_RING_INIT_MSG)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 125 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_ring_init_msg " "MSG ring logarithm set to %d" "\n", len_log2);
#line 2807 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_RING_FLUSH_CMP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_RING_FLUSH_CMP) || \
    false)

static inline void trace_pvscsi_ring_flush_cmp(uint64_t filled_cmp_ptr)
{
    if (trace_event_get_state(TRACE_PVSCSI_RING_FLUSH_CMP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 126 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_ring_flush_cmp " "new production counter of completion ring is 0x%"PRIx64 "\n", filled_cmp_ptr);
#line 2822 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_RING_FLUSH_MSG_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_RING_FLUSH_MSG) || \
    false)

static inline void trace_pvscsi_ring_flush_msg(uint64_t filled_cmp_ptr)
{
    if (trace_event_get_state(TRACE_PVSCSI_RING_FLUSH_MSG)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 127 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_ring_flush_msg " "new production counter of message ring is 0x%"PRIx64 "\n", filled_cmp_ptr);
#line 2837 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_UPDATE_IRQ_LEVEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_UPDATE_IRQ_LEVEL) || \
    false)

static inline void trace_pvscsi_update_irq_level(bool raise, uint64_t mask, uint64_t status)
{
    if (trace_event_get_state(TRACE_PVSCSI_UPDATE_IRQ_LEVEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 128 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_update_irq_level " "interrupt level set to %d (MASK: 0x%"PRIx64", STATUS: 0x%"PRIx64")" "\n", raise, mask, status);
#line 2852 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_UPDATE_IRQ_MSI_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_UPDATE_IRQ_MSI) || \
    false)

static inline void trace_pvscsi_update_irq_msi(void)
{
    if (trace_event_get_state(TRACE_PVSCSI_UPDATE_IRQ_MSI)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 129 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_update_irq_msi " "sending MSI notification" "\n");
#line 2867 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_CMP_RING_PUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_CMP_RING_PUT) || \
    false)

static inline void trace_pvscsi_cmp_ring_put(unsigned long addr)
{
    if (trace_event_get_state(TRACE_PVSCSI_CMP_RING_PUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 130 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_cmp_ring_put " "got completion descriptor 0x%lx" "\n", addr);
#line 2882 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_MSG_RING_PUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_MSG_RING_PUT) || \
    false)

static inline void trace_pvscsi_msg_ring_put(unsigned long addr)
{
    if (trace_event_get_state(TRACE_PVSCSI_MSG_RING_PUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 131 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_msg_ring_put " "got message descriptor 0x%lx" "\n", addr);
#line 2897 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_COMPLETE_REQUEST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_COMPLETE_REQUEST) || \
    false)

static inline void trace_pvscsi_complete_request(uint64_t context, uint64_t len, uint8_t sense_key)
{
    if (trace_event_get_state(TRACE_PVSCSI_COMPLETE_REQUEST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 132 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_complete_request " "completion: ctx: 0x%"PRIx64", len: 0x%"PRIx64", sense key: %u" "\n", context, len, sense_key);
#line 2912 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_GET_SG_LIST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_GET_SG_LIST) || \
    false)

static inline void trace_pvscsi_get_sg_list(int nsg, size_t size)
{
    if (trace_event_get_state(TRACE_PVSCSI_GET_SG_LIST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 133 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_get_sg_list " "get SG list: depth: %u, size: %zu" "\n", nsg, size);
#line 2927 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_GET_NEXT_SG_ELEM_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_GET_NEXT_SG_ELEM) || \
    false)

static inline void trace_pvscsi_get_next_sg_elem(uint32_t flags)
{
    if (trace_event_get_state(TRACE_PVSCSI_GET_NEXT_SG_ELEM)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 134 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_get_next_sg_elem " "unknown flags in SG element (val: 0x%x)" "\n", flags);
#line 2942 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_COMMAND_COMPLETE_NOT_FOUND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_COMMAND_COMPLETE_NOT_FOUND) || \
    false)

static inline void trace_pvscsi_command_complete_not_found(uint32_t tag)
{
    if (trace_event_get_state(TRACE_PVSCSI_COMMAND_COMPLETE_NOT_FOUND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 135 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_command_complete_not_found " "can't find request for tag 0x%x" "\n", tag);
#line 2957 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_COMMAND_COMPLETE_DATA_RUN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_COMMAND_COMPLETE_DATA_RUN) || \
    false)

static inline void trace_pvscsi_command_complete_data_run(void)
{
    if (trace_event_get_state(TRACE_PVSCSI_COMMAND_COMPLETE_DATA_RUN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 136 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_command_complete_data_run " "not all data required for command transferred" "\n");
#line 2972 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_COMMAND_COMPLETE_SENSE_LEN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_COMMAND_COMPLETE_SENSE_LEN) || \
    false)

static inline void trace_pvscsi_command_complete_sense_len(int len)
{
    if (trace_event_get_state(TRACE_PVSCSI_COMMAND_COMPLETE_SENSE_LEN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 137 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_command_complete_sense_len " "sense information length is %d bytes" "\n", len);
#line 2987 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_CONVERT_SGLIST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_CONVERT_SGLIST) || \
    false)

static inline void trace_pvscsi_convert_sglist(uint64_t context, unsigned long addr, uint32_t resid)
{
    if (trace_event_get_state(TRACE_PVSCSI_CONVERT_SGLIST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 138 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_convert_sglist " "element: ctx: 0x%"PRIx64" addr: 0x%lx, len: %ul" "\n", context, addr, resid);
#line 3002 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_PROCESS_REQ_DESCR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_PROCESS_REQ_DESCR) || \
    false)

static inline void trace_pvscsi_process_req_descr(uint8_t cmd, uint64_t ctx)
{
    if (trace_event_get_state(TRACE_PVSCSI_PROCESS_REQ_DESCR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 139 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_process_req_descr " "SCSI cmd 0x%x, ctx: 0x%"PRIx64 "\n", cmd, ctx);
#line 3017 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_PROCESS_REQ_DESCR_UNKNOWN_DEVICE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_PROCESS_REQ_DESCR_UNKNOWN_DEVICE) || \
    false)

static inline void trace_pvscsi_process_req_descr_unknown_device(void)
{
    if (trace_event_get_state(TRACE_PVSCSI_PROCESS_REQ_DESCR_UNKNOWN_DEVICE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 140 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_process_req_descr_unknown_device " "command directed to unknown device rejected" "\n");
#line 3032 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_PROCESS_REQ_DESCR_INVALID_DIR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_PROCESS_REQ_DESCR_INVALID_DIR) || \
    false)

static inline void trace_pvscsi_process_req_descr_invalid_dir(void)
{
    if (trace_event_get_state(TRACE_PVSCSI_PROCESS_REQ_DESCR_INVALID_DIR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 141 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_process_req_descr_invalid_dir " "command with invalid transfer direction rejected" "\n");
#line 3047 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_PROCESS_IO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_PROCESS_IO) || \
    false)

static inline void trace_pvscsi_process_io(unsigned long addr)
{
    if (trace_event_get_state(TRACE_PVSCSI_PROCESS_IO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 142 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_process_io " "got descriptor 0x%lx" "\n", addr);
#line 3062 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_ON_CMD_NOIMPL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_ON_CMD_NOIMPL) || \
    false)

static inline void trace_pvscsi_on_cmd_noimpl(const char*cmd)
{
    if (trace_event_get_state(TRACE_PVSCSI_ON_CMD_NOIMPL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 143 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_on_cmd_noimpl " "unimplemented command %s ignored" "\n", cmd);
#line 3077 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_ON_CMD_RESET_DEV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_ON_CMD_RESET_DEV) || \
    false)

static inline void trace_pvscsi_on_cmd_reset_dev(uint32_t tgt, int lun, void*dev)
{
    if (trace_event_get_state(TRACE_PVSCSI_ON_CMD_RESET_DEV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 144 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_on_cmd_reset_dev " "PVSCSI_CMD_RESET_DEVICE[target %u lun %d (dev 0x%p)]" "\n", tgt, lun, dev);
#line 3092 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_ON_CMD_ARRIVED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_ON_CMD_ARRIVED) || \
    false)

static inline void trace_pvscsi_on_cmd_arrived(const char*cmd)
{
    if (trace_event_get_state(TRACE_PVSCSI_ON_CMD_ARRIVED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 145 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_on_cmd_arrived " "command %s arrived" "\n", cmd);
#line 3107 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_ON_CMD_ABORT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_ON_CMD_ABORT) || \
    false)

static inline void trace_pvscsi_on_cmd_abort(uint64_t ctx, uint32_t tgt)
{
    if (trace_event_get_state(TRACE_PVSCSI_ON_CMD_ABORT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 146 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_on_cmd_abort " "command PVSCSI_CMD_ABORT_CMD for ctx 0x%"PRIx64", target %u" "\n", ctx, tgt);
#line 3122 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_ON_CMD_UNKNOWN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_ON_CMD_UNKNOWN) || \
    false)

static inline void trace_pvscsi_on_cmd_unknown(uint64_t cmd_id)
{
    if (trace_event_get_state(TRACE_PVSCSI_ON_CMD_UNKNOWN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 147 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_on_cmd_unknown " "unknown command 0x%"PRIx64 "\n", cmd_id);
#line 3137 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_ON_CMD_UNKNOWN_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_ON_CMD_UNKNOWN_DATA) || \
    false)

static inline void trace_pvscsi_on_cmd_unknown_data(uint32_t data)
{
    if (trace_event_get_state(TRACE_PVSCSI_ON_CMD_UNKNOWN_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 148 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_on_cmd_unknown_data " "data for unknown command 0x:0x%x" "\n", data);
#line 3152 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_IO_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_IO_WRITE) || \
    false)

static inline void trace_pvscsi_io_write(const char*cmd, uint64_t val)
{
    if (trace_event_get_state(TRACE_PVSCSI_IO_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 149 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_io_write " "%s write: 0x%"PRIx64 "\n", cmd, val);
#line 3167 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_IO_WRITE_UNKNOWN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_IO_WRITE_UNKNOWN) || \
    false)

static inline void trace_pvscsi_io_write_unknown(unsigned long addr, unsigned sz, uint64_t val)
{
    if (trace_event_get_state(TRACE_PVSCSI_IO_WRITE_UNKNOWN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 150 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_io_write_unknown " "unknown write address: 0x%lx size: %u bytes value: 0x%"PRIx64 "\n", addr, sz, val);
#line 3182 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_IO_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_IO_READ) || \
    false)

static inline void trace_pvscsi_io_read(const char*cmd, uint64_t status)
{
    if (trace_event_get_state(TRACE_PVSCSI_IO_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 151 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_io_read " "%s read: 0x%"PRIx64 "\n", cmd, status);
#line 3197 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_IO_READ_UNKNOWN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_IO_READ_UNKNOWN) || \
    false)

static inline void trace_pvscsi_io_read_unknown(unsigned long addr, unsigned sz)
{
    if (trace_event_get_state(TRACE_PVSCSI_IO_READ_UNKNOWN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 152 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_io_read_unknown " "unknown read address: 0x%lx size: %u bytes" "\n", addr, sz);
#line 3212 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_INIT_MSI_FAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_INIT_MSI_FAIL) || \
    false)

static inline void trace_pvscsi_init_msi_fail(int res)
{
    if (trace_event_get_state(TRACE_PVSCSI_INIT_MSI_FAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 153 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_init_msi_fail " "failed to initialize MSI, error %d" "\n", res);
#line 3227 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_STATE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_STATE) || \
    false)

static inline void trace_pvscsi_state(const char*state)
{
    if (trace_event_get_state(TRACE_PVSCSI_STATE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 154 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_state " "starting %s ..." "\n", state);
#line 3242 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_TX_RINGS_PPN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_TX_RINGS_PPN) || \
    false)

static inline void trace_pvscsi_tx_rings_ppn(const char*label, uint64_t ppn)
{
    if (trace_event_get_state(TRACE_PVSCSI_TX_RINGS_PPN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 155 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_tx_rings_ppn " "%s page: 0x%"PRIx64 "\n", label, ppn);
#line 3257 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_PVSCSI_TX_RINGS_NUM_PAGES_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PVSCSI_TX_RINGS_NUM_PAGES) || \
    false)

static inline void trace_pvscsi_tx_rings_num_pages(const char*label, uint32_t num)
{
    if (trace_event_get_state(TRACE_PVSCSI_TX_RINGS_NUM_PAGES)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 156 "../xemu/hw/scsi/trace-events"
            qemu_log("pvscsi_tx_rings_num_pages " "Number of %s pages: %u" "\n", label, num);
#line 3272 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_ERROR_FIFO_OVERRUN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_ERROR_FIFO_OVERRUN) || \
    false)

static inline void trace_esp_error_fifo_overrun(void)
{
    if (trace_event_get_state(TRACE_ESP_ERROR_FIFO_OVERRUN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 159 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_error_fifo_overrun " "FIFO overrun" "\n");
#line 3287 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_ERROR_UNHANDLED_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_ERROR_UNHANDLED_COMMAND) || \
    false)

static inline void trace_esp_error_unhandled_command(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_ERROR_UNHANDLED_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 160 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_error_unhandled_command " "unhandled command (0x%2.2x)" "\n", val);
#line 3302 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_ERROR_INVALID_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_ERROR_INVALID_WRITE) || \
    false)

static inline void trace_esp_error_invalid_write(uint32_t val, uint32_t addr)
{
    if (trace_event_get_state(TRACE_ESP_ERROR_INVALID_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 161 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_error_invalid_write " "invalid write of 0x%02x at [0x%x]" "\n", val, addr);
#line 3317 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_RAISE_IRQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_RAISE_IRQ) || \
    false)

static inline void trace_esp_raise_irq(void)
{
    if (trace_event_get_state(TRACE_ESP_RAISE_IRQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 162 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_raise_irq " "Raise IRQ" "\n");
#line 3332 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_LOWER_IRQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_LOWER_IRQ) || \
    false)

static inline void trace_esp_lower_irq(void)
{
    if (trace_event_get_state(TRACE_ESP_LOWER_IRQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 163 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_lower_irq " "Lower IRQ" "\n");
#line 3347 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_RAISE_DRQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_RAISE_DRQ) || \
    false)

static inline void trace_esp_raise_drq(void)
{
    if (trace_event_get_state(TRACE_ESP_RAISE_DRQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 164 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_raise_drq " "Raise DREQ" "\n");
#line 3362 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_LOWER_DRQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_LOWER_DRQ) || \
    false)

static inline void trace_esp_lower_drq(void)
{
    if (trace_event_get_state(TRACE_ESP_LOWER_DRQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 165 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_lower_drq " "Lower DREQ" "\n");
#line 3377 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_DMA_ENABLE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_DMA_ENABLE) || \
    false)

static inline void trace_esp_dma_enable(void)
{
    if (trace_event_get_state(TRACE_ESP_DMA_ENABLE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 166 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_dma_enable " "Raise enable" "\n");
#line 3392 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_DMA_DISABLE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_DMA_DISABLE) || \
    false)

static inline void trace_esp_dma_disable(void)
{
    if (trace_event_get_state(TRACE_ESP_DMA_DISABLE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 167 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_dma_disable " "Lower enable" "\n");
#line 3407 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PDMA_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PDMA_READ) || \
    false)

static inline void trace_esp_pdma_read(int size)
{
    if (trace_event_get_state(TRACE_ESP_PDMA_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 168 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pdma_read " "pDMA read %u bytes" "\n", size);
#line 3422 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PDMA_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PDMA_WRITE) || \
    false)

static inline void trace_esp_pdma_write(int size)
{
    if (trace_event_get_state(TRACE_ESP_PDMA_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 169 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pdma_write " "pDMA write %u bytes" "\n", size);
#line 3437 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_GET_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_GET_CMD) || \
    false)

static inline void trace_esp_get_cmd(uint32_t dmalen, int target)
{
    if (trace_event_get_state(TRACE_ESP_GET_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 170 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_get_cmd " "len %d target %d" "\n", dmalen, target);
#line 3452 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_DO_COMMAND_PHASE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_DO_COMMAND_PHASE) || \
    false)

static inline void trace_esp_do_command_phase(uint8_t busid)
{
    if (trace_event_get_state(TRACE_ESP_DO_COMMAND_PHASE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 171 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_do_command_phase " "busid 0x%x" "\n", busid);
#line 3467 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_DO_IDENTIFY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_DO_IDENTIFY) || \
    false)

static inline void trace_esp_do_identify(uint8_t byte)
{
    if (trace_event_get_state(TRACE_ESP_DO_IDENTIFY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 172 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_do_identify " "0x%x" "\n", byte);
#line 3482 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_HANDLE_SATN_STOP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_HANDLE_SATN_STOP) || \
    false)

static inline void trace_esp_handle_satn_stop(uint32_t cmdlen)
{
    if (trace_event_get_state(TRACE_ESP_HANDLE_SATN_STOP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 173 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_handle_satn_stop " "cmdlen %d" "\n", cmdlen);
#line 3497 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_WRITE_RESPONSE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_WRITE_RESPONSE) || \
    false)

static inline void trace_esp_write_response(uint32_t status)
{
    if (trace_event_get_state(TRACE_ESP_WRITE_RESPONSE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 174 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_write_response " "Transfer status (status=%d)" "\n", status);
#line 3512 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_DO_DMA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_DO_DMA) || \
    false)

static inline void trace_esp_do_dma(uint32_t cmdlen, uint32_t len)
{
    if (trace_event_get_state(TRACE_ESP_DO_DMA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 175 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_do_dma " "command len %d + %d" "\n", cmdlen, len);
#line 3527 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_COMMAND_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_COMMAND_COMPLETE) || \
    false)

static inline void trace_esp_command_complete(void)
{
    if (trace_event_get_state(TRACE_ESP_COMMAND_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 176 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_command_complete " "SCSI Command complete" "\n");
#line 3542 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_COMMAND_COMPLETE_DEFERRED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_COMMAND_COMPLETE_DEFERRED) || \
    false)

static inline void trace_esp_command_complete_deferred(void)
{
    if (trace_event_get_state(TRACE_ESP_COMMAND_COMPLETE_DEFERRED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 177 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_command_complete_deferred " "SCSI Command complete deferred" "\n");
#line 3557 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_COMMAND_COMPLETE_UNEXPECTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_COMMAND_COMPLETE_UNEXPECTED) || \
    false)

static inline void trace_esp_command_complete_unexpected(void)
{
    if (trace_event_get_state(TRACE_ESP_COMMAND_COMPLETE_UNEXPECTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 178 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_command_complete_unexpected " "SCSI command completed unexpectedly" "\n");
#line 3572 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_COMMAND_COMPLETE_FAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_COMMAND_COMPLETE_FAIL) || \
    false)

static inline void trace_esp_command_complete_fail(void)
{
    if (trace_event_get_state(TRACE_ESP_COMMAND_COMPLETE_FAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 179 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_command_complete_fail " "Command failed" "\n");
#line 3587 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_TRANSFER_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_TRANSFER_DATA) || \
    false)

static inline void trace_esp_transfer_data(uint32_t dma_left, int32_t ti_size)
{
    if (trace_event_get_state(TRACE_ESP_TRANSFER_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 180 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_transfer_data " "transfer %d/%d" "\n", dma_left, ti_size);
#line 3602 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_HANDLE_TI_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_HANDLE_TI) || \
    false)

static inline void trace_esp_handle_ti(uint32_t minlen)
{
    if (trace_event_get_state(TRACE_ESP_HANDLE_TI)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 181 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_handle_ti " "Transfer Information len %d" "\n", minlen);
#line 3617 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_HANDLE_TI_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_HANDLE_TI_CMD) || \
    false)

static inline void trace_esp_handle_ti_cmd(uint32_t cmdlen)
{
    if (trace_event_get_state(TRACE_ESP_HANDLE_TI_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 182 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_handle_ti_cmd " "command len %d" "\n", cmdlen);
#line 3632 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_READB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_READB) || \
    false)

static inline void trace_esp_mem_readb(uint32_t saddr, uint8_t reg)
{
    if (trace_event_get_state(TRACE_ESP_MEM_READB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 183 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_readb " "reg[%d]: 0x%2.2x" "\n", saddr, reg);
#line 3647 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB) || \
    false)

static inline void trace_esp_mem_writeb(uint32_t saddr, uint8_t reg, uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 184 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb " "reg[%d]: 0x%2.2x -> 0x%2.2x" "\n", saddr, reg, val);
#line 3662 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_NOP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_NOP) || \
    false)

static inline void trace_esp_mem_writeb_cmd_nop(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_NOP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 185 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_nop " "NOP (0x%2.2x)" "\n", val);
#line 3677 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_FLUSH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_FLUSH) || \
    false)

static inline void trace_esp_mem_writeb_cmd_flush(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_FLUSH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 186 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_flush " "Flush FIFO (0x%2.2x)" "\n", val);
#line 3692 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_RESET) || \
    false)

static inline void trace_esp_mem_writeb_cmd_reset(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 187 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_reset " "Chip reset (0x%2.2x)" "\n", val);
#line 3707 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_BUS_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_BUS_RESET) || \
    false)

static inline void trace_esp_mem_writeb_cmd_bus_reset(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_BUS_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 188 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_bus_reset " "Bus reset (0x%2.2x)" "\n", val);
#line 3722 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_ICCS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_ICCS) || \
    false)

static inline void trace_esp_mem_writeb_cmd_iccs(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_ICCS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 189 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_iccs " "Initiator Command Complete Sequence (0x%2.2x)" "\n", val);
#line 3737 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_MSGACC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_MSGACC) || \
    false)

static inline void trace_esp_mem_writeb_cmd_msgacc(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_MSGACC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 190 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_msgacc " "Message Accepted (0x%2.2x)" "\n", val);
#line 3752 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_PAD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_PAD) || \
    false)

static inline void trace_esp_mem_writeb_cmd_pad(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_PAD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 191 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_pad " "Transfer padding (0x%2.2x)" "\n", val);
#line 3767 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_SATN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_SATN) || \
    false)

static inline void trace_esp_mem_writeb_cmd_satn(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_SATN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 192 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_satn " "Set ATN (0x%2.2x)" "\n", val);
#line 3782 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_RSTATN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_RSTATN) || \
    false)

static inline void trace_esp_mem_writeb_cmd_rstatn(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_RSTATN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 193 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_rstatn " "Reset ATN (0x%2.2x)" "\n", val);
#line 3797 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_SEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_SEL) || \
    false)

static inline void trace_esp_mem_writeb_cmd_sel(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_SEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 194 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_sel " "Select without ATN (0x%2.2x)" "\n", val);
#line 3812 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_SELATN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_SELATN) || \
    false)

static inline void trace_esp_mem_writeb_cmd_selatn(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_SELATN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 195 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_selatn " "Select with ATN (0x%2.2x)" "\n", val);
#line 3827 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_SELATNS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_SELATNS) || \
    false)

static inline void trace_esp_mem_writeb_cmd_selatns(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_SELATNS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 196 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_selatns " "Select with ATN & stop (0x%2.2x)" "\n", val);
#line 3842 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_ENSEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_ENSEL) || \
    false)

static inline void trace_esp_mem_writeb_cmd_ensel(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_ENSEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 197 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_ensel " "Enable selection (0x%2.2x)" "\n", val);
#line 3857 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_DISSEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_DISSEL) || \
    false)

static inline void trace_esp_mem_writeb_cmd_dissel(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_DISSEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 198 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_dissel " "Disable selection (0x%2.2x)" "\n", val);
#line 3872 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_MEM_WRITEB_CMD_TI_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_MEM_WRITEB_CMD_TI) || \
    false)

static inline void trace_esp_mem_writeb_cmd_ti(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_MEM_WRITEB_CMD_TI)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 199 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_mem_writeb_cmd_ti " "Transfer Information (0x%2.2x)" "\n", val);
#line 3887 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_SET_PHASE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_SET_PHASE) || \
    false)

static inline void trace_esp_set_phase(const char *phase)
{
    if (trace_event_get_state(TRACE_ESP_SET_PHASE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 200 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_set_phase " "setting bus phase to %s" "\n", phase);
#line 3902 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_INVALID_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_INVALID_CMD) || \
    false)

static inline void trace_esp_invalid_cmd(uint8_t cmd, uint8_t asc_mode)
{
    if (trace_event_get_state(TRACE_ESP_INVALID_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 201 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_invalid_cmd " "command 0x%x asc_mode 0x%x" "\n", cmd, asc_mode);
#line 3917 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_ERROR_INVALID_DMA_DIRECTION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_ERROR_INVALID_DMA_DIRECTION) || \
    false)

static inline void trace_esp_pci_error_invalid_dma_direction(void)
{
    if (trace_event_get_state(TRACE_ESP_PCI_ERROR_INVALID_DMA_DIRECTION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 204 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_error_invalid_dma_direction " "invalid DMA transfer direction" "\n");
#line 3932 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_ERROR_INVALID_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_ERROR_INVALID_READ) || \
    false)

static inline void trace_esp_pci_error_invalid_read(uint32_t reg)
{
    if (trace_event_get_state(TRACE_ESP_PCI_ERROR_INVALID_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 205 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_error_invalid_read " "read access outside bounds (reg 0x%x)" "\n", reg);
#line 3947 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_ERROR_INVALID_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_ERROR_INVALID_WRITE) || \
    false)

static inline void trace_esp_pci_error_invalid_write(uint32_t reg)
{
    if (trace_event_get_state(TRACE_ESP_PCI_ERROR_INVALID_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 206 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_error_invalid_write " "write access outside bounds (reg 0x%x)" "\n", reg);
#line 3962 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_ERROR_INVALID_WRITE_DMA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_ERROR_INVALID_WRITE_DMA) || \
    false)

static inline void trace_esp_pci_error_invalid_write_dma(uint32_t val, uint32_t addr)
{
    if (trace_event_get_state(TRACE_ESP_PCI_ERROR_INVALID_WRITE_DMA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 207 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_error_invalid_write_dma " "invalid write of 0x%02x at [0x%x]" "\n", val, addr);
#line 3977 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_DMA_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_DMA_READ) || \
    false)

static inline void trace_esp_pci_dma_read(uint32_t saddr, uint32_t reg)
{
    if (trace_event_get_state(TRACE_ESP_PCI_DMA_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 208 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_dma_read " "reg[%d]: 0x%8.8x" "\n", saddr, reg);
#line 3992 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_DMA_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_DMA_WRITE) || \
    false)

static inline void trace_esp_pci_dma_write(uint32_t saddr, uint32_t reg, uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_PCI_DMA_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 209 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_dma_write " "reg[%d]: 0x%8.8x -> 0x%8.8x" "\n", saddr, reg, val);
#line 4007 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_DMA_IDLE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_DMA_IDLE) || \
    false)

static inline void trace_esp_pci_dma_idle(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_PCI_DMA_IDLE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 210 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_dma_idle " "IDLE (0x%.8x)" "\n", val);
#line 4022 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_DMA_BLAST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_DMA_BLAST) || \
    false)

static inline void trace_esp_pci_dma_blast(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_PCI_DMA_BLAST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 211 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_dma_blast " "BLAST (0x%.8x)" "\n", val);
#line 4037 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_DMA_ABORT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_DMA_ABORT) || \
    false)

static inline void trace_esp_pci_dma_abort(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_PCI_DMA_ABORT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 212 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_dma_abort " "ABORT (0x%.8x)" "\n", val);
#line 4052 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_DMA_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_DMA_START) || \
    false)

static inline void trace_esp_pci_dma_start(uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_PCI_DMA_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 213 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_dma_start " "START (0x%.8x)" "\n", val);
#line 4067 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_SBAC_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_SBAC_READ) || \
    false)

static inline void trace_esp_pci_sbac_read(uint32_t reg)
{
    if (trace_event_get_state(TRACE_ESP_PCI_SBAC_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 214 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_sbac_read " "sbac: 0x%8.8x" "\n", reg);
#line 4082 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_ESP_PCI_SBAC_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ESP_PCI_SBAC_WRITE) || \
    false)

static inline void trace_esp_pci_sbac_write(uint32_t reg, uint32_t val)
{
    if (trace_event_get_state(TRACE_ESP_PCI_SBAC_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 215 "../xemu/hw/scsi/trace-events"
            qemu_log("esp_pci_sbac_write " "sbac: 0x%8.8x -> 0x%8.8x" "\n", reg, val);
#line 4097 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_SEND_RSP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_SEND_RSP) || \
    false)

static inline void trace_spapr_vscsi_send_rsp(uint8_t status, int32_t res_in, int32_t res_out)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_SEND_RSP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 218 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_send_rsp " "status: 0x%x, res_in: %"PRId32", res_out: %"PRId32 "\n", status, res_in, res_out);
#line 4112 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_NO_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_NO_DATA) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_no_data(void)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_NO_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 219 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_no_data " "no data descriptor" "\n");
#line 4127 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_DIRECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_DIRECT) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_direct(void)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_DIRECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 220 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_direct " "direct segment" "\n");
#line 4142 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_indirect(uint32_t qtag, unsigned desc, unsigned local_desc)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 221 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_indirect " "indirect segment local tag=0x%"PRIx32" desc#%u/%u" "\n", qtag, desc, local_desc);
#line 4157 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_RANGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_RANGE) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_out_of_range(unsigned desc, unsigned desc_offset)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_RANGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 222 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_out_of_range " "#%u is ouf of range (%u bytes)" "\n", desc, desc_offset);
#line 4172 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_DMA_READ_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_DMA_READ_ERROR) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_dma_read_error(int rc)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_DMA_READ_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 223 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_dma_read_error " "spapr_vio_dma_read -> %d reading ext_desc" "\n", rc);
#line 4187 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_SEG_EXT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_SEG_EXT) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_indirect_seg_ext(uint32_t qtag, unsigned n, unsigned desc, uint64_t va, uint32_t len)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_INDIRECT_SEG_EXT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 224 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_indirect_seg_ext " "indirect segment ext. tag=0x%"PRIx32" desc#%u/%u { va=0x%"PRIx64" len=0x%"PRIx32" }" "\n", qtag, n, desc, va, len);
#line 4202 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_out_of_desc(void)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 225 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_out_of_desc " "Out of descriptors !" "\n");
#line 4217 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_BOUNDARY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_BOUNDARY) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_out_of_desc_boundary(unsigned offset, unsigned desc, uint32_t len)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_OUT_OF_DESC_BOUNDARY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 226 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_out_of_desc_boundary " "   offset=0x%x is out of a descriptor #%u boundary=0x%"PRIx32 "\n", offset, desc, len);
#line 4232 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_FETCH_DESC_DONE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_FETCH_DESC_DONE) || \
    false)

static inline void trace_spapr_vscsi_fetch_desc_done(unsigned desc_num, unsigned desc_offset, uint64_t va, uint32_t len)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_FETCH_DESC_DONE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 227 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_fetch_desc_done " "   cur=%u offs=0x%x ret { va=0x%"PRIx64" len=0x%"PRIx32" }" "\n", desc_num, desc_offset, va, len);
#line 4247 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA) || \
    false)

static inline void trace_spapr_vscsi_srp_indirect_data(uint32_t len)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 228 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_srp_indirect_data " "indirect segment 0x%"PRIx32" bytes" "\n", len);
#line 4262 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_RW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_RW) || \
    false)

static inline void trace_spapr_vscsi_srp_indirect_data_rw(int writing, int rc)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_RW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 229 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_srp_indirect_data_rw " "spapr_vio_dma_r/w(%d) -> %d" "\n", writing, rc);
#line 4277 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_BUF_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_BUF) || \
    false)

static inline void trace_spapr_vscsi_srp_indirect_data_buf(unsigned a, unsigned b, unsigned c, unsigned d)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_SRP_INDIRECT_DATA_BUF)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 230 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_srp_indirect_data_buf " "     data: %02x %02x %02x %02x..." "\n", a, b, c, d);
#line 4292 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_SRP_TRANSFER_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_SRP_TRANSFER_DATA) || \
    false)

static inline void trace_spapr_vscsi_srp_transfer_data(uint32_t len)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_SRP_TRANSFER_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 231 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_srp_transfer_data " "no data desc transfer, skipping 0x%"PRIx32" bytes" "\n", len);
#line 4307 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_TRANSFER_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_TRANSFER_DATA) || \
    false)

static inline void trace_spapr_vscsi_transfer_data(uint32_t tag, uint32_t len, void *req)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_TRANSFER_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 232 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_transfer_data " "SCSI xfer complete tag=0x%"PRIx32" len=0x%"PRIx32", req=%p" "\n", tag, len, req);
#line 4322 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_COMMAND_COMPLETE) || \
    false)

static inline void trace_spapr_vscsi_command_complete(uint32_t tag, uint32_t status, void *req)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_COMMAND_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 233 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_command_complete " "SCSI cmd complete, tag=0x%"PRIx32" status=0x%"PRIx32", req=%p" "\n", tag, status, req);
#line 4337 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA1_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA1) || \
    false)

static inline void trace_spapr_vscsi_command_complete_sense_data1(uint32_t len, unsigned s0, unsigned s1, unsigned s2, unsigned s3, unsigned s4, unsigned s5, unsigned s6, unsigned s7)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA1)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 234 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_command_complete_sense_data1 " "Sense data, %d bytes: %02x %02x %02x %02x %02x %02x %02x %02x" "\n", len, s0, s1, s2, s3, s4, s5, s6, s7);
#line 4352 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA2_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA2) || \
    false)

static inline void trace_spapr_vscsi_command_complete_sense_data2(unsigned s8, unsigned s9, unsigned s10, unsigned s11, unsigned s12, unsigned s13, unsigned s14, unsigned s15)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_SENSE_DATA2)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 235 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_command_complete_sense_data2 " "                      %02x %02x %02x %02x %02x %02x %02x %02x" "\n", s8, s9, s10, s11, s12, s13, s14, s15);
#line 4367 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_STATUS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_STATUS) || \
    false)

static inline void trace_spapr_vscsi_command_complete_status(uint32_t status)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_COMMAND_COMPLETE_STATUS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 236 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_command_complete_status " "Command complete err=%"PRIu32 "\n", status);
#line 4382 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_SAVE_REQUEST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_SAVE_REQUEST) || \
    false)

static inline void trace_spapr_vscsi_save_request(uint32_t qtag, unsigned desc, unsigned offset)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_SAVE_REQUEST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 237 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_save_request " "saving tag=%"PRIu32", current desc#%u, offset=0x%x" "\n", qtag, desc, offset);
#line 4397 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_LOAD_REQUEST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_LOAD_REQUEST) || \
    false)

static inline void trace_spapr_vscsi_load_request(uint32_t qtag, unsigned desc, unsigned offset)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_LOAD_REQUEST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 238 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_load_request " "restoring tag=%"PRIu32", current desc#%u, offset=0x%x" "\n", qtag, desc, offset);
#line 4412 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_PROCESS_LOGIN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_PROCESS_LOGIN) || \
    false)

static inline void trace_spapr_vscsi_process_login(void)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_PROCESS_LOGIN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 239 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_process_login " "Got login, sending response !" "\n");
#line 4427 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_PROCESS_TSK_MGMT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_PROCESS_TSK_MGMT) || \
    false)

static inline void trace_spapr_vscsi_process_tsk_mgmt(uint8_t func)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_PROCESS_TSK_MGMT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 240 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_process_tsk_mgmt " "tsk_mgmt_func 0x%02x" "\n", func);
#line 4442 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_QUEUE_CMD_NO_DRIVE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_QUEUE_CMD_NO_DRIVE) || \
    false)

static inline void trace_spapr_vscsi_queue_cmd_no_drive(uint64_t lun)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_QUEUE_CMD_NO_DRIVE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 241 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_queue_cmd_no_drive " "Command for lun 0x%08" PRIx64 " with no drive" "\n", lun);
#line 4457 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_QUEUE_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_QUEUE_CMD) || \
    false)

static inline void trace_spapr_vscsi_queue_cmd(uint32_t qtag, unsigned cdb, const char *cmd, int lun, int ret)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_QUEUE_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 242 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_queue_cmd " "Queued command tag 0x%"PRIx32" CMD 0x%x=%s LUN %d ret: %d" "\n", qtag, cdb, cmd, lun, ret);
#line 4472 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SPAPR_VSCSI_DO_CRQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SPAPR_VSCSI_DO_CRQ) || \
    false)

static inline void trace_spapr_vscsi_do_crq(unsigned c0, unsigned c1)
{
    if (trace_event_get_state(TRACE_SPAPR_VSCSI_DO_CRQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 243 "../xemu/hw/scsi/trace-events"
            qemu_log("spapr_vscsi_do_crq " "crq: %02x %02x ..." "\n", c0, c1);
#line 4487 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_RESET) || \
    false)

static inline void trace_lsi_reset(void)
{
    if (trace_event_get_state(TRACE_LSI_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 246 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_reset " "Reset" "\n");
#line 4502 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_UPDATE_IRQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_UPDATE_IRQ) || \
    false)

static inline void trace_lsi_update_irq(int level, uint8_t dstat, uint8_t sist1, uint8_t sist0)
{
    if (trace_event_get_state(TRACE_LSI_UPDATE_IRQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 247 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_update_irq " "Update IRQ level %d dstat 0x%02x sist 0x%02x0x%02x" "\n", level, dstat, sist1, sist0);
#line 4517 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_UPDATE_IRQ_DISCONNECTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_UPDATE_IRQ_DISCONNECTED) || \
    false)

static inline void trace_lsi_update_irq_disconnected(void)
{
    if (trace_event_get_state(TRACE_LSI_UPDATE_IRQ_DISCONNECTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 248 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_update_irq_disconnected " "Handled IRQs & disconnected, looking for pending processes" "\n");
#line 4532 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_SCRIPT_SCSI_INTERRUPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_SCRIPT_SCSI_INTERRUPT) || \
    false)

static inline void trace_lsi_script_scsi_interrupt(uint8_t stat1, uint8_t stat0, uint8_t sist1, uint8_t sist0)
{
    if (trace_event_get_state(TRACE_LSI_SCRIPT_SCSI_INTERRUPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 249 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_script_scsi_interrupt " "SCSI Interrupt 0x%02x0x%02x prev 0x%02x0x%02x" "\n", stat1, stat0, sist1, sist0);
#line 4547 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_SCRIPT_DMA_INTERRUPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_SCRIPT_DMA_INTERRUPT) || \
    false)

static inline void trace_lsi_script_dma_interrupt(uint8_t stat, uint8_t dstat)
{
    if (trace_event_get_state(TRACE_LSI_SCRIPT_DMA_INTERRUPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 250 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_script_dma_interrupt " "DMA Interrupt 0x%x prev 0x%x" "\n", stat, dstat);
#line 4562 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_BAD_PHASE_JUMP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_BAD_PHASE_JUMP) || \
    false)

static inline void trace_lsi_bad_phase_jump(uint32_t dsp)
{
    if (trace_event_get_state(TRACE_LSI_BAD_PHASE_JUMP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 251 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_bad_phase_jump " "Data phase mismatch jump to 0x%"PRIX32 "\n", dsp);
#line 4577 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_BAD_PHASE_INTERRUPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_BAD_PHASE_INTERRUPT) || \
    false)

static inline void trace_lsi_bad_phase_interrupt(void)
{
    if (trace_event_get_state(TRACE_LSI_BAD_PHASE_INTERRUPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 252 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_bad_phase_interrupt " "Phase mismatch interrupt" "\n");
#line 4592 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_BAD_SELECTION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_BAD_SELECTION) || \
    false)

static inline void trace_lsi_bad_selection(uint32_t id)
{
    if (trace_event_get_state(TRACE_LSI_BAD_SELECTION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 253 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_bad_selection " "Selected absent target %"PRIu32 "\n", id);
#line 4607 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_DMA_UNAVAILABLE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_DMA_UNAVAILABLE) || \
    false)

static inline void trace_lsi_do_dma_unavailable(void)
{
    if (trace_event_get_state(TRACE_LSI_DO_DMA_UNAVAILABLE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 254 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_dma_unavailable " "DMA no data available" "\n");
#line 4622 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_DMA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_DMA) || \
    false)

static inline void trace_lsi_do_dma(uint64_t addr, int len)
{
    if (trace_event_get_state(TRACE_LSI_DO_DMA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 255 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_dma " "DMA addr=0x%"PRIx64" len=%d" "\n", addr, len);
#line 4637 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_QUEUE_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_QUEUE_COMMAND) || \
    false)

static inline void trace_lsi_queue_command(uint32_t tag)
{
    if (trace_event_get_state(TRACE_LSI_QUEUE_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 256 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_queue_command " "Queueing tag=0x%"PRIx32 "\n", tag);
#line 4652 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_ADD_MSG_BYTE_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_ADD_MSG_BYTE_ERROR) || \
    false)

static inline void trace_lsi_add_msg_byte_error(void)
{
    if (trace_event_get_state(TRACE_LSI_ADD_MSG_BYTE_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 257 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_add_msg_byte_error " "MSG IN data too long" "\n");
#line 4667 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_ADD_MSG_BYTE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_ADD_MSG_BYTE) || \
    false)

static inline void trace_lsi_add_msg_byte(uint8_t data)
{
    if (trace_event_get_state(TRACE_LSI_ADD_MSG_BYTE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 258 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_add_msg_byte " "MSG IN 0x%02x" "\n", data);
#line 4682 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_RESELECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_RESELECT) || \
    false)

static inline void trace_lsi_reselect(int id)
{
    if (trace_event_get_state(TRACE_LSI_RESELECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 259 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_reselect " "Reselected target %d" "\n", id);
#line 4697 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_QUEUE_REQ_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_QUEUE_REQ_ERROR) || \
    false)

static inline void trace_lsi_queue_req_error(void *p)
{
    if (trace_event_get_state(TRACE_LSI_QUEUE_REQ_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 260 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_queue_req_error " "Multiple IO pending for request %p" "\n", p);
#line 4712 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_QUEUE_REQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_QUEUE_REQ) || \
    false)

static inline void trace_lsi_queue_req(uint32_t tag)
{
    if (trace_event_get_state(TRACE_LSI_QUEUE_REQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 261 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_queue_req " "Queueing IO tag=0x%"PRIx32 "\n", tag);
#line 4727 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_COMMAND_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_COMMAND_COMPLETE) || \
    false)

static inline void trace_lsi_command_complete(uint32_t status)
{
    if (trace_event_get_state(TRACE_LSI_COMMAND_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 262 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_command_complete " "Command complete status=%"PRId32 "\n", status);
#line 4742 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_TRANSFER_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_TRANSFER_DATA) || \
    false)

static inline void trace_lsi_transfer_data(uint32_t tag, uint32_t len)
{
    if (trace_event_get_state(TRACE_LSI_TRANSFER_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 263 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_transfer_data " "Data ready tag=0x%"PRIx32" len=%"PRId32 "\n", tag, len);
#line 4757 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_COMMAND) || \
    false)

static inline void trace_lsi_do_command(uint32_t dbc)
{
    if (trace_event_get_state(TRACE_LSI_DO_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 264 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_command " "Send command len=%"PRId32 "\n", dbc);
#line 4772 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_STATUS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_STATUS) || \
    false)

static inline void trace_lsi_do_status(uint32_t dbc, uint8_t status)
{
    if (trace_event_get_state(TRACE_LSI_DO_STATUS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 265 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_status " "Get status len=%"PRId32" status=%d" "\n", dbc, status);
#line 4787 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_STATUS_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_STATUS_ERROR) || \
    false)

static inline void trace_lsi_do_status_error(void)
{
    if (trace_event_get_state(TRACE_LSI_DO_STATUS_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 266 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_status_error " "Bad Status move" "\n");
#line 4802 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGIN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGIN) || \
    false)

static inline void trace_lsi_do_msgin(uint32_t dbc, int len)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGIN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 267 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgin " "Message in len=%"PRId32" %d" "\n", dbc, len);
#line 4817 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT) || \
    false)

static inline void trace_lsi_do_msgout(uint32_t dbc)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 268 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout " "MSG out len=%"PRId32 "\n", dbc);
#line 4832 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_DISCONNECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_DISCONNECT) || \
    false)

static inline void trace_lsi_do_msgout_disconnect(void)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_DISCONNECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 269 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_disconnect " "MSG: Disconnect" "\n");
#line 4847 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_NOOP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_NOOP) || \
    false)

static inline void trace_lsi_do_msgout_noop(void)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_NOOP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 270 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_noop " "MSG: No Operation" "\n");
#line 4862 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_EXTENDED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_EXTENDED) || \
    false)

static inline void trace_lsi_do_msgout_extended(uint8_t msg, uint8_t len)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_EXTENDED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 271 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_extended " "Extended message 0x%x (len %d)" "\n", msg, len);
#line 4877 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_IGNORED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_IGNORED) || \
    false)

static inline void trace_lsi_do_msgout_ignored(const char *msg)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_IGNORED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 272 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_ignored " "%s (ignored)" "\n", msg);
#line 4892 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_SIMPLEQUEUE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_SIMPLEQUEUE) || \
    false)

static inline void trace_lsi_do_msgout_simplequeue(uint8_t select_tag)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_SIMPLEQUEUE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 273 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_simplequeue " "SIMPLE queue tag=0x%x" "\n", select_tag);
#line 4907 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_ABORT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_ABORT) || \
    false)

static inline void trace_lsi_do_msgout_abort(uint32_t tag)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_ABORT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 274 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_abort " "MSG: ABORT TAG tag=0x%"PRIx32 "\n", tag);
#line 4922 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_CLEARQUEUE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_CLEARQUEUE) || \
    false)

static inline void trace_lsi_do_msgout_clearqueue(uint32_t tag)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_CLEARQUEUE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 275 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_clearqueue " "MSG: CLEAR QUEUE tag=0x%"PRIx32 "\n", tag);
#line 4937 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_BUSDEVICERESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_BUSDEVICERESET) || \
    false)

static inline void trace_lsi_do_msgout_busdevicereset(uint32_t tag)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_BUSDEVICERESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 276 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_busdevicereset " "MSG: BUS DEVICE RESET tag=0x%"PRIx32 "\n", tag);
#line 4952 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_DO_MSGOUT_SELECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_DO_MSGOUT_SELECT) || \
    false)

static inline void trace_lsi_do_msgout_select(int id)
{
    if (trace_event_get_state(TRACE_LSI_DO_MSGOUT_SELECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 277 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_do_msgout_select " "Select LUN %d" "\n", id);
#line 4967 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_MEMCPY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_MEMCPY) || \
    false)

static inline void trace_lsi_memcpy(uint32_t dest, uint32_t src, int count)
{
    if (trace_event_get_state(TRACE_LSI_MEMCPY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 278 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_memcpy " "memcpy dest 0x%"PRIx32" src 0x%"PRIx32" count %d" "\n", dest, src, count);
#line 4982 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_WAIT_RESELECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_WAIT_RESELECT) || \
    false)

static inline void trace_lsi_wait_reselect(void)
{
    if (trace_event_get_state(TRACE_LSI_WAIT_RESELECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 279 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_wait_reselect " "Wait Reselect" "\n");
#line 4997 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT) || \
    false)

static inline void trace_lsi_execute_script(uint32_t dsp, uint32_t insn, uint32_t addr)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 280 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script " "SCRIPTS dsp=0x%"PRIx32" opcode 0x%"PRIx32" arg 0x%"PRIx32 "\n", dsp, insn, addr);
#line 5012 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_DELAYED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_DELAYED) || \
    false)

static inline void trace_lsi_execute_script_blockmove_delayed(void)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_DELAYED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 281 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_blockmove_delayed " "Delayed select timeout" "\n");
#line 5027 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_BADPHASE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_BADPHASE) || \
    false)

static inline void trace_lsi_execute_script_blockmove_badphase(const char *phase, const char *expected)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_BLOCKMOVE_BADPHASE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 282 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_blockmove_badphase " "Wrong phase got %s expected %s" "\n", phase, expected);
#line 5042 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_IO_ALREADYRESELECTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_IO_ALREADYRESELECTED) || \
    false)

static inline void trace_lsi_execute_script_io_alreadyreselected(void)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_IO_ALREADYRESELECTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 283 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_io_alreadyreselected " "Already reselected, jumping to alternative address" "\n");
#line 5057 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_IO_SELECTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_IO_SELECTED) || \
    false)

static inline void trace_lsi_execute_script_io_selected(uint8_t id, const char *atn)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_IO_SELECTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 284 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_io_selected " "Selected target %d%s" "\n", id, atn);
#line 5072 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_IO_DISCONNECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_IO_DISCONNECT) || \
    false)

static inline void trace_lsi_execute_script_io_disconnect(void)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_IO_DISCONNECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 285 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_io_disconnect " "Wait Disconnect" "\n");
#line 5087 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_IO_SET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_IO_SET) || \
    false)

static inline void trace_lsi_execute_script_io_set(const char *atn, const char *ack, const char *tm, const char *cc)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_IO_SET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 286 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_io_set " "Set%s%s%s%s" "\n", atn, ack, tm, cc);
#line 5102 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_IO_CLEAR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_IO_CLEAR) || \
    false)

static inline void trace_lsi_execute_script_io_clear(const char *atn, const char *ack, const char *tm, const char *cc)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_IO_CLEAR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 287 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_io_clear " "Clear%s%s%s%s" "\n", atn, ack, tm, cc);
#line 5117 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_IO_OPCODE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_IO_OPCODE) || \
    false)

static inline void trace_lsi_execute_script_io_opcode(const char *opcode, int reg, const char *opname, uint8_t data8, uint32_t sfbr, const char *ssfbr)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_IO_OPCODE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 288 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_io_opcode " "%s reg 0x%x %s data8=0x%02x sfbr=0x%02x%s" "\n", opcode, reg, opname, data8, sfbr, ssfbr);
#line 5132 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_NOP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_NOP) || \
    false)

static inline void trace_lsi_execute_script_tc_nop(void)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_NOP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 289 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_nop " "NOP" "\n");
#line 5147 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_DELAYEDSELECT_TIMEOUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_DELAYEDSELECT_TIMEOUT) || \
    false)

static inline void trace_lsi_execute_script_tc_delayedselect_timeout(void)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_DELAYEDSELECT_TIMEOUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 290 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_delayedselect_timeout " "Delayed select timeout" "\n");
#line 5162 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_COMPC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_COMPC) || \
    false)

static inline void trace_lsi_execute_script_tc_compc(int result)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_COMPC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 291 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_compc " "Compare carry %d" "\n", result);
#line 5177 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_COMPP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_COMPP) || \
    false)

static inline void trace_lsi_execute_script_tc_compp(const char *phase, char op, const char *insn_phase)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_COMPP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 292 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_compp " "Compare phase %s %c= %s" "\n", phase, op, insn_phase);
#line 5192 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_COMPD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_COMPD) || \
    false)

static inline void trace_lsi_execute_script_tc_compd(uint32_t sfbr, uint8_t mask, char op, int result)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_COMPD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 293 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_compd " "Compare data 0x%"PRIx32" & 0x%x %c= 0x%x" "\n", sfbr, mask, op, result);
#line 5207 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_JUMP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_JUMP) || \
    false)

static inline void trace_lsi_execute_script_tc_jump(uint32_t addr)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_JUMP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 294 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_jump " "Jump to 0x%"PRIx32 "\n", addr);
#line 5222 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_CALL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_CALL) || \
    false)

static inline void trace_lsi_execute_script_tc_call(uint32_t addr)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_CALL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 295 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_call " "Call 0x%"PRIx32 "\n", addr);
#line 5237 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_RETURN) || \
    false)

static inline void trace_lsi_execute_script_tc_return(uint32_t addr)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 296 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_return " "Return to 0x%"PRIx32 "\n", addr);
#line 5252 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_INTERRUPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_INTERRUPT) || \
    false)

static inline void trace_lsi_execute_script_tc_interrupt(uint32_t addr)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_INTERRUPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 297 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_interrupt " "Interrupt 0x%"PRIx32 "\n", addr);
#line 5267 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_ILLEGAL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_ILLEGAL) || \
    false)

static inline void trace_lsi_execute_script_tc_illegal(void)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_ILLEGAL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 298 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_illegal " "Illegal transfer control" "\n");
#line 5282 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_TC_CC_FAILED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_TC_CC_FAILED) || \
    false)

static inline void trace_lsi_execute_script_tc_cc_failed(void)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_TC_CC_FAILED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 299 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_tc_cc_failed " "Control condition failed" "\n");
#line 5297 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_MM_LOAD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_MM_LOAD) || \
    false)

static inline void trace_lsi_execute_script_mm_load(int reg, int n, uint32_t addr, int data)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_MM_LOAD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 300 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_mm_load " "Load reg 0x%x size %d addr 0x%"PRIx32" = 0x%08x" "\n", reg, n, addr, data);
#line 5312 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_MM_STORE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_MM_STORE) || \
    false)

static inline void trace_lsi_execute_script_mm_store(int reg, int n, uint32_t addr)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_MM_STORE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 301 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_mm_store " "Store reg 0x%x size %d addr 0x%"PRIx32 "\n", reg, n, addr);
#line 5327 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_EXECUTE_SCRIPT_STOP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_EXECUTE_SCRIPT_STOP) || \
    false)

static inline void trace_lsi_execute_script_stop(void)
{
    if (trace_event_get_state(TRACE_LSI_EXECUTE_SCRIPT_STOP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 302 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_execute_script_stop " "SCRIPTS execution stopped" "\n");
#line 5342 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_AWOKEN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_AWOKEN) || \
    false)

static inline void trace_lsi_awoken(void)
{
    if (trace_event_get_state(TRACE_LSI_AWOKEN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 303 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_awoken " "Woken by SIGP" "\n");
#line 5357 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_REG_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_REG_READ) || \
    false)

static inline void trace_lsi_reg_read(const char *name, int offset, uint8_t ret)
{
    if (trace_event_get_state(TRACE_LSI_REG_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 304 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_reg_read " "Read reg %s 0x%x = 0x%02x" "\n", name, offset, ret);
#line 5372 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_REG_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_REG_WRITE) || \
    false)

static inline void trace_lsi_reg_write(const char *name, int offset, uint8_t val)
{
    if (trace_event_get_state(TRACE_LSI_REG_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 305 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_reg_write " "Write reg %s 0x%x = 0x%02x" "\n", name, offset, val);
#line 5387 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_SCRIPTS_TIMER_TRIGGERED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_SCRIPTS_TIMER_TRIGGERED) || \
    false)

static inline void trace_lsi_scripts_timer_triggered(void)
{
    if (trace_event_get_state(TRACE_LSI_SCRIPTS_TIMER_TRIGGERED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 306 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_scripts_timer_triggered " "SCRIPTS timer triggered" "\n");
#line 5402 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LSI_SCRIPTS_TIMER_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LSI_SCRIPTS_TIMER_START) || \
    false)

static inline void trace_lsi_scripts_timer_start(void)
{
    if (trace_event_get_state(TRACE_LSI_SCRIPTS_TIMER_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 307 "../xemu/hw/scsi/trace-events"
            qemu_log("lsi_scripts_timer_start " "SCRIPTS timer started" "\n");
#line 5417 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_RESET) || \
    false)

static inline void trace_ncr710_reset(void)
{
    if (trace_event_get_state(TRACE_NCR710_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 310 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_reset " "Reset" "\n");
#line 5432 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_REG_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_REG_READ) || \
    false)

static inline void trace_ncr710_reg_read(const char *name, int offset, uint8_t ret)
{
    if (trace_event_get_state(TRACE_NCR710_REG_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 311 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_reg_read " "Read %s [0x%02x] = 0x%02x" "\n", name, offset, ret);
#line 5447 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_REG_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_REG_WRITE) || \
    false)

static inline void trace_ncr710_reg_write(const char *name, int offset, uint8_t val)
{
    if (trace_event_get_state(TRACE_NCR710_REG_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 312 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_reg_write " "Write %s [0x%02x] = 0x%02x" "\n", name, offset, val);
#line 5462 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_SCRIPT_SCSI_INTERRUPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_SCRIPT_SCSI_INTERRUPT) || \
    false)

static inline void trace_ncr710_script_scsi_interrupt(uint8_t stat0, uint8_t sstat0)
{
    if (trace_event_get_state(TRACE_NCR710_SCRIPT_SCSI_INTERRUPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 313 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_script_scsi_interrupt " "SCSI interrupt stat=0x%02x sstat=0x%02x" "\n", stat0, sstat0);
#line 5477 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_SCRIPT_DMA_INTERRUPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_SCRIPT_DMA_INTERRUPT) || \
    false)

static inline void trace_ncr710_script_dma_interrupt(uint8_t stat, uint8_t dstat)
{
    if (trace_event_get_state(TRACE_NCR710_SCRIPT_DMA_INTERRUPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 314 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_script_dma_interrupt " "DMA interrupt stat=0x%02x dstat=0x%02x" "\n", stat, dstat);
#line 5492 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_COMMAND_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_COMMAND_COMPLETE) || \
    false)

static inline void trace_ncr710_command_complete(uint32_t tag, uint8_t status)
{
    if (trace_event_get_state(TRACE_NCR710_COMMAND_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 315 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_command_complete " "tag=0x%x status=0x%02x" "\n", tag, status);
#line 5507 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_DISCONNECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_DISCONNECT) || \
    false)

static inline void trace_ncr710_disconnect(uint8_t waiting)
{
    if (trace_event_get_state(TRACE_NCR710_DISCONNECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 316 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_disconnect " "waiting=%d" "\n", waiting);
#line 5522 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_BAD_SELECTION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_BAD_SELECTION) || \
    false)

static inline void trace_ncr710_bad_selection(uint32_t target)
{
    if (trace_event_get_state(TRACE_NCR710_BAD_SELECTION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 317 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_bad_selection " "target=%d" "\n", target);
#line 5537 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_PARITY_SENSE_CHANGED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_PARITY_SENSE_CHANGED) || \
    false)

static inline void trace_ncr710_parity_sense_changed(const char *parity)
{
    if (trace_event_get_state(TRACE_NCR710_PARITY_SENSE_CHANGED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 318 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_parity_sense_changed " "Parity sense changed to %s" "\n", parity);
#line 5552 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_NCR710_DEVICE_REALIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NCR710_DEVICE_REALIZE) || \
    false)

static inline void trace_ncr710_device_realize(void)
{
    if (trace_event_get_state(TRACE_NCR710_DEVICE_REALIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 319 "../xemu/hw/scsi/trace-events"
            qemu_log("ncr710_device_realize " "Device realized" "\n");
#line 5567 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_DEVICE_REALIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_DEVICE_REALIZE) || \
    false)

static inline void trace_lasi_ncr710_device_realize(void)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_DEVICE_REALIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 322 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_device_realize " "Device realized" "\n");
#line 5582 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_DEVICE_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_DEVICE_RESET) || \
    false)

static inline void trace_lasi_ncr710_device_reset(void)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_DEVICE_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 323 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_device_reset " "Device reset" "\n");
#line 5597 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_REG_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_REG_READ) || \
    false)

static inline void trace_lasi_ncr710_reg_read(uint32_t addr, uint32_t val, unsigned size)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_REG_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 324 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_reg_read " "addr=0x%03x val=0x%08x size=%u" "\n", addr, val, size);
#line 5612 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_REG_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_REG_WRITE) || \
    false)

static inline void trace_lasi_ncr710_reg_write(uint32_t addr, uint32_t val, unsigned size)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_REG_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 325 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_reg_write " "addr=0x%03x val=0x%08x size=%u" "\n", addr, val, size);
#line 5627 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_REG_READ_ID_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_REG_READ_ID) || \
    false)

static inline void trace_lasi_ncr710_reg_read_id(uint32_t hw_type, uint32_t sversion, uint32_t val)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_REG_READ_ID)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 326 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_reg_read_id " "hw_type=%u sversion=0x%04x val=0x%08x" "\n", hw_type, sversion, val);
#line 5642 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_REG_READ_HVERSION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_REG_READ_HVERSION) || \
    false)

static inline void trace_lasi_ncr710_reg_read_hversion(uint32_t hversion)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_REG_READ_HVERSION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 327 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_reg_read_hversion " "LASI NCR710: HVersion read -> 0x%02x" "\n", hversion);
#line 5657 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_REG_FORWARD_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_REG_FORWARD_READ) || \
    false)

static inline void trace_lasi_ncr710_reg_forward_read(uint32_t addr, uint32_t val)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_REG_FORWARD_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 328 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_reg_forward_read " "LASI NCR710: Forward read to NCR710 core addr=0x%03x val=0x%08x" "\n", addr, val);
#line 5672 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_REG_FORWARD_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_REG_FORWARD_WRITE) || \
    false)

static inline void trace_lasi_ncr710_reg_forward_write(uint32_t addr, uint32_t val)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_REG_FORWARD_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 329 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_reg_forward_write " "LASI NCR710: Forward write to NCR710 core addr=0x%03x val=0x%08x" "\n", addr, val);
#line 5687 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_COMMAND_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_COMMAND_COMPLETE) || \
    false)

static inline void trace_lasi_ncr710_command_complete(uint32_t status, size_t resid)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_COMMAND_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 330 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_command_complete " "LASI NCR710: Command complete status=0x%02x resid=%zu" "\n", status, resid);
#line 5702 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_TRANSFER_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_TRANSFER_DATA) || \
    false)

static inline void trace_lasi_ncr710_transfer_data(uint32_t len)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_TRANSFER_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 331 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_transfer_data " "LASI NCR710: Transfer data len=%u" "\n", len);
#line 5717 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_REQUEST_CANCELLED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_REQUEST_CANCELLED) || \
    false)

static inline void trace_lasi_ncr710_request_cancelled(void *req)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_REQUEST_CANCELLED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 332 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_request_cancelled " "LASI NCR710: Request cancelled req=%p" "\n", req);
#line 5732 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_TIMERS_INITIALIZED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_TIMERS_INITIALIZED) || \
    false)

static inline void trace_lasi_ncr710_timers_initialized(uint64_t reselection)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_TIMERS_INITIALIZED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 333 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_timers_initialized " "Timers: reselection=0x%" PRIx64 "\n", reselection);
#line 5747 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_HANDLE_LEGACY_CMDLINE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_HANDLE_LEGACY_CMDLINE) || \
    false)

static inline void trace_lasi_ncr710_handle_legacy_cmdline(int busnr, int found_drives)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_HANDLE_LEGACY_CMDLINE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 334 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_handle_legacy_cmdline " "LASI NCR710: Handle legacy cmdline busnr=%d found_drives=%d" "\n", busnr, found_drives);
#line 5762 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_LEGACY_DRIVE_FOUND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_LEGACY_DRIVE_FOUND) || \
    false)

static inline void trace_lasi_ncr710_legacy_drive_found(int busnr, int unit)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_LEGACY_DRIVE_FOUND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 335 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_legacy_drive_found " "LASI NCR710: Found legacy drive at bus=%d unit=%d" "\n", busnr, unit);
#line 5777 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_LASI_NCR710_SCSI_DEVICE_CREATED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LASI_NCR710_SCSI_DEVICE_CREATED) || \
    false)

static inline void trace_lasi_ncr710_scsi_device_created(const char *type)
{
    if (trace_event_get_state(TRACE_LASI_NCR710_SCSI_DEVICE_CREATED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 336 "../xemu/hw/scsi/trace-events"
            qemu_log("lasi_ncr710_scsi_device_created " "LASI NCR710: SCSI device created: %s" "\n", type);
#line 5792 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_VIRTIO_SCSI_CMD_REQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VIRTIO_SCSI_CMD_REQ) || \
    false)

static inline void trace_virtio_scsi_cmd_req(int lun, uint32_t tag, uint8_t cmd)
{
    if (trace_event_get_state(TRACE_VIRTIO_SCSI_CMD_REQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 339 "../xemu/hw/scsi/trace-events"
            qemu_log("virtio_scsi_cmd_req " "virtio_scsi_cmd_req lun=%u tag=0x%x cmd=0x%x" "\n", lun, tag, cmd);
#line 5807 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_VIRTIO_SCSI_CMD_RESP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VIRTIO_SCSI_CMD_RESP) || \
    false)

static inline void trace_virtio_scsi_cmd_resp(int lun, uint32_t tag, int response, uint8_t status)
{
    if (trace_event_get_state(TRACE_VIRTIO_SCSI_CMD_RESP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 340 "../xemu/hw/scsi/trace-events"
            qemu_log("virtio_scsi_cmd_resp " "virtio_scsi_cmd_resp lun=%u tag=0x%x response=%d status=0x%x" "\n", lun, tag, response, status);
#line 5822 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_VIRTIO_SCSI_TMF_REQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VIRTIO_SCSI_TMF_REQ) || \
    false)

static inline void trace_virtio_scsi_tmf_req(int lun, uint32_t tag, int subtype)
{
    if (trace_event_get_state(TRACE_VIRTIO_SCSI_TMF_REQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 341 "../xemu/hw/scsi/trace-events"
            qemu_log("virtio_scsi_tmf_req " "virtio_scsi_tmf_req lun=%u tag=0x%x subtype=%d" "\n", lun, tag, subtype);
#line 5837 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_VIRTIO_SCSI_TMF_RESP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VIRTIO_SCSI_TMF_RESP) || \
    false)

static inline void trace_virtio_scsi_tmf_resp(int lun, uint32_t tag, int response)
{
    if (trace_event_get_state(TRACE_VIRTIO_SCSI_TMF_RESP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 342 "../xemu/hw/scsi/trace-events"
            qemu_log("virtio_scsi_tmf_resp " "virtio_scsi_tmf_resp lun=%u tag=0x%x response=%d" "\n", lun, tag, response);
#line 5852 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_VIRTIO_SCSI_AN_REQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VIRTIO_SCSI_AN_REQ) || \
    false)

static inline void trace_virtio_scsi_an_req(int lun, uint32_t event_requested)
{
    if (trace_event_get_state(TRACE_VIRTIO_SCSI_AN_REQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 343 "../xemu/hw/scsi/trace-events"
            qemu_log("virtio_scsi_an_req " "virtio_scsi_an_req lun=%u event_requested=0x%x" "\n", lun, event_requested);
#line 5867 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_VIRTIO_SCSI_AN_RESP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VIRTIO_SCSI_AN_RESP) || \
    false)

static inline void trace_virtio_scsi_an_resp(int lun, int response)
{
    if (trace_event_get_state(TRACE_VIRTIO_SCSI_AN_RESP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 344 "../xemu/hw/scsi/trace-events"
            qemu_log("virtio_scsi_an_resp " "virtio_scsi_an_resp lun=%u response=%d" "\n", lun, response);
#line 5882 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_VIRTIO_SCSI_EVENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VIRTIO_SCSI_EVENT) || \
    false)

static inline void trace_virtio_scsi_event(int lun, int event, int reason)
{
    if (trace_event_get_state(TRACE_VIRTIO_SCSI_EVENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 345 "../xemu/hw/scsi/trace-events"
            qemu_log("virtio_scsi_event " "virtio_scsi_event lun=%u event=%d reason=%d" "\n", lun, event, reason);
#line 5897 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_CHECK_CONDITION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_CHECK_CONDITION) || \
    false)

static inline void trace_scsi_disk_check_condition(uint32_t tag, uint8_t key, uint8_t asc, uint8_t ascq)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_CHECK_CONDITION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 348 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_check_condition " "Command complete tag=0x%x sense=%d/%d/%d" "\n", tag, key, asc, ascq);
#line 5912 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_READ_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_READ_COMPLETE) || \
    false)

static inline void trace_scsi_disk_read_complete(uint32_t tag, size_t size)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_READ_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 349 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_read_complete " "Data ready tag=0x%x len=%zd" "\n", tag, size);
#line 5927 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_READ_DATA_COUNT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_READ_DATA_COUNT) || \
    false)

static inline void trace_scsi_disk_read_data_count(uint32_t sector_count)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_READ_DATA_COUNT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 350 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_read_data_count " "Read sector_count=%d" "\n", sector_count);
#line 5942 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_READ_DATA_INVALID_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_READ_DATA_INVALID) || \
    false)

static inline void trace_scsi_disk_read_data_invalid(void)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_READ_DATA_INVALID)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 351 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_read_data_invalid " "Data transfer direction invalid" "\n");
#line 5957 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_WRITE_COMPLETE_NOIO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_WRITE_COMPLETE_NOIO) || \
    false)

static inline void trace_scsi_disk_write_complete_noio(uint32_t tag, size_t size)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_WRITE_COMPLETE_NOIO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 352 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_write_complete_noio " "Write complete tag=0x%x more=%zd" "\n", tag, size);
#line 5972 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_WRITE_DATA_INVALID_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_WRITE_DATA_INVALID) || \
    false)

static inline void trace_scsi_disk_write_data_invalid(void)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_WRITE_DATA_INVALID)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 353 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_write_data_invalid " "Data transfer direction invalid" "\n");
#line 5987 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_00_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_00) || \
    false)

static inline void trace_scsi_disk_emulate_vpd_page_00(size_t xfer)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_00)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 354 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_vpd_page_00 " "Inquiry EVPD[Supported pages] buffer size %zd" "\n", xfer);
#line 6002 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_NOT_SUPPORTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_NOT_SUPPORTED) || \
    false)

static inline void trace_scsi_disk_emulate_vpd_page_80_not_supported(void)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_NOT_SUPPORTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 355 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_vpd_page_80_not_supported " "Inquiry (EVPD[Serial number] not supported" "\n");
#line 6017 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80) || \
    false)

static inline void trace_scsi_disk_emulate_vpd_page_80(size_t xfer)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_80)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 356 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_vpd_page_80 " "Inquiry EVPD[Serial number] buffer size %zd" "\n", xfer);
#line 6032 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_83_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_83) || \
    false)

static inline void trace_scsi_disk_emulate_vpd_page_83(size_t xfer)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_83)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 357 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_vpd_page_83 " "Inquiry EVPD[Device identification] buffer size %zd" "\n", xfer);
#line 6047 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_VPD_PAGE_B0_NOT_SUPPORTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_B0_NOT_SUPPORTED) || \
    false)

static inline void trace_scsi_disk_emulate_vpd_page_b0_not_supported(void)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_VPD_PAGE_B0_NOT_SUPPORTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 358 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_vpd_page_b0_not_supported " "Inquiry (EVPD[Block limits] not supported for CDROM" "\n");
#line 6062 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_MODE_SENSE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_MODE_SENSE) || \
    false)

static inline void trace_scsi_disk_emulate_mode_sense(int cmd, int page, size_t xfer, int control)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_MODE_SENSE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 359 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_mode_sense " "Mode Sense(%d) (page %d, xfer %zd, page_control %d)" "\n", cmd, page, xfer, control);
#line 6077 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_READ_TOC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_READ_TOC) || \
    false)

static inline void trace_scsi_disk_emulate_read_toc(int start_track, int format, int msf)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_READ_TOC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 360 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_read_toc " "Read TOC (track %d format %d msf %d)" "\n", start_track, format, msf);
#line 6092 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_READ_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_READ_DATA) || \
    false)

static inline void trace_scsi_disk_emulate_read_data(int buflen)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_READ_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 361 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_read_data " "Read buf_len=%d" "\n", buflen);
#line 6107 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_WRITE_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_WRITE_DATA) || \
    false)

static inline void trace_scsi_disk_emulate_write_data(int buflen)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_WRITE_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 362 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_write_data " "Write buf_len=%d" "\n", buflen);
#line 6122 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_16_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_16) || \
    false)

static inline void trace_scsi_disk_emulate_command_SAI_16(void)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_16)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 363 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_SAI_16 " "SAI READ CAPACITY(16)" "\n");
#line 6137 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_UNSUPPORTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_UNSUPPORTED) || \
    false)

static inline void trace_scsi_disk_emulate_command_SAI_unsupported(void)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_SAI_UNSUPPORTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 364 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_SAI_unsupported " "Unsupported Service Action In" "\n");
#line 6152 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_SEEK_10_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_SEEK_10) || \
    false)

static inline void trace_scsi_disk_emulate_command_SEEK_10(uint64_t lba)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_SEEK_10)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 365 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_SEEK_10 " "Seek(10) (sector %" PRId64 ")" "\n", lba);
#line 6167 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT) || \
    false)

static inline void trace_scsi_disk_emulate_command_MODE_SELECT(size_t xfer)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 366 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_MODE_SELECT " "Mode Select(6) (len %zd)" "\n", xfer);
#line 6182 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_10_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_10) || \
    false)

static inline void trace_scsi_disk_emulate_command_MODE_SELECT_10(size_t xfer)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_MODE_SELECT_10)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 367 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_MODE_SELECT_10 " "Mode Select(10) (len %zd)" "\n", xfer);
#line 6197 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_UNMAP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_UNMAP) || \
    false)

static inline void trace_scsi_disk_emulate_command_UNMAP(size_t xfer)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_UNMAP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 368 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_UNMAP " "Unmap (len %zd)" "\n", xfer);
#line 6212 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_VERIFY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_VERIFY) || \
    false)

static inline void trace_scsi_disk_emulate_command_VERIFY(int bytchk)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_VERIFY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 369 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_VERIFY " "Verify (bytchk %d)" "\n", bytchk);
#line 6227 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_WRITE_SAME_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_WRITE_SAME) || \
    false)

static inline void trace_scsi_disk_emulate_command_WRITE_SAME(int cmd, size_t xfer)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_WRITE_SAME)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 370 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_WRITE_SAME " "WRITE SAME %d (len %zd)" "\n", cmd, xfer);
#line 6242 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_UNKNOWN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_UNKNOWN) || \
    false)

static inline void trace_scsi_disk_emulate_command_UNKNOWN(int cmd, const char *name)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_UNKNOWN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 371 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_UNKNOWN " "Unknown SCSI command (0x%2.2x=%s)" "\n", cmd, name);
#line 6257 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_EMULATE_COMMAND_FORMAT_UNIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_EMULATE_COMMAND_FORMAT_UNIT) || \
    false)

static inline void trace_scsi_disk_emulate_command_FORMAT_UNIT(size_t xfer)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_EMULATE_COMMAND_FORMAT_UNIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 372 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_emulate_command_FORMAT_UNIT " "Format Unit (len %zu)" "\n", xfer);
#line 6272 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_DMA_COMMAND_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_DMA_COMMAND_READ) || \
    false)

static inline void trace_scsi_disk_dma_command_READ(uint64_t lba, uint32_t len)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_DMA_COMMAND_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 373 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_dma_command_READ " "Read (sector %" PRId64 ", count %u)" "\n", lba, len);
#line 6287 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_DMA_COMMAND_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_DMA_COMMAND_WRITE) || \
    false)

static inline void trace_scsi_disk_dma_command_WRITE(const char *cmd, uint64_t lba, int len)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_DMA_COMMAND_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 374 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_dma_command_WRITE " "Write %s(sector %" PRId64 ", count %u)" "\n", cmd, lba, len);
#line 6302 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_NEW_REQUEST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_NEW_REQUEST) || \
    false)

static inline void trace_scsi_disk_new_request(uint32_t lun, uint32_t tag, const char *line)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_NEW_REQUEST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 375 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_new_request " "Command: lun=%d tag=0x%x data=%s" "\n", lun, tag, line);
#line 6317 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_AIO_SGIO_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_AIO_SGIO_COMMAND) || \
    false)

static inline void trace_scsi_disk_aio_sgio_command(uint32_t tag, uint8_t cmd, uint64_t lba, int len, uint32_t timeout)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_AIO_SGIO_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 376 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_aio_sgio_command " "disk aio sgio: tag=0x%x cmd=0x%x (sector %" PRId64 ", count %d) timeout=%u" "\n", tag, cmd, lba, len, timeout);
#line 6332 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_MODE_SELECT_PAGE_TRUNCATED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_MODE_SELECT_PAGE_TRUNCATED) || \
    false)

static inline void trace_scsi_disk_mode_select_page_truncated(int page, int len, int page_len)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_MODE_SELECT_PAGE_TRUNCATED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 377 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_mode_select_page_truncated " "page %d expected length %d but received length %d" "\n", page, len, page_len);
#line 6347 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_DISK_MODE_SELECT_SET_BLOCKSIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_DISK_MODE_SELECT_SET_BLOCKSIZE) || \
    false)

static inline void trace_scsi_disk_mode_select_set_blocksize(int blocksize)
{
    if (trace_event_get_state(TRACE_SCSI_DISK_MODE_SELECT_SET_BLOCKSIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 378 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_disk_mode_select_set_blocksize " "set block size to %d" "\n", blocksize);
#line 6362 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_COMMAND_COMPLETE_NOIO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_COMMAND_COMPLETE_NOIO) || \
    false)

static inline void trace_scsi_generic_command_complete_noio(void *req, uint32_t tag, int statuc)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_COMMAND_COMPLETE_NOIO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 381 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_command_complete_noio " "Command complete %p tag=0x%x status=%d" "\n", req, tag, statuc);
#line 6377 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_READ_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_READ_COMPLETE) || \
    false)

static inline void trace_scsi_generic_read_complete(uint32_t tag, int len)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_READ_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 382 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_read_complete " "Data ready tag=0x%x len=%d" "\n", tag, len);
#line 6392 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_READ_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_READ_DATA) || \
    false)

static inline void trace_scsi_generic_read_data(uint32_t tag)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_READ_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 383 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_read_data " "scsi_read_data tag=0x%x" "\n", tag);
#line 6407 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_WRITE_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_WRITE_COMPLETE) || \
    false)

static inline void trace_scsi_generic_write_complete(int ret)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_WRITE_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 384 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_write_complete " "scsi_write_complete() ret = %d" "\n", ret);
#line 6422 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_WRITE_COMPLETE_BLOCKSIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_WRITE_COMPLETE_BLOCKSIZE) || \
    false)

static inline void trace_scsi_generic_write_complete_blocksize(int blocksize)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_WRITE_COMPLETE_BLOCKSIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 385 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_write_complete_blocksize " "block size %d" "\n", blocksize);
#line 6437 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_WRITE_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_WRITE_DATA) || \
    false)

static inline void trace_scsi_generic_write_data(uint32_t tag)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_WRITE_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 386 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_write_data " "scsi_write_data tag=0x%x" "\n", tag);
#line 6452 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_SEND_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_SEND_COMMAND) || \
    false)

static inline void trace_scsi_generic_send_command(const char *line)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_SEND_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 387 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_send_command " "Command: data=%s" "\n", line);
#line 6467 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_REALIZE_TYPE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_REALIZE_TYPE) || \
    false)

static inline void trace_scsi_generic_realize_type(int type)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_REALIZE_TYPE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 388 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_realize_type " "device type %d" "\n", type);
#line 6482 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_REALIZE_BLOCKSIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_REALIZE_BLOCKSIZE) || \
    false)

static inline void trace_scsi_generic_realize_blocksize(int blocksize)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_REALIZE_BLOCKSIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 389 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_realize_blocksize " "block size %d" "\n", blocksize);
#line 6497 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_AIO_SGIO_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_AIO_SGIO_COMMAND) || \
    false)

static inline void trace_scsi_generic_aio_sgio_command(uint32_t tag, uint8_t cmd, uint32_t timeout)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_AIO_SGIO_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 390 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_aio_sgio_command " "generic aio sgio: tag=0x%x cmd=0x%x timeout=%u" "\n", tag, cmd, timeout);
#line 6512 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_IOCTL_SGIO_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_IOCTL_SGIO_COMMAND) || \
    false)

static inline void trace_scsi_generic_ioctl_sgio_command(uint8_t cmd, uint32_t timeout)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_IOCTL_SGIO_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 391 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_ioctl_sgio_command " "generic ioctl sgio: cmd=0x%x timeout=%u" "\n", cmd, timeout);
#line 6527 "trace/trace-hw_scsi.h"
        }
    }
}

#define TRACE_SCSI_GENERIC_IOCTL_SGIO_DONE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SCSI_GENERIC_IOCTL_SGIO_DONE) || \
    false)

static inline void trace_scsi_generic_ioctl_sgio_done(uint8_t cmd, int ret, uint8_t status, uint8_t host_status)
{
    if (trace_event_get_state(TRACE_SCSI_GENERIC_IOCTL_SGIO_DONE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 392 "../xemu/hw/scsi/trace-events"
            qemu_log("scsi_generic_ioctl_sgio_done " "generic ioctl sgio: cmd=0x%x ret=%d status=0x%x host_status=0x%x" "\n", cmd, ret, status, host_status);
#line 6542 "trace/trace-hw_scsi.h"
        }
    }
}
#endif /* TRACE_HW_SCSI_GENERATED_TRACERS_H */
