/* This file is autogenerated by tracetool, do not edit. */

#include "qemu/osdep.h"
#include "qemu/module.h"
#include "trace-hw_block.h"

uint16_t _TRACE_FDC_IOPORT_READ_DSTATE;
uint16_t _TRACE_FDC_IOPORT_WRITE_DSTATE;
uint16_t _TRACE_FDCTRL_TC_PULSE_DSTATE;
uint16_t _TRACE_PFLASH_CHIP_ERASE_INVALID_DSTATE;
uint16_t _TRACE_PFLASH_CHIP_ERASE_START_DSTATE;
uint16_t _TRACE_PFLASH_DATA_READ_DSTATE;
uint16_t _TRACE_PFLASH_DATA_WRITE_DSTATE;
uint16_t _TRACE_PFLASH_DATA_WRITE_BLOCK_DSTATE;
uint16_t _TRACE_PFLASH_DEVICE_ID_DSTATE;
uint16_t _TRACE_PFLASH_DEVICE_INFO_DSTATE;
uint16_t _TRACE_PFLASH_ERASE_COMPLETE_DSTATE;
uint16_t _TRACE_PFLASH_ERASE_TIMEOUT_DSTATE;
uint16_t _TRACE_PFLASH_IO_READ_DSTATE;
uint16_t _TRACE_PFLASH_IO_WRITE_DSTATE;
uint16_t _TRACE_PFLASH_MANUFACTURER_ID_DSTATE;
uint16_t _TRACE_PFLASH_MODE_READ_ARRAY_DSTATE;
uint16_t _TRACE_PFLASH_POSTLOAD_CB_DSTATE;
uint16_t _TRACE_PFLASH_READ_DONE_DSTATE;
uint16_t _TRACE_PFLASH_READ_STATUS_DSTATE;
uint16_t _TRACE_PFLASH_READ_UNKNOWN_STATE_DSTATE;
uint16_t _TRACE_PFLASH_RESET_DSTATE;
uint16_t _TRACE_PFLASH_SECTOR_ERASE_START_DSTATE;
uint16_t _TRACE_PFLASH_TIMER_EXPIRED_DSTATE;
uint16_t _TRACE_PFLASH_UNLOCK0_FAILED_DSTATE;
uint16_t _TRACE_PFLASH_UNLOCK1_FAILED_DSTATE;
uint16_t _TRACE_PFLASH_UNSUPPORTED_DEVICE_CONFIGURATION_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_BLOCK_START_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_BLOCK_FLUSH_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_BLOCK_ABORT_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_BLOCK_ERASE_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_FAILED_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_INVALID_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_INVALID_COMMAND_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_INVALID_STATE_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_START_DSTATE;
uint16_t _TRACE_PFLASH_WRITE_UNKNOWN_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_REQ_COMPLETE_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_RW_COMPLETE_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_ZONE_REPORT_COMPLETE_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_ZONE_MGMT_COMPLETE_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_ZONE_APPEND_COMPLETE_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_HANDLE_WRITE_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_HANDLE_READ_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_SUBMIT_MULTIREQ_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_HANDLE_ZONE_REPORT_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_HANDLE_ZONE_MGMT_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_HANDLE_ZONE_RESET_ALL_DSTATE;
uint16_t _TRACE_VIRTIO_BLK_HANDLE_ZONE_APPEND_DSTATE;
uint16_t _TRACE_HD_GEOMETRY_LCHS_GUESS_DSTATE;
uint16_t _TRACE_HD_GEOMETRY_GUESS_DSTATE;
uint16_t _TRACE_XEN_BLOCK_REALIZE_DSTATE;
uint16_t _TRACE_XEN_BLOCK_CONNECT_DSTATE;
uint16_t _TRACE_XEN_BLOCK_DISCONNECT_DSTATE;
uint16_t _TRACE_XEN_BLOCK_UNREALIZE_DSTATE;
uint16_t _TRACE_XEN_BLOCK_SIZE_DSTATE;
uint16_t _TRACE_XEN_DISK_REALIZE_DSTATE;
uint16_t _TRACE_XEN_DISK_UNREALIZE_DSTATE;
uint16_t _TRACE_XEN_CDROM_REALIZE_DSTATE;
uint16_t _TRACE_XEN_CDROM_UNREALIZE_DSTATE;
uint16_t _TRACE_XEN_BLOCK_BLOCKDEV_ADD_DSTATE;
uint16_t _TRACE_XEN_BLOCK_BLOCKDEV_DEL_DSTATE;
uint16_t _TRACE_XEN_BLOCK_DEVICE_CREATE_DSTATE;
uint16_t _TRACE_XEN_BLOCK_DEVICE_DESTROY_DSTATE;
uint16_t _TRACE_M25P80_FLASH_ERASE_DSTATE;
uint16_t _TRACE_M25P80_PROGRAMMING_ZERO_TO_ONE_DSTATE;
uint16_t _TRACE_M25P80_RESET_DONE_DSTATE;
uint16_t _TRACE_M25P80_COMMAND_DECODED_DSTATE;
uint16_t _TRACE_M25P80_COMPLETE_COLLECTING_DSTATE;
uint16_t _TRACE_M25P80_POPULATED_JEDEC_DSTATE;
uint16_t _TRACE_M25P80_CHIP_ERASE_DSTATE;
uint16_t _TRACE_M25P80_SELECT_DSTATE;
uint16_t _TRACE_M25P80_PAGE_PROGRAM_DSTATE;
uint16_t _TRACE_M25P80_TRANSFER_DSTATE;
uint16_t _TRACE_M25P80_READ_BYTE_DSTATE;
uint16_t _TRACE_M25P80_READ_DATA_DSTATE;
uint16_t _TRACE_M25P80_READ_SFDP_DSTATE;
uint16_t _TRACE_M25P80_BINDING_DSTATE;
uint16_t _TRACE_M25P80_BINDING_NO_BDRV_DSTATE;
uint16_t _TRACE_SWIM_ISMCTRL_READ_DSTATE;
uint16_t _TRACE_SWIM_ISMCTRL_WRITE_DSTATE;
uint16_t _TRACE_SWIM_IWMCTRL_READ_DSTATE;
uint16_t _TRACE_SWIM_IWMCTRL_WRITE_DSTATE;
uint16_t _TRACE_SWIM_SWITCH_TO_ISM_DSTATE;
uint16_t _TRACE_SWIM_SWITCH_TO_IWM_DSTATE;
uint16_t _TRACE_UFSHC_TR_SEND_DSTATE;
uint16_t _TRACE_UFSHC_TR_RECV_DSTATE;
uint16_t _TRACE_UFSHC_TMR_SEND_DSTATE;
uint16_t _TRACE_UFSHC_SGL_LIST_DSTATE;
uint16_t _TRACE_UFSHC_SGL_LIST2_DSTATE;
uint16_t _TRACE_UFSDEV_RECV_UPIU_DSTATE;
uint16_t _TRACE_UFSDEV_SEND_UPIU_DSTATE;
uint16_t _TRACE_UFSDEV_DESC_READ_DSTATE;
uint16_t _TRACE_UFSDEV_WLUN_CMD_DSTATE;
uint16_t _TRACE_UNIPRO_DME_CMD_DSTATE;
uint16_t _TRACE_UNIPRO_OFFSET_INVALID_DSTATE;
TraceEvent _TRACE_FDC_IOPORT_READ_EVENT = {
    .id = 0,
    .name = "fdc_ioport_read",
    .sstate = TRACE_FDC_IOPORT_READ_ENABLED,
    .dstate = &_TRACE_FDC_IOPORT_READ_DSTATE 
};
TraceEvent _TRACE_FDC_IOPORT_WRITE_EVENT = {
    .id = 0,
    .name = "fdc_ioport_write",
    .sstate = TRACE_FDC_IOPORT_WRITE_ENABLED,
    .dstate = &_TRACE_FDC_IOPORT_WRITE_DSTATE 
};
TraceEvent _TRACE_FDCTRL_TC_PULSE_EVENT = {
    .id = 0,
    .name = "fdctrl_tc_pulse",
    .sstate = TRACE_FDCTRL_TC_PULSE_ENABLED,
    .dstate = &_TRACE_FDCTRL_TC_PULSE_DSTATE 
};
TraceEvent _TRACE_PFLASH_CHIP_ERASE_INVALID_EVENT = {
    .id = 0,
    .name = "pflash_chip_erase_invalid",
    .sstate = TRACE_PFLASH_CHIP_ERASE_INVALID_ENABLED,
    .dstate = &_TRACE_PFLASH_CHIP_ERASE_INVALID_DSTATE 
};
TraceEvent _TRACE_PFLASH_CHIP_ERASE_START_EVENT = {
    .id = 0,
    .name = "pflash_chip_erase_start",
    .sstate = TRACE_PFLASH_CHIP_ERASE_START_ENABLED,
    .dstate = &_TRACE_PFLASH_CHIP_ERASE_START_DSTATE 
};
TraceEvent _TRACE_PFLASH_DATA_READ_EVENT = {
    .id = 0,
    .name = "pflash_data_read",
    .sstate = TRACE_PFLASH_DATA_READ_ENABLED,
    .dstate = &_TRACE_PFLASH_DATA_READ_DSTATE 
};
TraceEvent _TRACE_PFLASH_DATA_WRITE_EVENT = {
    .id = 0,
    .name = "pflash_data_write",
    .sstate = TRACE_PFLASH_DATA_WRITE_ENABLED,
    .dstate = &_TRACE_PFLASH_DATA_WRITE_DSTATE 
};
TraceEvent _TRACE_PFLASH_DATA_WRITE_BLOCK_EVENT = {
    .id = 0,
    .name = "pflash_data_write_block",
    .sstate = TRACE_PFLASH_DATA_WRITE_BLOCK_ENABLED,
    .dstate = &_TRACE_PFLASH_DATA_WRITE_BLOCK_DSTATE 
};
TraceEvent _TRACE_PFLASH_DEVICE_ID_EVENT = {
    .id = 0,
    .name = "pflash_device_id",
    .sstate = TRACE_PFLASH_DEVICE_ID_ENABLED,
    .dstate = &_TRACE_PFLASH_DEVICE_ID_DSTATE 
};
TraceEvent _TRACE_PFLASH_DEVICE_INFO_EVENT = {
    .id = 0,
    .name = "pflash_device_info",
    .sstate = TRACE_PFLASH_DEVICE_INFO_ENABLED,
    .dstate = &_TRACE_PFLASH_DEVICE_INFO_DSTATE 
};
TraceEvent _TRACE_PFLASH_ERASE_COMPLETE_EVENT = {
    .id = 0,
    .name = "pflash_erase_complete",
    .sstate = TRACE_PFLASH_ERASE_COMPLETE_ENABLED,
    .dstate = &_TRACE_PFLASH_ERASE_COMPLETE_DSTATE 
};
TraceEvent _TRACE_PFLASH_ERASE_TIMEOUT_EVENT = {
    .id = 0,
    .name = "pflash_erase_timeout",
    .sstate = TRACE_PFLASH_ERASE_TIMEOUT_ENABLED,
    .dstate = &_TRACE_PFLASH_ERASE_TIMEOUT_DSTATE 
};
TraceEvent _TRACE_PFLASH_IO_READ_EVENT = {
    .id = 0,
    .name = "pflash_io_read",
    .sstate = TRACE_PFLASH_IO_READ_ENABLED,
    .dstate = &_TRACE_PFLASH_IO_READ_DSTATE 
};
TraceEvent _TRACE_PFLASH_IO_WRITE_EVENT = {
    .id = 0,
    .name = "pflash_io_write",
    .sstate = TRACE_PFLASH_IO_WRITE_ENABLED,
    .dstate = &_TRACE_PFLASH_IO_WRITE_DSTATE 
};
TraceEvent _TRACE_PFLASH_MANUFACTURER_ID_EVENT = {
    .id = 0,
    .name = "pflash_manufacturer_id",
    .sstate = TRACE_PFLASH_MANUFACTURER_ID_ENABLED,
    .dstate = &_TRACE_PFLASH_MANUFACTURER_ID_DSTATE 
};
TraceEvent _TRACE_PFLASH_MODE_READ_ARRAY_EVENT = {
    .id = 0,
    .name = "pflash_mode_read_array",
    .sstate = TRACE_PFLASH_MODE_READ_ARRAY_ENABLED,
    .dstate = &_TRACE_PFLASH_MODE_READ_ARRAY_DSTATE 
};
TraceEvent _TRACE_PFLASH_POSTLOAD_CB_EVENT = {
    .id = 0,
    .name = "pflash_postload_cb",
    .sstate = TRACE_PFLASH_POSTLOAD_CB_ENABLED,
    .dstate = &_TRACE_PFLASH_POSTLOAD_CB_DSTATE 
};
TraceEvent _TRACE_PFLASH_READ_DONE_EVENT = {
    .id = 0,
    .name = "pflash_read_done",
    .sstate = TRACE_PFLASH_READ_DONE_ENABLED,
    .dstate = &_TRACE_PFLASH_READ_DONE_DSTATE 
};
TraceEvent _TRACE_PFLASH_READ_STATUS_EVENT = {
    .id = 0,
    .name = "pflash_read_status",
    .sstate = TRACE_PFLASH_READ_STATUS_ENABLED,
    .dstate = &_TRACE_PFLASH_READ_STATUS_DSTATE 
};
TraceEvent _TRACE_PFLASH_READ_UNKNOWN_STATE_EVENT = {
    .id = 0,
    .name = "pflash_read_unknown_state",
    .sstate = TRACE_PFLASH_READ_UNKNOWN_STATE_ENABLED,
    .dstate = &_TRACE_PFLASH_READ_UNKNOWN_STATE_DSTATE 
};
TraceEvent _TRACE_PFLASH_RESET_EVENT = {
    .id = 0,
    .name = "pflash_reset",
    .sstate = TRACE_PFLASH_RESET_ENABLED,
    .dstate = &_TRACE_PFLASH_RESET_DSTATE 
};
TraceEvent _TRACE_PFLASH_SECTOR_ERASE_START_EVENT = {
    .id = 0,
    .name = "pflash_sector_erase_start",
    .sstate = TRACE_PFLASH_SECTOR_ERASE_START_ENABLED,
    .dstate = &_TRACE_PFLASH_SECTOR_ERASE_START_DSTATE 
};
TraceEvent _TRACE_PFLASH_TIMER_EXPIRED_EVENT = {
    .id = 0,
    .name = "pflash_timer_expired",
    .sstate = TRACE_PFLASH_TIMER_EXPIRED_ENABLED,
    .dstate = &_TRACE_PFLASH_TIMER_EXPIRED_DSTATE 
};
TraceEvent _TRACE_PFLASH_UNLOCK0_FAILED_EVENT = {
    .id = 0,
    .name = "pflash_unlock0_failed",
    .sstate = TRACE_PFLASH_UNLOCK0_FAILED_ENABLED,
    .dstate = &_TRACE_PFLASH_UNLOCK0_FAILED_DSTATE 
};
TraceEvent _TRACE_PFLASH_UNLOCK1_FAILED_EVENT = {
    .id = 0,
    .name = "pflash_unlock1_failed",
    .sstate = TRACE_PFLASH_UNLOCK1_FAILED_ENABLED,
    .dstate = &_TRACE_PFLASH_UNLOCK1_FAILED_DSTATE 
};
TraceEvent _TRACE_PFLASH_UNSUPPORTED_DEVICE_CONFIGURATION_EVENT = {
    .id = 0,
    .name = "pflash_unsupported_device_configuration",
    .sstate = TRACE_PFLASH_UNSUPPORTED_DEVICE_CONFIGURATION_ENABLED,
    .dstate = &_TRACE_PFLASH_UNSUPPORTED_DEVICE_CONFIGURATION_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_EVENT = {
    .id = 0,
    .name = "pflash_write",
    .sstate = TRACE_PFLASH_WRITE_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_BLOCK_START_EVENT = {
    .id = 0,
    .name = "pflash_write_block_start",
    .sstate = TRACE_PFLASH_WRITE_BLOCK_START_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_BLOCK_START_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_BLOCK_FLUSH_EVENT = {
    .id = 0,
    .name = "pflash_write_block_flush",
    .sstate = TRACE_PFLASH_WRITE_BLOCK_FLUSH_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_BLOCK_FLUSH_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_BLOCK_ABORT_EVENT = {
    .id = 0,
    .name = "pflash_write_block_abort",
    .sstate = TRACE_PFLASH_WRITE_BLOCK_ABORT_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_BLOCK_ABORT_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_BLOCK_ERASE_EVENT = {
    .id = 0,
    .name = "pflash_write_block_erase",
    .sstate = TRACE_PFLASH_WRITE_BLOCK_ERASE_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_BLOCK_ERASE_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_FAILED_EVENT = {
    .id = 0,
    .name = "pflash_write_failed",
    .sstate = TRACE_PFLASH_WRITE_FAILED_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_FAILED_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_INVALID_EVENT = {
    .id = 0,
    .name = "pflash_write_invalid",
    .sstate = TRACE_PFLASH_WRITE_INVALID_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_INVALID_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_INVALID_COMMAND_EVENT = {
    .id = 0,
    .name = "pflash_write_invalid_command",
    .sstate = TRACE_PFLASH_WRITE_INVALID_COMMAND_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_INVALID_COMMAND_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_INVALID_STATE_EVENT = {
    .id = 0,
    .name = "pflash_write_invalid_state",
    .sstate = TRACE_PFLASH_WRITE_INVALID_STATE_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_INVALID_STATE_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_START_EVENT = {
    .id = 0,
    .name = "pflash_write_start",
    .sstate = TRACE_PFLASH_WRITE_START_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_START_DSTATE 
};
TraceEvent _TRACE_PFLASH_WRITE_UNKNOWN_EVENT = {
    .id = 0,
    .name = "pflash_write_unknown",
    .sstate = TRACE_PFLASH_WRITE_UNKNOWN_ENABLED,
    .dstate = &_TRACE_PFLASH_WRITE_UNKNOWN_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_REQ_COMPLETE_EVENT = {
    .id = 0,
    .name = "virtio_blk_req_complete",
    .sstate = TRACE_VIRTIO_BLK_REQ_COMPLETE_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_REQ_COMPLETE_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_RW_COMPLETE_EVENT = {
    .id = 0,
    .name = "virtio_blk_rw_complete",
    .sstate = TRACE_VIRTIO_BLK_RW_COMPLETE_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_RW_COMPLETE_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_ZONE_REPORT_COMPLETE_EVENT = {
    .id = 0,
    .name = "virtio_blk_zone_report_complete",
    .sstate = TRACE_VIRTIO_BLK_ZONE_REPORT_COMPLETE_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_ZONE_REPORT_COMPLETE_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_ZONE_MGMT_COMPLETE_EVENT = {
    .id = 0,
    .name = "virtio_blk_zone_mgmt_complete",
    .sstate = TRACE_VIRTIO_BLK_ZONE_MGMT_COMPLETE_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_ZONE_MGMT_COMPLETE_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_ZONE_APPEND_COMPLETE_EVENT = {
    .id = 0,
    .name = "virtio_blk_zone_append_complete",
    .sstate = TRACE_VIRTIO_BLK_ZONE_APPEND_COMPLETE_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_ZONE_APPEND_COMPLETE_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_HANDLE_WRITE_EVENT = {
    .id = 0,
    .name = "virtio_blk_handle_write",
    .sstate = TRACE_VIRTIO_BLK_HANDLE_WRITE_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_HANDLE_WRITE_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_HANDLE_READ_EVENT = {
    .id = 0,
    .name = "virtio_blk_handle_read",
    .sstate = TRACE_VIRTIO_BLK_HANDLE_READ_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_HANDLE_READ_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_SUBMIT_MULTIREQ_EVENT = {
    .id = 0,
    .name = "virtio_blk_submit_multireq",
    .sstate = TRACE_VIRTIO_BLK_SUBMIT_MULTIREQ_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_SUBMIT_MULTIREQ_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_HANDLE_ZONE_REPORT_EVENT = {
    .id = 0,
    .name = "virtio_blk_handle_zone_report",
    .sstate = TRACE_VIRTIO_BLK_HANDLE_ZONE_REPORT_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_HANDLE_ZONE_REPORT_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_HANDLE_ZONE_MGMT_EVENT = {
    .id = 0,
    .name = "virtio_blk_handle_zone_mgmt",
    .sstate = TRACE_VIRTIO_BLK_HANDLE_ZONE_MGMT_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_HANDLE_ZONE_MGMT_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_HANDLE_ZONE_RESET_ALL_EVENT = {
    .id = 0,
    .name = "virtio_blk_handle_zone_reset_all",
    .sstate = TRACE_VIRTIO_BLK_HANDLE_ZONE_RESET_ALL_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_HANDLE_ZONE_RESET_ALL_DSTATE 
};
TraceEvent _TRACE_VIRTIO_BLK_HANDLE_ZONE_APPEND_EVENT = {
    .id = 0,
    .name = "virtio_blk_handle_zone_append",
    .sstate = TRACE_VIRTIO_BLK_HANDLE_ZONE_APPEND_ENABLED,
    .dstate = &_TRACE_VIRTIO_BLK_HANDLE_ZONE_APPEND_DSTATE 
};
TraceEvent _TRACE_HD_GEOMETRY_LCHS_GUESS_EVENT = {
    .id = 0,
    .name = "hd_geometry_lchs_guess",
    .sstate = TRACE_HD_GEOMETRY_LCHS_GUESS_ENABLED,
    .dstate = &_TRACE_HD_GEOMETRY_LCHS_GUESS_DSTATE 
};
TraceEvent _TRACE_HD_GEOMETRY_GUESS_EVENT = {
    .id = 0,
    .name = "hd_geometry_guess",
    .sstate = TRACE_HD_GEOMETRY_GUESS_ENABLED,
    .dstate = &_TRACE_HD_GEOMETRY_GUESS_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_REALIZE_EVENT = {
    .id = 0,
    .name = "xen_block_realize",
    .sstate = TRACE_XEN_BLOCK_REALIZE_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_REALIZE_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_CONNECT_EVENT = {
    .id = 0,
    .name = "xen_block_connect",
    .sstate = TRACE_XEN_BLOCK_CONNECT_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_CONNECT_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_DISCONNECT_EVENT = {
    .id = 0,
    .name = "xen_block_disconnect",
    .sstate = TRACE_XEN_BLOCK_DISCONNECT_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_DISCONNECT_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_UNREALIZE_EVENT = {
    .id = 0,
    .name = "xen_block_unrealize",
    .sstate = TRACE_XEN_BLOCK_UNREALIZE_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_UNREALIZE_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_SIZE_EVENT = {
    .id = 0,
    .name = "xen_block_size",
    .sstate = TRACE_XEN_BLOCK_SIZE_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_SIZE_DSTATE 
};
TraceEvent _TRACE_XEN_DISK_REALIZE_EVENT = {
    .id = 0,
    .name = "xen_disk_realize",
    .sstate = TRACE_XEN_DISK_REALIZE_ENABLED,
    .dstate = &_TRACE_XEN_DISK_REALIZE_DSTATE 
};
TraceEvent _TRACE_XEN_DISK_UNREALIZE_EVENT = {
    .id = 0,
    .name = "xen_disk_unrealize",
    .sstate = TRACE_XEN_DISK_UNREALIZE_ENABLED,
    .dstate = &_TRACE_XEN_DISK_UNREALIZE_DSTATE 
};
TraceEvent _TRACE_XEN_CDROM_REALIZE_EVENT = {
    .id = 0,
    .name = "xen_cdrom_realize",
    .sstate = TRACE_XEN_CDROM_REALIZE_ENABLED,
    .dstate = &_TRACE_XEN_CDROM_REALIZE_DSTATE 
};
TraceEvent _TRACE_XEN_CDROM_UNREALIZE_EVENT = {
    .id = 0,
    .name = "xen_cdrom_unrealize",
    .sstate = TRACE_XEN_CDROM_UNREALIZE_ENABLED,
    .dstate = &_TRACE_XEN_CDROM_UNREALIZE_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_BLOCKDEV_ADD_EVENT = {
    .id = 0,
    .name = "xen_block_blockdev_add",
    .sstate = TRACE_XEN_BLOCK_BLOCKDEV_ADD_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_BLOCKDEV_ADD_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_BLOCKDEV_DEL_EVENT = {
    .id = 0,
    .name = "xen_block_blockdev_del",
    .sstate = TRACE_XEN_BLOCK_BLOCKDEV_DEL_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_BLOCKDEV_DEL_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_DEVICE_CREATE_EVENT = {
    .id = 0,
    .name = "xen_block_device_create",
    .sstate = TRACE_XEN_BLOCK_DEVICE_CREATE_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_DEVICE_CREATE_DSTATE 
};
TraceEvent _TRACE_XEN_BLOCK_DEVICE_DESTROY_EVENT = {
    .id = 0,
    .name = "xen_block_device_destroy",
    .sstate = TRACE_XEN_BLOCK_DEVICE_DESTROY_ENABLED,
    .dstate = &_TRACE_XEN_BLOCK_DEVICE_DESTROY_DSTATE 
};
TraceEvent _TRACE_M25P80_FLASH_ERASE_EVENT = {
    .id = 0,
    .name = "m25p80_flash_erase",
    .sstate = TRACE_M25P80_FLASH_ERASE_ENABLED,
    .dstate = &_TRACE_M25P80_FLASH_ERASE_DSTATE 
};
TraceEvent _TRACE_M25P80_PROGRAMMING_ZERO_TO_ONE_EVENT = {
    .id = 0,
    .name = "m25p80_programming_zero_to_one",
    .sstate = TRACE_M25P80_PROGRAMMING_ZERO_TO_ONE_ENABLED,
    .dstate = &_TRACE_M25P80_PROGRAMMING_ZERO_TO_ONE_DSTATE 
};
TraceEvent _TRACE_M25P80_RESET_DONE_EVENT = {
    .id = 0,
    .name = "m25p80_reset_done",
    .sstate = TRACE_M25P80_RESET_DONE_ENABLED,
    .dstate = &_TRACE_M25P80_RESET_DONE_DSTATE 
};
TraceEvent _TRACE_M25P80_COMMAND_DECODED_EVENT = {
    .id = 0,
    .name = "m25p80_command_decoded",
    .sstate = TRACE_M25P80_COMMAND_DECODED_ENABLED,
    .dstate = &_TRACE_M25P80_COMMAND_DECODED_DSTATE 
};
TraceEvent _TRACE_M25P80_COMPLETE_COLLECTING_EVENT = {
    .id = 0,
    .name = "m25p80_complete_collecting",
    .sstate = TRACE_M25P80_COMPLETE_COLLECTING_ENABLED,
    .dstate = &_TRACE_M25P80_COMPLETE_COLLECTING_DSTATE 
};
TraceEvent _TRACE_M25P80_POPULATED_JEDEC_EVENT = {
    .id = 0,
    .name = "m25p80_populated_jedec",
    .sstate = TRACE_M25P80_POPULATED_JEDEC_ENABLED,
    .dstate = &_TRACE_M25P80_POPULATED_JEDEC_DSTATE 
};
TraceEvent _TRACE_M25P80_CHIP_ERASE_EVENT = {
    .id = 0,
    .name = "m25p80_chip_erase",
    .sstate = TRACE_M25P80_CHIP_ERASE_ENABLED,
    .dstate = &_TRACE_M25P80_CHIP_ERASE_DSTATE 
};
TraceEvent _TRACE_M25P80_SELECT_EVENT = {
    .id = 0,
    .name = "m25p80_select",
    .sstate = TRACE_M25P80_SELECT_ENABLED,
    .dstate = &_TRACE_M25P80_SELECT_DSTATE 
};
TraceEvent _TRACE_M25P80_PAGE_PROGRAM_EVENT = {
    .id = 0,
    .name = "m25p80_page_program",
    .sstate = TRACE_M25P80_PAGE_PROGRAM_ENABLED,
    .dstate = &_TRACE_M25P80_PAGE_PROGRAM_DSTATE 
};
TraceEvent _TRACE_M25P80_TRANSFER_EVENT = {
    .id = 0,
    .name = "m25p80_transfer",
    .sstate = TRACE_M25P80_TRANSFER_ENABLED,
    .dstate = &_TRACE_M25P80_TRANSFER_DSTATE 
};
TraceEvent _TRACE_M25P80_READ_BYTE_EVENT = {
    .id = 0,
    .name = "m25p80_read_byte",
    .sstate = TRACE_M25P80_READ_BYTE_ENABLED,
    .dstate = &_TRACE_M25P80_READ_BYTE_DSTATE 
};
TraceEvent _TRACE_M25P80_READ_DATA_EVENT = {
    .id = 0,
    .name = "m25p80_read_data",
    .sstate = TRACE_M25P80_READ_DATA_ENABLED,
    .dstate = &_TRACE_M25P80_READ_DATA_DSTATE 
};
TraceEvent _TRACE_M25P80_READ_SFDP_EVENT = {
    .id = 0,
    .name = "m25p80_read_sfdp",
    .sstate = TRACE_M25P80_READ_SFDP_ENABLED,
    .dstate = &_TRACE_M25P80_READ_SFDP_DSTATE 
};
TraceEvent _TRACE_M25P80_BINDING_EVENT = {
    .id = 0,
    .name = "m25p80_binding",
    .sstate = TRACE_M25P80_BINDING_ENABLED,
    .dstate = &_TRACE_M25P80_BINDING_DSTATE 
};
TraceEvent _TRACE_M25P80_BINDING_NO_BDRV_EVENT = {
    .id = 0,
    .name = "m25p80_binding_no_bdrv",
    .sstate = TRACE_M25P80_BINDING_NO_BDRV_ENABLED,
    .dstate = &_TRACE_M25P80_BINDING_NO_BDRV_DSTATE 
};
TraceEvent _TRACE_SWIM_ISMCTRL_READ_EVENT = {
    .id = 0,
    .name = "swim_ismctrl_read",
    .sstate = TRACE_SWIM_ISMCTRL_READ_ENABLED,
    .dstate = &_TRACE_SWIM_ISMCTRL_READ_DSTATE 
};
TraceEvent _TRACE_SWIM_ISMCTRL_WRITE_EVENT = {
    .id = 0,
    .name = "swim_ismctrl_write",
    .sstate = TRACE_SWIM_ISMCTRL_WRITE_ENABLED,
    .dstate = &_TRACE_SWIM_ISMCTRL_WRITE_DSTATE 
};
TraceEvent _TRACE_SWIM_IWMCTRL_READ_EVENT = {
    .id = 0,
    .name = "swim_iwmctrl_read",
    .sstate = TRACE_SWIM_IWMCTRL_READ_ENABLED,
    .dstate = &_TRACE_SWIM_IWMCTRL_READ_DSTATE 
};
TraceEvent _TRACE_SWIM_IWMCTRL_WRITE_EVENT = {
    .id = 0,
    .name = "swim_iwmctrl_write",
    .sstate = TRACE_SWIM_IWMCTRL_WRITE_ENABLED,
    .dstate = &_TRACE_SWIM_IWMCTRL_WRITE_DSTATE 
};
TraceEvent _TRACE_SWIM_SWITCH_TO_ISM_EVENT = {
    .id = 0,
    .name = "swim_switch_to_ism",
    .sstate = TRACE_SWIM_SWITCH_TO_ISM_ENABLED,
    .dstate = &_TRACE_SWIM_SWITCH_TO_ISM_DSTATE 
};
TraceEvent _TRACE_SWIM_SWITCH_TO_IWM_EVENT = {
    .id = 0,
    .name = "swim_switch_to_iwm",
    .sstate = TRACE_SWIM_SWITCH_TO_IWM_ENABLED,
    .dstate = &_TRACE_SWIM_SWITCH_TO_IWM_DSTATE 
};
TraceEvent _TRACE_UFSHC_TR_SEND_EVENT = {
    .id = 0,
    .name = "ufshc_tr_send",
    .sstate = TRACE_UFSHC_TR_SEND_ENABLED,
    .dstate = &_TRACE_UFSHC_TR_SEND_DSTATE 
};
TraceEvent _TRACE_UFSHC_TR_RECV_EVENT = {
    .id = 0,
    .name = "ufshc_tr_recv",
    .sstate = TRACE_UFSHC_TR_RECV_ENABLED,
    .dstate = &_TRACE_UFSHC_TR_RECV_DSTATE 
};
TraceEvent _TRACE_UFSHC_TMR_SEND_EVENT = {
    .id = 0,
    .name = "ufshc_tmr_send",
    .sstate = TRACE_UFSHC_TMR_SEND_ENABLED,
    .dstate = &_TRACE_UFSHC_TMR_SEND_DSTATE 
};
TraceEvent _TRACE_UFSHC_SGL_LIST_EVENT = {
    .id = 0,
    .name = "ufshc_sgl_list",
    .sstate = TRACE_UFSHC_SGL_LIST_ENABLED,
    .dstate = &_TRACE_UFSHC_SGL_LIST_DSTATE 
};
TraceEvent _TRACE_UFSHC_SGL_LIST2_EVENT = {
    .id = 0,
    .name = "ufshc_sgl_list2",
    .sstate = TRACE_UFSHC_SGL_LIST2_ENABLED,
    .dstate = &_TRACE_UFSHC_SGL_LIST2_DSTATE 
};
TraceEvent _TRACE_UFSDEV_RECV_UPIU_EVENT = {
    .id = 0,
    .name = "ufsdev_recv_upiu",
    .sstate = TRACE_UFSDEV_RECV_UPIU_ENABLED,
    .dstate = &_TRACE_UFSDEV_RECV_UPIU_DSTATE 
};
TraceEvent _TRACE_UFSDEV_SEND_UPIU_EVENT = {
    .id = 0,
    .name = "ufsdev_send_upiu",
    .sstate = TRACE_UFSDEV_SEND_UPIU_ENABLED,
    .dstate = &_TRACE_UFSDEV_SEND_UPIU_DSTATE 
};
TraceEvent _TRACE_UFSDEV_DESC_READ_EVENT = {
    .id = 0,
    .name = "ufsdev_desc_read",
    .sstate = TRACE_UFSDEV_DESC_READ_ENABLED,
    .dstate = &_TRACE_UFSDEV_DESC_READ_DSTATE 
};
TraceEvent _TRACE_UFSDEV_WLUN_CMD_EVENT = {
    .id = 0,
    .name = "ufsdev_wlun_cmd",
    .sstate = TRACE_UFSDEV_WLUN_CMD_ENABLED,
    .dstate = &_TRACE_UFSDEV_WLUN_CMD_DSTATE 
};
TraceEvent _TRACE_UNIPRO_DME_CMD_EVENT = {
    .id = 0,
    .name = "unipro_dme_cmd",
    .sstate = TRACE_UNIPRO_DME_CMD_ENABLED,
    .dstate = &_TRACE_UNIPRO_DME_CMD_DSTATE 
};
TraceEvent _TRACE_UNIPRO_OFFSET_INVALID_EVENT = {
    .id = 0,
    .name = "unipro_offset_invalid",
    .sstate = TRACE_UNIPRO_OFFSET_INVALID_ENABLED,
    .dstate = &_TRACE_UNIPRO_OFFSET_INVALID_DSTATE 
};
TraceEvent *hw_block_trace_events[] = {
    &_TRACE_FDC_IOPORT_READ_EVENT,
    &_TRACE_FDC_IOPORT_WRITE_EVENT,
    &_TRACE_FDCTRL_TC_PULSE_EVENT,
    &_TRACE_PFLASH_CHIP_ERASE_INVALID_EVENT,
    &_TRACE_PFLASH_CHIP_ERASE_START_EVENT,
    &_TRACE_PFLASH_DATA_READ_EVENT,
    &_TRACE_PFLASH_DATA_WRITE_EVENT,
    &_TRACE_PFLASH_DATA_WRITE_BLOCK_EVENT,
    &_TRACE_PFLASH_DEVICE_ID_EVENT,
    &_TRACE_PFLASH_DEVICE_INFO_EVENT,
    &_TRACE_PFLASH_ERASE_COMPLETE_EVENT,
    &_TRACE_PFLASH_ERASE_TIMEOUT_EVENT,
    &_TRACE_PFLASH_IO_READ_EVENT,
    &_TRACE_PFLASH_IO_WRITE_EVENT,
    &_TRACE_PFLASH_MANUFACTURER_ID_EVENT,
    &_TRACE_PFLASH_MODE_READ_ARRAY_EVENT,
    &_TRACE_PFLASH_POSTLOAD_CB_EVENT,
    &_TRACE_PFLASH_READ_DONE_EVENT,
    &_TRACE_PFLASH_READ_STATUS_EVENT,
    &_TRACE_PFLASH_READ_UNKNOWN_STATE_EVENT,
    &_TRACE_PFLASH_RESET_EVENT,
    &_TRACE_PFLASH_SECTOR_ERASE_START_EVENT,
    &_TRACE_PFLASH_TIMER_EXPIRED_EVENT,
    &_TRACE_PFLASH_UNLOCK0_FAILED_EVENT,
    &_TRACE_PFLASH_UNLOCK1_FAILED_EVENT,
    &_TRACE_PFLASH_UNSUPPORTED_DEVICE_CONFIGURATION_EVENT,
    &_TRACE_PFLASH_WRITE_EVENT,
    &_TRACE_PFLASH_WRITE_BLOCK_START_EVENT,
    &_TRACE_PFLASH_WRITE_BLOCK_FLUSH_EVENT,
    &_TRACE_PFLASH_WRITE_BLOCK_ABORT_EVENT,
    &_TRACE_PFLASH_WRITE_BLOCK_ERASE_EVENT,
    &_TRACE_PFLASH_WRITE_FAILED_EVENT,
    &_TRACE_PFLASH_WRITE_INVALID_EVENT,
    &_TRACE_PFLASH_WRITE_INVALID_COMMAND_EVENT,
    &_TRACE_PFLASH_WRITE_INVALID_STATE_EVENT,
    &_TRACE_PFLASH_WRITE_START_EVENT,
    &_TRACE_PFLASH_WRITE_UNKNOWN_EVENT,
    &_TRACE_VIRTIO_BLK_REQ_COMPLETE_EVENT,
    &_TRACE_VIRTIO_BLK_RW_COMPLETE_EVENT,
    &_TRACE_VIRTIO_BLK_ZONE_REPORT_COMPLETE_EVENT,
    &_TRACE_VIRTIO_BLK_ZONE_MGMT_COMPLETE_EVENT,
    &_TRACE_VIRTIO_BLK_ZONE_APPEND_COMPLETE_EVENT,
    &_TRACE_VIRTIO_BLK_HANDLE_WRITE_EVENT,
    &_TRACE_VIRTIO_BLK_HANDLE_READ_EVENT,
    &_TRACE_VIRTIO_BLK_SUBMIT_MULTIREQ_EVENT,
    &_TRACE_VIRTIO_BLK_HANDLE_ZONE_REPORT_EVENT,
    &_TRACE_VIRTIO_BLK_HANDLE_ZONE_MGMT_EVENT,
    &_TRACE_VIRTIO_BLK_HANDLE_ZONE_RESET_ALL_EVENT,
    &_TRACE_VIRTIO_BLK_HANDLE_ZONE_APPEND_EVENT,
    &_TRACE_HD_GEOMETRY_LCHS_GUESS_EVENT,
    &_TRACE_HD_GEOMETRY_GUESS_EVENT,
    &_TRACE_XEN_BLOCK_REALIZE_EVENT,
    &_TRACE_XEN_BLOCK_CONNECT_EVENT,
    &_TRACE_XEN_BLOCK_DISCONNECT_EVENT,
    &_TRACE_XEN_BLOCK_UNREALIZE_EVENT,
    &_TRACE_XEN_BLOCK_SIZE_EVENT,
    &_TRACE_XEN_DISK_REALIZE_EVENT,
    &_TRACE_XEN_DISK_UNREALIZE_EVENT,
    &_TRACE_XEN_CDROM_REALIZE_EVENT,
    &_TRACE_XEN_CDROM_UNREALIZE_EVENT,
    &_TRACE_XEN_BLOCK_BLOCKDEV_ADD_EVENT,
    &_TRACE_XEN_BLOCK_BLOCKDEV_DEL_EVENT,
    &_TRACE_XEN_BLOCK_DEVICE_CREATE_EVENT,
    &_TRACE_XEN_BLOCK_DEVICE_DESTROY_EVENT,
    &_TRACE_M25P80_FLASH_ERASE_EVENT,
    &_TRACE_M25P80_PROGRAMMING_ZERO_TO_ONE_EVENT,
    &_TRACE_M25P80_RESET_DONE_EVENT,
    &_TRACE_M25P80_COMMAND_DECODED_EVENT,
    &_TRACE_M25P80_COMPLETE_COLLECTING_EVENT,
    &_TRACE_M25P80_POPULATED_JEDEC_EVENT,
    &_TRACE_M25P80_CHIP_ERASE_EVENT,
    &_TRACE_M25P80_SELECT_EVENT,
    &_TRACE_M25P80_PAGE_PROGRAM_EVENT,
    &_TRACE_M25P80_TRANSFER_EVENT,
    &_TRACE_M25P80_READ_BYTE_EVENT,
    &_TRACE_M25P80_READ_DATA_EVENT,
    &_TRACE_M25P80_READ_SFDP_EVENT,
    &_TRACE_M25P80_BINDING_EVENT,
    &_TRACE_M25P80_BINDING_NO_BDRV_EVENT,
    &_TRACE_SWIM_ISMCTRL_READ_EVENT,
    &_TRACE_SWIM_ISMCTRL_WRITE_EVENT,
    &_TRACE_SWIM_IWMCTRL_READ_EVENT,
    &_TRACE_SWIM_IWMCTRL_WRITE_EVENT,
    &_TRACE_SWIM_SWITCH_TO_ISM_EVENT,
    &_TRACE_SWIM_SWITCH_TO_IWM_EVENT,
    &_TRACE_UFSHC_TR_SEND_EVENT,
    &_TRACE_UFSHC_TR_RECV_EVENT,
    &_TRACE_UFSHC_TMR_SEND_EVENT,
    &_TRACE_UFSHC_SGL_LIST_EVENT,
    &_TRACE_UFSHC_SGL_LIST2_EVENT,
    &_TRACE_UFSDEV_RECV_UPIU_EVENT,
    &_TRACE_UFSDEV_SEND_UPIU_EVENT,
    &_TRACE_UFSDEV_DESC_READ_EVENT,
    &_TRACE_UFSDEV_WLUN_CMD_EVENT,
    &_TRACE_UNIPRO_DME_CMD_EVENT,
    &_TRACE_UNIPRO_OFFSET_INVALID_EVENT,
  NULL,
};

static void trace_hw_block_register_events(void)
{
    trace_event_register_group(hw_block_trace_events);
}
trace_init(trace_hw_block_register_events)
