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

#ifndef TRACE_BLOCK_GENERATED_TRACERS_H
#define TRACE_BLOCK_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_BDRV_OPEN_COMMON_EVENT;
extern TraceEvent _TRACE_BDRV_LOCK_MEDIUM_EVENT;
extern TraceEvent _TRACE_BLK_CO_PREADV_EVENT;
extern TraceEvent _TRACE_BLK_CO_PWRITEV_EVENT;
extern TraceEvent _TRACE_BLK_ROOT_ATTACH_EVENT;
extern TraceEvent _TRACE_BLK_ROOT_DETACH_EVENT;
extern TraceEvent _TRACE_BDRV_CO_PREADV_PART_EVENT;
extern TraceEvent _TRACE_BDRV_CO_PWRITEV_PART_EVENT;
extern TraceEvent _TRACE_BDRV_CO_PWRITE_ZEROES_EVENT;
extern TraceEvent _TRACE_BDRV_CO_DO_COPY_ON_READV_EVENT;
extern TraceEvent _TRACE_BDRV_CO_COPY_RANGE_FROM_EVENT;
extern TraceEvent _TRACE_BDRV_CO_COPY_RANGE_TO_EVENT;
extern TraceEvent _TRACE_STREAM_ONE_ITERATION_EVENT;
extern TraceEvent _TRACE_STREAM_START_EVENT;
extern TraceEvent _TRACE_COMMIT_ONE_ITERATION_EVENT;
extern TraceEvent _TRACE_COMMIT_START_EVENT;
extern TraceEvent _TRACE_MIRROR_START_EVENT;
extern TraceEvent _TRACE_MIRROR_RESTART_ITER_EVENT;
extern TraceEvent _TRACE_MIRROR_BEFORE_FLUSH_EVENT;
extern TraceEvent _TRACE_MIRROR_BEFORE_DRAIN_EVENT;
extern TraceEvent _TRACE_MIRROR_BEFORE_SLEEP_EVENT;
extern TraceEvent _TRACE_MIRROR_ONE_ITERATION_EVENT;
extern TraceEvent _TRACE_MIRROR_ITERATION_DONE_EVENT;
extern TraceEvent _TRACE_MIRROR_YIELD_EVENT;
extern TraceEvent _TRACE_MIRROR_YIELD_IN_FLIGHT_EVENT;
extern TraceEvent _TRACE_BACKUP_DO_COW_ENTER_EVENT;
extern TraceEvent _TRACE_BACKUP_DO_COW_RETURN_EVENT;
extern TraceEvent _TRACE_BLOCK_COPY_SKIP_RANGE_EVENT;
extern TraceEvent _TRACE_BLOCK_COPY_PROCESS_EVENT;
extern TraceEvent _TRACE_BLOCK_COPY_COPY_RANGE_FAIL_EVENT;
extern TraceEvent _TRACE_BLOCK_COPY_READ_FAIL_EVENT;
extern TraceEvent _TRACE_BLOCK_COPY_WRITE_FAIL_EVENT;
extern TraceEvent _TRACE_BLOCK_COPY_WRITE_ZEROES_FAIL_EVENT;
extern TraceEvent _TRACE_QMP_BLOCK_JOB_CANCEL_EVENT;
extern TraceEvent _TRACE_QMP_BLOCK_JOB_PAUSE_EVENT;
extern TraceEvent _TRACE_QMP_BLOCK_JOB_RESUME_EVENT;
extern TraceEvent _TRACE_QMP_BLOCK_JOB_COMPLETE_EVENT;
extern TraceEvent _TRACE_QMP_BLOCK_JOB_FINALIZE_EVENT;
extern TraceEvent _TRACE_QMP_BLOCK_JOB_DISMISS_EVENT;
extern TraceEvent _TRACE_QMP_BLOCK_STREAM_EVENT;
extern TraceEvent _TRACE_FILE_PAIO_SUBMIT_EVENT;
extern TraceEvent _TRACE_LURING_CQE_HANDLER_EVENT;
extern TraceEvent _TRACE_LURING_CO_SUBMIT_EVENT;
extern TraceEvent _TRACE_LURING_RESUBMIT_SHORT_READ_EVENT;
extern TraceEvent _TRACE_QCOW2_ADD_TASK_EVENT;
extern TraceEvent _TRACE_QCOW2_WRITEV_START_REQ_EVENT;
extern TraceEvent _TRACE_QCOW2_WRITEV_DONE_REQ_EVENT;
extern TraceEvent _TRACE_QCOW2_WRITEV_START_PART_EVENT;
extern TraceEvent _TRACE_QCOW2_WRITEV_DONE_PART_EVENT;
extern TraceEvent _TRACE_QCOW2_WRITEV_DATA_EVENT;
extern TraceEvent _TRACE_QCOW2_PWRITE_ZEROES_START_REQ_EVENT;
extern TraceEvent _TRACE_QCOW2_PWRITE_ZEROES_EVENT;
extern TraceEvent _TRACE_QCOW2_SKIP_COW_EVENT;
extern TraceEvent _TRACE_QCOW2_ALLOC_CLUSTERS_OFFSET_EVENT;
extern TraceEvent _TRACE_QCOW2_HANDLE_COPIED_EVENT;
extern TraceEvent _TRACE_QCOW2_HANDLE_ALLOC_EVENT;
extern TraceEvent _TRACE_QCOW2_DO_ALLOC_CLUSTERS_OFFSET_EVENT;
extern TraceEvent _TRACE_QCOW2_CLUSTER_ALLOC_PHYS_EVENT;
extern TraceEvent _TRACE_QCOW2_CLUSTER_LINK_L2_EVENT;
extern TraceEvent _TRACE_QCOW2_L2_ALLOCATE_EVENT;
extern TraceEvent _TRACE_QCOW2_L2_ALLOCATE_GET_EMPTY_EVENT;
extern TraceEvent _TRACE_QCOW2_L2_ALLOCATE_WRITE_L2_EVENT;
extern TraceEvent _TRACE_QCOW2_L2_ALLOCATE_WRITE_L1_EVENT;
extern TraceEvent _TRACE_QCOW2_L2_ALLOCATE_DONE_EVENT;
extern TraceEvent _TRACE_QCOW2_CACHE_GET_EVENT;
extern TraceEvent _TRACE_QCOW2_CACHE_GET_REPLACE_ENTRY_EVENT;
extern TraceEvent _TRACE_QCOW2_CACHE_GET_READ_EVENT;
extern TraceEvent _TRACE_QCOW2_CACHE_GET_DONE_EVENT;
extern TraceEvent _TRACE_QCOW2_CACHE_FLUSH_EVENT;
extern TraceEvent _TRACE_QCOW2_CACHE_ENTRY_FLUSH_EVENT;
extern TraceEvent _TRACE_QCOW2_PROCESS_DISCARDS_FAILED_REGION_EVENT;
extern TraceEvent _TRACE_QED_ALLOC_L2_CACHE_ENTRY_EVENT;
extern TraceEvent _TRACE_QED_UNREF_L2_CACHE_ENTRY_EVENT;
extern TraceEvent _TRACE_QED_FIND_L2_CACHE_ENTRY_EVENT;
extern TraceEvent _TRACE_QED_READ_TABLE_EVENT;
extern TraceEvent _TRACE_QED_READ_TABLE_CB_EVENT;
extern TraceEvent _TRACE_QED_WRITE_TABLE_EVENT;
extern TraceEvent _TRACE_QED_WRITE_TABLE_CB_EVENT;
extern TraceEvent _TRACE_QED_NEED_CHECK_TIMER_CB_EVENT;
extern TraceEvent _TRACE_QED_START_NEED_CHECK_TIMER_EVENT;
extern TraceEvent _TRACE_QED_CANCEL_NEED_CHECK_TIMER_EVENT;
extern TraceEvent _TRACE_QED_AIO_COMPLETE_EVENT;
extern TraceEvent _TRACE_QED_AIO_SETUP_EVENT;
extern TraceEvent _TRACE_QED_AIO_NEXT_IO_EVENT;
extern TraceEvent _TRACE_QED_AIO_READ_DATA_EVENT;
extern TraceEvent _TRACE_QED_AIO_WRITE_DATA_EVENT;
extern TraceEvent _TRACE_QED_AIO_WRITE_PREFILL_EVENT;
extern TraceEvent _TRACE_QED_AIO_WRITE_POSTFILL_EVENT;
extern TraceEvent _TRACE_QED_AIO_WRITE_MAIN_EVENT;
extern TraceEvent _TRACE_NVME_CONTROLLER_CAPABILITY_RAW_EVENT;
extern TraceEvent _TRACE_NVME_CONTROLLER_CAPABILITY_EVENT;
extern TraceEvent _TRACE_NVME_CONTROLLER_SPEC_VERSION_EVENT;
extern TraceEvent _TRACE_NVME_KICK_EVENT;
extern TraceEvent _TRACE_NVME_DMA_FLUSH_QUEUE_WAIT_EVENT;
extern TraceEvent _TRACE_NVME_ERROR_EVENT;
extern TraceEvent _TRACE_NVME_PROCESS_COMPLETION_EVENT;
extern TraceEvent _TRACE_NVME_COMPLETE_COMMAND_EVENT;
extern TraceEvent _TRACE_NVME_SUBMIT_COMMAND_EVENT;
extern TraceEvent _TRACE_NVME_SUBMIT_COMMAND_RAW_EVENT;
extern TraceEvent _TRACE_NVME_HANDLE_EVENT_EVENT;
extern TraceEvent _TRACE_NVME_POLL_QUEUE_EVENT;
extern TraceEvent _TRACE_NVME_PRW_ALIGNED_EVENT;
extern TraceEvent _TRACE_NVME_WRITE_ZEROES_EVENT;
extern TraceEvent _TRACE_NVME_QIOV_UNALIGNED_EVENT;
extern TraceEvent _TRACE_NVME_PRW_BUFFERED_EVENT;
extern TraceEvent _TRACE_NVME_RW_DONE_EVENT;
extern TraceEvent _TRACE_NVME_DSM_EVENT;
extern TraceEvent _TRACE_NVME_DSM_DONE_EVENT;
extern TraceEvent _TRACE_NVME_DMA_MAP_FLUSH_EVENT;
extern TraceEvent _TRACE_NVME_FREE_REQ_QUEUE_WAIT_EVENT;
extern TraceEvent _TRACE_NVME_CREATE_QUEUE_PAIR_EVENT;
extern TraceEvent _TRACE_NVME_FREE_QUEUE_PAIR_EVENT;
extern TraceEvent _TRACE_NVME_CMD_MAP_QIOV_EVENT;
extern TraceEvent _TRACE_NVME_CMD_MAP_QIOV_PAGES_EVENT;
extern TraceEvent _TRACE_NVME_CMD_MAP_QIOV_IOV_EVENT;
extern TraceEvent _TRACE_ISCSI_XCOPY_EVENT;
extern TraceEvent _TRACE_NBD_PARSE_BLOCKSTATUS_COMPLIANCE_EVENT;
extern TraceEvent _TRACE_NBD_STRUCTURED_READ_COMPLIANCE_EVENT;
extern TraceEvent _TRACE_NBD_EXTENDED_HEADERS_COMPLIANCE_EVENT;
extern TraceEvent _TRACE_NBD_READ_REPLY_ENTRY_FAIL_EVENT;
extern TraceEvent _TRACE_NBD_CO_REQUEST_FAIL_EVENT;
extern TraceEvent _TRACE_NBD_CLIENT_HANDSHAKE_EVENT;
extern TraceEvent _TRACE_NBD_CLIENT_HANDSHAKE_SUCCESS_EVENT;
extern TraceEvent _TRACE_NBD_RECONNECT_ATTEMPT_EVENT;
extern TraceEvent _TRACE_NBD_RECONNECT_ATTEMPT_RESULT_EVENT;
extern TraceEvent _TRACE_SSH_RESTART_COROUTINE_EVENT;
extern TraceEvent _TRACE_SSH_FLUSH_EVENT;
extern TraceEvent _TRACE_SSH_CHECK_HOST_KEY_KNOWNHOSTS_EVENT;
extern TraceEvent _TRACE_SSH_CONNECT_TO_SSH_EVENT;
extern TraceEvent _TRACE_SSH_CO_YIELD_EVENT;
extern TraceEvent _TRACE_SSH_CO_YIELD_BACK_EVENT;
extern TraceEvent _TRACE_SSH_GETLENGTH_EVENT;
extern TraceEvent _TRACE_SSH_CO_CREATE_OPTS_EVENT;
extern TraceEvent _TRACE_SSH_READ_EVENT;
extern TraceEvent _TRACE_SSH_READ_BUF_EVENT;
extern TraceEvent _TRACE_SSH_READ_RETURN_EVENT;
extern TraceEvent _TRACE_SSH_WRITE_EVENT;
extern TraceEvent _TRACE_SSH_WRITE_BUF_EVENT;
extern TraceEvent _TRACE_SSH_WRITE_RETURN_EVENT;
extern TraceEvent _TRACE_SSH_SEEK_EVENT;
extern TraceEvent _TRACE_SSH_AUTH_METHODS_EVENT;
extern TraceEvent _TRACE_SSH_SERVER_STATUS_EVENT;
extern TraceEvent _TRACE_CURL_TIMER_CB_EVENT;
extern TraceEvent _TRACE_CURL_SOCK_CB_EVENT;
extern TraceEvent _TRACE_CURL_READ_CB_EVENT;
extern TraceEvent _TRACE_CURL_OPEN_EVENT;
extern TraceEvent _TRACE_CURL_OPEN_SIZE_EVENT;
extern TraceEvent _TRACE_CURL_SETUP_PREADV_EVENT;
extern TraceEvent _TRACE_CURL_CLOSE_EVENT;
extern TraceEvent _TRACE_FILE_COPY_FILE_RANGE_EVENT;
extern TraceEvent _TRACE_FILE_FINDEJECTABLEOPTICALMEDIA_EVENT;
extern TraceEvent _TRACE_FILE_SETUP_CDROM_EVENT;
extern TraceEvent _TRACE_FILE_HDEV_IS_SG_EVENT;
extern TraceEvent _TRACE_FILE_FLUSH_FDATASYNC_FAILED_EVENT;
extern TraceEvent _TRACE_ZBD_ZONE_REPORT_EVENT;
extern TraceEvent _TRACE_ZBD_ZONE_MGMT_EVENT;
extern TraceEvent _TRACE_ZBD_ZONE_APPEND_EVENT;
extern TraceEvent _TRACE_ZBD_ZONE_APPEND_COMPLETE_EVENT;
extern TraceEvent _TRACE_SFTP_ERROR_EVENT;
extern uint16_t _TRACE_BDRV_OPEN_COMMON_DSTATE;
extern uint16_t _TRACE_BDRV_LOCK_MEDIUM_DSTATE;
extern uint16_t _TRACE_BLK_CO_PREADV_DSTATE;
extern uint16_t _TRACE_BLK_CO_PWRITEV_DSTATE;
extern uint16_t _TRACE_BLK_ROOT_ATTACH_DSTATE;
extern uint16_t _TRACE_BLK_ROOT_DETACH_DSTATE;
extern uint16_t _TRACE_BDRV_CO_PREADV_PART_DSTATE;
extern uint16_t _TRACE_BDRV_CO_PWRITEV_PART_DSTATE;
extern uint16_t _TRACE_BDRV_CO_PWRITE_ZEROES_DSTATE;
extern uint16_t _TRACE_BDRV_CO_DO_COPY_ON_READV_DSTATE;
extern uint16_t _TRACE_BDRV_CO_COPY_RANGE_FROM_DSTATE;
extern uint16_t _TRACE_BDRV_CO_COPY_RANGE_TO_DSTATE;
extern uint16_t _TRACE_STREAM_ONE_ITERATION_DSTATE;
extern uint16_t _TRACE_STREAM_START_DSTATE;
extern uint16_t _TRACE_COMMIT_ONE_ITERATION_DSTATE;
extern uint16_t _TRACE_COMMIT_START_DSTATE;
extern uint16_t _TRACE_MIRROR_START_DSTATE;
extern uint16_t _TRACE_MIRROR_RESTART_ITER_DSTATE;
extern uint16_t _TRACE_MIRROR_BEFORE_FLUSH_DSTATE;
extern uint16_t _TRACE_MIRROR_BEFORE_DRAIN_DSTATE;
extern uint16_t _TRACE_MIRROR_BEFORE_SLEEP_DSTATE;
extern uint16_t _TRACE_MIRROR_ONE_ITERATION_DSTATE;
extern uint16_t _TRACE_MIRROR_ITERATION_DONE_DSTATE;
extern uint16_t _TRACE_MIRROR_YIELD_DSTATE;
extern uint16_t _TRACE_MIRROR_YIELD_IN_FLIGHT_DSTATE;
extern uint16_t _TRACE_BACKUP_DO_COW_ENTER_DSTATE;
extern uint16_t _TRACE_BACKUP_DO_COW_RETURN_DSTATE;
extern uint16_t _TRACE_BLOCK_COPY_SKIP_RANGE_DSTATE;
extern uint16_t _TRACE_BLOCK_COPY_PROCESS_DSTATE;
extern uint16_t _TRACE_BLOCK_COPY_COPY_RANGE_FAIL_DSTATE;
extern uint16_t _TRACE_BLOCK_COPY_READ_FAIL_DSTATE;
extern uint16_t _TRACE_BLOCK_COPY_WRITE_FAIL_DSTATE;
extern uint16_t _TRACE_BLOCK_COPY_WRITE_ZEROES_FAIL_DSTATE;
extern uint16_t _TRACE_QMP_BLOCK_JOB_CANCEL_DSTATE;
extern uint16_t _TRACE_QMP_BLOCK_JOB_PAUSE_DSTATE;
extern uint16_t _TRACE_QMP_BLOCK_JOB_RESUME_DSTATE;
extern uint16_t _TRACE_QMP_BLOCK_JOB_COMPLETE_DSTATE;
extern uint16_t _TRACE_QMP_BLOCK_JOB_FINALIZE_DSTATE;
extern uint16_t _TRACE_QMP_BLOCK_JOB_DISMISS_DSTATE;
extern uint16_t _TRACE_QMP_BLOCK_STREAM_DSTATE;
extern uint16_t _TRACE_FILE_PAIO_SUBMIT_DSTATE;
extern uint16_t _TRACE_LURING_CQE_HANDLER_DSTATE;
extern uint16_t _TRACE_LURING_CO_SUBMIT_DSTATE;
extern uint16_t _TRACE_LURING_RESUBMIT_SHORT_READ_DSTATE;
extern uint16_t _TRACE_QCOW2_ADD_TASK_DSTATE;
extern uint16_t _TRACE_QCOW2_WRITEV_START_REQ_DSTATE;
extern uint16_t _TRACE_QCOW2_WRITEV_DONE_REQ_DSTATE;
extern uint16_t _TRACE_QCOW2_WRITEV_START_PART_DSTATE;
extern uint16_t _TRACE_QCOW2_WRITEV_DONE_PART_DSTATE;
extern uint16_t _TRACE_QCOW2_WRITEV_DATA_DSTATE;
extern uint16_t _TRACE_QCOW2_PWRITE_ZEROES_START_REQ_DSTATE;
extern uint16_t _TRACE_QCOW2_PWRITE_ZEROES_DSTATE;
extern uint16_t _TRACE_QCOW2_SKIP_COW_DSTATE;
extern uint16_t _TRACE_QCOW2_ALLOC_CLUSTERS_OFFSET_DSTATE;
extern uint16_t _TRACE_QCOW2_HANDLE_COPIED_DSTATE;
extern uint16_t _TRACE_QCOW2_HANDLE_ALLOC_DSTATE;
extern uint16_t _TRACE_QCOW2_DO_ALLOC_CLUSTERS_OFFSET_DSTATE;
extern uint16_t _TRACE_QCOW2_CLUSTER_ALLOC_PHYS_DSTATE;
extern uint16_t _TRACE_QCOW2_CLUSTER_LINK_L2_DSTATE;
extern uint16_t _TRACE_QCOW2_L2_ALLOCATE_DSTATE;
extern uint16_t _TRACE_QCOW2_L2_ALLOCATE_GET_EMPTY_DSTATE;
extern uint16_t _TRACE_QCOW2_L2_ALLOCATE_WRITE_L2_DSTATE;
extern uint16_t _TRACE_QCOW2_L2_ALLOCATE_WRITE_L1_DSTATE;
extern uint16_t _TRACE_QCOW2_L2_ALLOCATE_DONE_DSTATE;
extern uint16_t _TRACE_QCOW2_CACHE_GET_DSTATE;
extern uint16_t _TRACE_QCOW2_CACHE_GET_REPLACE_ENTRY_DSTATE;
extern uint16_t _TRACE_QCOW2_CACHE_GET_READ_DSTATE;
extern uint16_t _TRACE_QCOW2_CACHE_GET_DONE_DSTATE;
extern uint16_t _TRACE_QCOW2_CACHE_FLUSH_DSTATE;
extern uint16_t _TRACE_QCOW2_CACHE_ENTRY_FLUSH_DSTATE;
extern uint16_t _TRACE_QCOW2_PROCESS_DISCARDS_FAILED_REGION_DSTATE;
extern uint16_t _TRACE_QED_ALLOC_L2_CACHE_ENTRY_DSTATE;
extern uint16_t _TRACE_QED_UNREF_L2_CACHE_ENTRY_DSTATE;
extern uint16_t _TRACE_QED_FIND_L2_CACHE_ENTRY_DSTATE;
extern uint16_t _TRACE_QED_READ_TABLE_DSTATE;
extern uint16_t _TRACE_QED_READ_TABLE_CB_DSTATE;
extern uint16_t _TRACE_QED_WRITE_TABLE_DSTATE;
extern uint16_t _TRACE_QED_WRITE_TABLE_CB_DSTATE;
extern uint16_t _TRACE_QED_NEED_CHECK_TIMER_CB_DSTATE;
extern uint16_t _TRACE_QED_START_NEED_CHECK_TIMER_DSTATE;
extern uint16_t _TRACE_QED_CANCEL_NEED_CHECK_TIMER_DSTATE;
extern uint16_t _TRACE_QED_AIO_COMPLETE_DSTATE;
extern uint16_t _TRACE_QED_AIO_SETUP_DSTATE;
extern uint16_t _TRACE_QED_AIO_NEXT_IO_DSTATE;
extern uint16_t _TRACE_QED_AIO_READ_DATA_DSTATE;
extern uint16_t _TRACE_QED_AIO_WRITE_DATA_DSTATE;
extern uint16_t _TRACE_QED_AIO_WRITE_PREFILL_DSTATE;
extern uint16_t _TRACE_QED_AIO_WRITE_POSTFILL_DSTATE;
extern uint16_t _TRACE_QED_AIO_WRITE_MAIN_DSTATE;
extern uint16_t _TRACE_NVME_CONTROLLER_CAPABILITY_RAW_DSTATE;
extern uint16_t _TRACE_NVME_CONTROLLER_CAPABILITY_DSTATE;
extern uint16_t _TRACE_NVME_CONTROLLER_SPEC_VERSION_DSTATE;
extern uint16_t _TRACE_NVME_KICK_DSTATE;
extern uint16_t _TRACE_NVME_DMA_FLUSH_QUEUE_WAIT_DSTATE;
extern uint16_t _TRACE_NVME_ERROR_DSTATE;
extern uint16_t _TRACE_NVME_PROCESS_COMPLETION_DSTATE;
extern uint16_t _TRACE_NVME_COMPLETE_COMMAND_DSTATE;
extern uint16_t _TRACE_NVME_SUBMIT_COMMAND_DSTATE;
extern uint16_t _TRACE_NVME_SUBMIT_COMMAND_RAW_DSTATE;
extern uint16_t _TRACE_NVME_HANDLE_EVENT_DSTATE;
extern uint16_t _TRACE_NVME_POLL_QUEUE_DSTATE;
extern uint16_t _TRACE_NVME_PRW_ALIGNED_DSTATE;
extern uint16_t _TRACE_NVME_WRITE_ZEROES_DSTATE;
extern uint16_t _TRACE_NVME_QIOV_UNALIGNED_DSTATE;
extern uint16_t _TRACE_NVME_PRW_BUFFERED_DSTATE;
extern uint16_t _TRACE_NVME_RW_DONE_DSTATE;
extern uint16_t _TRACE_NVME_DSM_DSTATE;
extern uint16_t _TRACE_NVME_DSM_DONE_DSTATE;
extern uint16_t _TRACE_NVME_DMA_MAP_FLUSH_DSTATE;
extern uint16_t _TRACE_NVME_FREE_REQ_QUEUE_WAIT_DSTATE;
extern uint16_t _TRACE_NVME_CREATE_QUEUE_PAIR_DSTATE;
extern uint16_t _TRACE_NVME_FREE_QUEUE_PAIR_DSTATE;
extern uint16_t _TRACE_NVME_CMD_MAP_QIOV_DSTATE;
extern uint16_t _TRACE_NVME_CMD_MAP_QIOV_PAGES_DSTATE;
extern uint16_t _TRACE_NVME_CMD_MAP_QIOV_IOV_DSTATE;
extern uint16_t _TRACE_ISCSI_XCOPY_DSTATE;
extern uint16_t _TRACE_NBD_PARSE_BLOCKSTATUS_COMPLIANCE_DSTATE;
extern uint16_t _TRACE_NBD_STRUCTURED_READ_COMPLIANCE_DSTATE;
extern uint16_t _TRACE_NBD_EXTENDED_HEADERS_COMPLIANCE_DSTATE;
extern uint16_t _TRACE_NBD_READ_REPLY_ENTRY_FAIL_DSTATE;
extern uint16_t _TRACE_NBD_CO_REQUEST_FAIL_DSTATE;
extern uint16_t _TRACE_NBD_CLIENT_HANDSHAKE_DSTATE;
extern uint16_t _TRACE_NBD_CLIENT_HANDSHAKE_SUCCESS_DSTATE;
extern uint16_t _TRACE_NBD_RECONNECT_ATTEMPT_DSTATE;
extern uint16_t _TRACE_NBD_RECONNECT_ATTEMPT_RESULT_DSTATE;
extern uint16_t _TRACE_SSH_RESTART_COROUTINE_DSTATE;
extern uint16_t _TRACE_SSH_FLUSH_DSTATE;
extern uint16_t _TRACE_SSH_CHECK_HOST_KEY_KNOWNHOSTS_DSTATE;
extern uint16_t _TRACE_SSH_CONNECT_TO_SSH_DSTATE;
extern uint16_t _TRACE_SSH_CO_YIELD_DSTATE;
extern uint16_t _TRACE_SSH_CO_YIELD_BACK_DSTATE;
extern uint16_t _TRACE_SSH_GETLENGTH_DSTATE;
extern uint16_t _TRACE_SSH_CO_CREATE_OPTS_DSTATE;
extern uint16_t _TRACE_SSH_READ_DSTATE;
extern uint16_t _TRACE_SSH_READ_BUF_DSTATE;
extern uint16_t _TRACE_SSH_READ_RETURN_DSTATE;
extern uint16_t _TRACE_SSH_WRITE_DSTATE;
extern uint16_t _TRACE_SSH_WRITE_BUF_DSTATE;
extern uint16_t _TRACE_SSH_WRITE_RETURN_DSTATE;
extern uint16_t _TRACE_SSH_SEEK_DSTATE;
extern uint16_t _TRACE_SSH_AUTH_METHODS_DSTATE;
extern uint16_t _TRACE_SSH_SERVER_STATUS_DSTATE;
extern uint16_t _TRACE_CURL_TIMER_CB_DSTATE;
extern uint16_t _TRACE_CURL_SOCK_CB_DSTATE;
extern uint16_t _TRACE_CURL_READ_CB_DSTATE;
extern uint16_t _TRACE_CURL_OPEN_DSTATE;
extern uint16_t _TRACE_CURL_OPEN_SIZE_DSTATE;
extern uint16_t _TRACE_CURL_SETUP_PREADV_DSTATE;
extern uint16_t _TRACE_CURL_CLOSE_DSTATE;
extern uint16_t _TRACE_FILE_COPY_FILE_RANGE_DSTATE;
extern uint16_t _TRACE_FILE_FINDEJECTABLEOPTICALMEDIA_DSTATE;
extern uint16_t _TRACE_FILE_SETUP_CDROM_DSTATE;
extern uint16_t _TRACE_FILE_HDEV_IS_SG_DSTATE;
extern uint16_t _TRACE_FILE_FLUSH_FDATASYNC_FAILED_DSTATE;
extern uint16_t _TRACE_ZBD_ZONE_REPORT_DSTATE;
extern uint16_t _TRACE_ZBD_ZONE_MGMT_DSTATE;
extern uint16_t _TRACE_ZBD_ZONE_APPEND_DSTATE;
extern uint16_t _TRACE_ZBD_ZONE_APPEND_COMPLETE_DSTATE;
extern uint16_t _TRACE_SFTP_ERROR_DSTATE;
#define TRACE_BDRV_OPEN_COMMON_ENABLED 1
#define TRACE_BDRV_LOCK_MEDIUM_ENABLED 1
#define TRACE_BLK_CO_PREADV_ENABLED 1
#define TRACE_BLK_CO_PWRITEV_ENABLED 1
#define TRACE_BLK_ROOT_ATTACH_ENABLED 1
#define TRACE_BLK_ROOT_DETACH_ENABLED 1
#define TRACE_BDRV_CO_PREADV_PART_ENABLED 1
#define TRACE_BDRV_CO_PWRITEV_PART_ENABLED 1
#define TRACE_BDRV_CO_PWRITE_ZEROES_ENABLED 1
#define TRACE_BDRV_CO_DO_COPY_ON_READV_ENABLED 1
#define TRACE_BDRV_CO_COPY_RANGE_FROM_ENABLED 1
#define TRACE_BDRV_CO_COPY_RANGE_TO_ENABLED 1
#define TRACE_STREAM_ONE_ITERATION_ENABLED 1
#define TRACE_STREAM_START_ENABLED 1
#define TRACE_COMMIT_ONE_ITERATION_ENABLED 1
#define TRACE_COMMIT_START_ENABLED 1
#define TRACE_MIRROR_START_ENABLED 1
#define TRACE_MIRROR_RESTART_ITER_ENABLED 1
#define TRACE_MIRROR_BEFORE_FLUSH_ENABLED 1
#define TRACE_MIRROR_BEFORE_DRAIN_ENABLED 1
#define TRACE_MIRROR_BEFORE_SLEEP_ENABLED 1
#define TRACE_MIRROR_ONE_ITERATION_ENABLED 1
#define TRACE_MIRROR_ITERATION_DONE_ENABLED 1
#define TRACE_MIRROR_YIELD_ENABLED 1
#define TRACE_MIRROR_YIELD_IN_FLIGHT_ENABLED 1
#define TRACE_BACKUP_DO_COW_ENTER_ENABLED 1
#define TRACE_BACKUP_DO_COW_RETURN_ENABLED 1
#define TRACE_BLOCK_COPY_SKIP_RANGE_ENABLED 1
#define TRACE_BLOCK_COPY_PROCESS_ENABLED 1
#define TRACE_BLOCK_COPY_COPY_RANGE_FAIL_ENABLED 1
#define TRACE_BLOCK_COPY_READ_FAIL_ENABLED 1
#define TRACE_BLOCK_COPY_WRITE_FAIL_ENABLED 1
#define TRACE_BLOCK_COPY_WRITE_ZEROES_FAIL_ENABLED 1
#define TRACE_QMP_BLOCK_JOB_CANCEL_ENABLED 1
#define TRACE_QMP_BLOCK_JOB_PAUSE_ENABLED 1
#define TRACE_QMP_BLOCK_JOB_RESUME_ENABLED 1
#define TRACE_QMP_BLOCK_JOB_COMPLETE_ENABLED 1
#define TRACE_QMP_BLOCK_JOB_FINALIZE_ENABLED 1
#define TRACE_QMP_BLOCK_JOB_DISMISS_ENABLED 1
#define TRACE_QMP_BLOCK_STREAM_ENABLED 1
#define TRACE_FILE_PAIO_SUBMIT_ENABLED 1
#define TRACE_LURING_CQE_HANDLER_ENABLED 1
#define TRACE_LURING_CO_SUBMIT_ENABLED 1
#define TRACE_LURING_RESUBMIT_SHORT_READ_ENABLED 1
#define TRACE_QCOW2_ADD_TASK_ENABLED 1
#define TRACE_QCOW2_WRITEV_START_REQ_ENABLED 1
#define TRACE_QCOW2_WRITEV_DONE_REQ_ENABLED 1
#define TRACE_QCOW2_WRITEV_START_PART_ENABLED 1
#define TRACE_QCOW2_WRITEV_DONE_PART_ENABLED 1
#define TRACE_QCOW2_WRITEV_DATA_ENABLED 1
#define TRACE_QCOW2_PWRITE_ZEROES_START_REQ_ENABLED 1
#define TRACE_QCOW2_PWRITE_ZEROES_ENABLED 1
#define TRACE_QCOW2_SKIP_COW_ENABLED 1
#define TRACE_QCOW2_ALLOC_CLUSTERS_OFFSET_ENABLED 1
#define TRACE_QCOW2_HANDLE_COPIED_ENABLED 1
#define TRACE_QCOW2_HANDLE_ALLOC_ENABLED 1
#define TRACE_QCOW2_DO_ALLOC_CLUSTERS_OFFSET_ENABLED 1
#define TRACE_QCOW2_CLUSTER_ALLOC_PHYS_ENABLED 1
#define TRACE_QCOW2_CLUSTER_LINK_L2_ENABLED 1
#define TRACE_QCOW2_L2_ALLOCATE_ENABLED 1
#define TRACE_QCOW2_L2_ALLOCATE_GET_EMPTY_ENABLED 1
#define TRACE_QCOW2_L2_ALLOCATE_WRITE_L2_ENABLED 1
#define TRACE_QCOW2_L2_ALLOCATE_WRITE_L1_ENABLED 1
#define TRACE_QCOW2_L2_ALLOCATE_DONE_ENABLED 1
#define TRACE_QCOW2_CACHE_GET_ENABLED 1
#define TRACE_QCOW2_CACHE_GET_REPLACE_ENTRY_ENABLED 1
#define TRACE_QCOW2_CACHE_GET_READ_ENABLED 1
#define TRACE_QCOW2_CACHE_GET_DONE_ENABLED 1
#define TRACE_QCOW2_CACHE_FLUSH_ENABLED 1
#define TRACE_QCOW2_CACHE_ENTRY_FLUSH_ENABLED 1
#define TRACE_QCOW2_PROCESS_DISCARDS_FAILED_REGION_ENABLED 1
#define TRACE_QED_ALLOC_L2_CACHE_ENTRY_ENABLED 1
#define TRACE_QED_UNREF_L2_CACHE_ENTRY_ENABLED 1
#define TRACE_QED_FIND_L2_CACHE_ENTRY_ENABLED 1
#define TRACE_QED_READ_TABLE_ENABLED 1
#define TRACE_QED_READ_TABLE_CB_ENABLED 1
#define TRACE_QED_WRITE_TABLE_ENABLED 1
#define TRACE_QED_WRITE_TABLE_CB_ENABLED 1
#define TRACE_QED_NEED_CHECK_TIMER_CB_ENABLED 1
#define TRACE_QED_START_NEED_CHECK_TIMER_ENABLED 1
#define TRACE_QED_CANCEL_NEED_CHECK_TIMER_ENABLED 1
#define TRACE_QED_AIO_COMPLETE_ENABLED 1
#define TRACE_QED_AIO_SETUP_ENABLED 1
#define TRACE_QED_AIO_NEXT_IO_ENABLED 1
#define TRACE_QED_AIO_READ_DATA_ENABLED 1
#define TRACE_QED_AIO_WRITE_DATA_ENABLED 1
#define TRACE_QED_AIO_WRITE_PREFILL_ENABLED 1
#define TRACE_QED_AIO_WRITE_POSTFILL_ENABLED 1
#define TRACE_QED_AIO_WRITE_MAIN_ENABLED 1
#define TRACE_NVME_CONTROLLER_CAPABILITY_RAW_ENABLED 1
#define TRACE_NVME_CONTROLLER_CAPABILITY_ENABLED 1
#define TRACE_NVME_CONTROLLER_SPEC_VERSION_ENABLED 1
#define TRACE_NVME_KICK_ENABLED 1
#define TRACE_NVME_DMA_FLUSH_QUEUE_WAIT_ENABLED 1
#define TRACE_NVME_ERROR_ENABLED 1
#define TRACE_NVME_PROCESS_COMPLETION_ENABLED 1
#define TRACE_NVME_COMPLETE_COMMAND_ENABLED 1
#define TRACE_NVME_SUBMIT_COMMAND_ENABLED 1
#define TRACE_NVME_SUBMIT_COMMAND_RAW_ENABLED 1
#define TRACE_NVME_HANDLE_EVENT_ENABLED 1
#define TRACE_NVME_POLL_QUEUE_ENABLED 1
#define TRACE_NVME_PRW_ALIGNED_ENABLED 1
#define TRACE_NVME_WRITE_ZEROES_ENABLED 1
#define TRACE_NVME_QIOV_UNALIGNED_ENABLED 1
#define TRACE_NVME_PRW_BUFFERED_ENABLED 1
#define TRACE_NVME_RW_DONE_ENABLED 1
#define TRACE_NVME_DSM_ENABLED 1
#define TRACE_NVME_DSM_DONE_ENABLED 1
#define TRACE_NVME_DMA_MAP_FLUSH_ENABLED 1
#define TRACE_NVME_FREE_REQ_QUEUE_WAIT_ENABLED 1
#define TRACE_NVME_CREATE_QUEUE_PAIR_ENABLED 1
#define TRACE_NVME_FREE_QUEUE_PAIR_ENABLED 1
#define TRACE_NVME_CMD_MAP_QIOV_ENABLED 1
#define TRACE_NVME_CMD_MAP_QIOV_PAGES_ENABLED 1
#define TRACE_NVME_CMD_MAP_QIOV_IOV_ENABLED 1
#define TRACE_ISCSI_XCOPY_ENABLED 1
#define TRACE_NBD_PARSE_BLOCKSTATUS_COMPLIANCE_ENABLED 1
#define TRACE_NBD_STRUCTURED_READ_COMPLIANCE_ENABLED 1
#define TRACE_NBD_EXTENDED_HEADERS_COMPLIANCE_ENABLED 1
#define TRACE_NBD_READ_REPLY_ENTRY_FAIL_ENABLED 1
#define TRACE_NBD_CO_REQUEST_FAIL_ENABLED 1
#define TRACE_NBD_CLIENT_HANDSHAKE_ENABLED 1
#define TRACE_NBD_CLIENT_HANDSHAKE_SUCCESS_ENABLED 1
#define TRACE_NBD_RECONNECT_ATTEMPT_ENABLED 1
#define TRACE_NBD_RECONNECT_ATTEMPT_RESULT_ENABLED 1
#define TRACE_SSH_RESTART_COROUTINE_ENABLED 1
#define TRACE_SSH_FLUSH_ENABLED 1
#define TRACE_SSH_CHECK_HOST_KEY_KNOWNHOSTS_ENABLED 1
#define TRACE_SSH_CONNECT_TO_SSH_ENABLED 1
#define TRACE_SSH_CO_YIELD_ENABLED 1
#define TRACE_SSH_CO_YIELD_BACK_ENABLED 1
#define TRACE_SSH_GETLENGTH_ENABLED 1
#define TRACE_SSH_CO_CREATE_OPTS_ENABLED 1
#define TRACE_SSH_READ_ENABLED 1
#define TRACE_SSH_READ_BUF_ENABLED 1
#define TRACE_SSH_READ_RETURN_ENABLED 1
#define TRACE_SSH_WRITE_ENABLED 1
#define TRACE_SSH_WRITE_BUF_ENABLED 1
#define TRACE_SSH_WRITE_RETURN_ENABLED 1
#define TRACE_SSH_SEEK_ENABLED 1
#define TRACE_SSH_AUTH_METHODS_ENABLED 1
#define TRACE_SSH_SERVER_STATUS_ENABLED 1
#define TRACE_CURL_TIMER_CB_ENABLED 1
#define TRACE_CURL_SOCK_CB_ENABLED 1
#define TRACE_CURL_READ_CB_ENABLED 1
#define TRACE_CURL_OPEN_ENABLED 1
#define TRACE_CURL_OPEN_SIZE_ENABLED 1
#define TRACE_CURL_SETUP_PREADV_ENABLED 1
#define TRACE_CURL_CLOSE_ENABLED 1
#define TRACE_FILE_COPY_FILE_RANGE_ENABLED 1
#define TRACE_FILE_FINDEJECTABLEOPTICALMEDIA_ENABLED 1
#define TRACE_FILE_SETUP_CDROM_ENABLED 1
#define TRACE_FILE_HDEV_IS_SG_ENABLED 1
#define TRACE_FILE_FLUSH_FDATASYNC_FAILED_ENABLED 1
#define TRACE_ZBD_ZONE_REPORT_ENABLED 1
#define TRACE_ZBD_ZONE_MGMT_ENABLED 1
#define TRACE_ZBD_ZONE_APPEND_ENABLED 1
#define TRACE_ZBD_ZONE_APPEND_COMPLETE_ENABLED 1
#define TRACE_SFTP_ERROR_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_BDRV_OPEN_COMMON_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BDRV_OPEN_COMMON) || \
    false)

static inline void trace_bdrv_open_common(void *bs, const char *filename, int flags, const char *format_name)
{
    if (trace_event_get_state(TRACE_BDRV_OPEN_COMMON)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../xemu/block/trace-events"
            qemu_log("bdrv_open_common " "bs %p filename \"%s\" flags 0x%x format_name \"%s\"" "\n", bs, filename, flags, format_name);
#line 500 "trace/trace-block.h"
        }
    }
}

#define TRACE_BDRV_LOCK_MEDIUM_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BDRV_LOCK_MEDIUM) || \
    false)

static inline void trace_bdrv_lock_medium(void *bs, bool locked)
{
    if (trace_event_get_state(TRACE_BDRV_LOCK_MEDIUM)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../xemu/block/trace-events"
            qemu_log("bdrv_lock_medium " "bs %p locked %d" "\n", bs, locked);
#line 515 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLK_CO_PREADV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLK_CO_PREADV) || \
    false)

static inline void trace_blk_co_preadv(void *blk, void *bs, int64_t offset, int64_t bytes, int flags)
{
    if (trace_event_get_state(TRACE_BLK_CO_PREADV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../xemu/block/trace-events"
            qemu_log("blk_co_preadv " "blk %p bs %p offset %"PRId64" bytes %" PRId64 " flags 0x%x" "\n", blk, bs, offset, bytes, flags);
#line 530 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLK_CO_PWRITEV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLK_CO_PWRITEV) || \
    false)

static inline void trace_blk_co_pwritev(void *blk, void *bs, int64_t offset, int64_t bytes, int flags)
{
    if (trace_event_get_state(TRACE_BLK_CO_PWRITEV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "../xemu/block/trace-events"
            qemu_log("blk_co_pwritev " "blk %p bs %p offset %"PRId64" bytes %" PRId64 " flags 0x%x" "\n", blk, bs, offset, bytes, flags);
#line 545 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLK_ROOT_ATTACH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLK_ROOT_ATTACH) || \
    false)

static inline void trace_blk_root_attach(void *child, void *blk, void *bs)
{
    if (trace_event_get_state(TRACE_BLK_ROOT_ATTACH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "../xemu/block/trace-events"
            qemu_log("blk_root_attach " "child %p blk %p bs %p" "\n", child, blk, bs);
#line 560 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLK_ROOT_DETACH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLK_ROOT_DETACH) || \
    false)

static inline void trace_blk_root_detach(void *child, void *blk, void *bs)
{
    if (trace_event_get_state(TRACE_BLK_ROOT_DETACH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "../xemu/block/trace-events"
            qemu_log("blk_root_detach " "child %p blk %p bs %p" "\n", child, blk, bs);
#line 575 "trace/trace-block.h"
        }
    }
}

#define TRACE_BDRV_CO_PREADV_PART_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BDRV_CO_PREADV_PART) || \
    false)

static inline void trace_bdrv_co_preadv_part(void *bs, int64_t offset, int64_t bytes, unsigned int flags)
{
    if (trace_event_get_state(TRACE_BDRV_CO_PREADV_PART)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 14 "../xemu/block/trace-events"
            qemu_log("bdrv_co_preadv_part " "bs %p offset %" PRId64 " bytes %" PRId64 " flags 0x%x" "\n", bs, offset, bytes, flags);
#line 590 "trace/trace-block.h"
        }
    }
}

#define TRACE_BDRV_CO_PWRITEV_PART_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BDRV_CO_PWRITEV_PART) || \
    false)

static inline void trace_bdrv_co_pwritev_part(void *bs, int64_t offset, int64_t bytes, unsigned int flags)
{
    if (trace_event_get_state(TRACE_BDRV_CO_PWRITEV_PART)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 15 "../xemu/block/trace-events"
            qemu_log("bdrv_co_pwritev_part " "bs %p offset %" PRId64 " bytes %" PRId64 " flags 0x%x" "\n", bs, offset, bytes, flags);
#line 605 "trace/trace-block.h"
        }
    }
}

#define TRACE_BDRV_CO_PWRITE_ZEROES_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BDRV_CO_PWRITE_ZEROES) || \
    false)

static inline void trace_bdrv_co_pwrite_zeroes(void *bs, int64_t offset, int64_t bytes, int flags)
{
    if (trace_event_get_state(TRACE_BDRV_CO_PWRITE_ZEROES)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 16 "../xemu/block/trace-events"
            qemu_log("bdrv_co_pwrite_zeroes " "bs %p offset %" PRId64 " bytes %" PRId64 " flags 0x%x" "\n", bs, offset, bytes, flags);
#line 620 "trace/trace-block.h"
        }
    }
}

#define TRACE_BDRV_CO_DO_COPY_ON_READV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BDRV_CO_DO_COPY_ON_READV) || \
    false)

static inline void trace_bdrv_co_do_copy_on_readv(void *bs, int64_t offset, int64_t bytes, int64_t cluster_offset, int64_t cluster_bytes)
{
    if (trace_event_get_state(TRACE_BDRV_CO_DO_COPY_ON_READV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 17 "../xemu/block/trace-events"
            qemu_log("bdrv_co_do_copy_on_readv " "bs %p offset %" PRId64 " bytes %" PRId64 " cluster_offset %" PRId64 " cluster_bytes %" PRId64 "\n", bs, offset, bytes, cluster_offset, cluster_bytes);
#line 635 "trace/trace-block.h"
        }
    }
}

#define TRACE_BDRV_CO_COPY_RANGE_FROM_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BDRV_CO_COPY_RANGE_FROM) || \
    false)

static inline void trace_bdrv_co_copy_range_from(void *src, int64_t src_offset, void *dst, int64_t dst_offset, int64_t bytes, int read_flags, int write_flags)
{
    if (trace_event_get_state(TRACE_BDRV_CO_COPY_RANGE_FROM)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 18 "../xemu/block/trace-events"
            qemu_log("bdrv_co_copy_range_from " "src %p offset %" PRId64 " dst %p offset %" PRId64 " bytes %" PRId64 " rw flags 0x%x 0x%x" "\n", src, src_offset, dst, dst_offset, bytes, read_flags, write_flags);
#line 650 "trace/trace-block.h"
        }
    }
}

#define TRACE_BDRV_CO_COPY_RANGE_TO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BDRV_CO_COPY_RANGE_TO) || \
    false)

static inline void trace_bdrv_co_copy_range_to(void *src, int64_t src_offset, void *dst, int64_t dst_offset, int64_t bytes, int read_flags, int write_flags)
{
    if (trace_event_get_state(TRACE_BDRV_CO_COPY_RANGE_TO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 19 "../xemu/block/trace-events"
            qemu_log("bdrv_co_copy_range_to " "src %p offset %" PRId64 " dst %p offset %" PRId64 " bytes %" PRId64 " rw flags 0x%x 0x%x" "\n", src, src_offset, dst, dst_offset, bytes, read_flags, write_flags);
#line 665 "trace/trace-block.h"
        }
    }
}

#define TRACE_STREAM_ONE_ITERATION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_STREAM_ONE_ITERATION) || \
    false)

static inline void trace_stream_one_iteration(void *s, int64_t offset, uint64_t bytes, int is_allocated)
{
    if (trace_event_get_state(TRACE_STREAM_ONE_ITERATION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 22 "../xemu/block/trace-events"
            qemu_log("stream_one_iteration " "s %p offset %" PRId64 " bytes %" PRIu64 " is_allocated %d" "\n", s, offset, bytes, is_allocated);
#line 680 "trace/trace-block.h"
        }
    }
}

#define TRACE_STREAM_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_STREAM_START) || \
    false)

static inline void trace_stream_start(void *bs, void *base, void *s)
{
    if (trace_event_get_state(TRACE_STREAM_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 23 "../xemu/block/trace-events"
            qemu_log("stream_start " "bs %p base %p s %p" "\n", bs, base, s);
#line 695 "trace/trace-block.h"
        }
    }
}

#define TRACE_COMMIT_ONE_ITERATION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COMMIT_ONE_ITERATION) || \
    false)

static inline void trace_commit_one_iteration(void *s, int64_t offset, uint64_t bytes, int is_allocated)
{
    if (trace_event_get_state(TRACE_COMMIT_ONE_ITERATION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 26 "../xemu/block/trace-events"
            qemu_log("commit_one_iteration " "s %p offset %" PRId64 " bytes %" PRIu64 " is_allocated %d" "\n", s, offset, bytes, is_allocated);
#line 710 "trace/trace-block.h"
        }
    }
}

#define TRACE_COMMIT_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COMMIT_START) || \
    false)

static inline void trace_commit_start(void *bs, void *base, void *top, void *s)
{
    if (trace_event_get_state(TRACE_COMMIT_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 27 "../xemu/block/trace-events"
            qemu_log("commit_start " "bs %p base %p top %p s %p" "\n", bs, base, top, s);
#line 725 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_START) || \
    false)

static inline void trace_mirror_start(void *bs, void *s, void *opaque)
{
    if (trace_event_get_state(TRACE_MIRROR_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 30 "../xemu/block/trace-events"
            qemu_log("mirror_start " "bs %p s %p opaque %p" "\n", bs, s, opaque);
#line 740 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_RESTART_ITER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_RESTART_ITER) || \
    false)

static inline void trace_mirror_restart_iter(void *s, int64_t cnt)
{
    if (trace_event_get_state(TRACE_MIRROR_RESTART_ITER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 31 "../xemu/block/trace-events"
            qemu_log("mirror_restart_iter " "s %p dirty count %"PRId64 "\n", s, cnt);
#line 755 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_BEFORE_FLUSH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_BEFORE_FLUSH) || \
    false)

static inline void trace_mirror_before_flush(void *s)
{
    if (trace_event_get_state(TRACE_MIRROR_BEFORE_FLUSH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 32 "../xemu/block/trace-events"
            qemu_log("mirror_before_flush " "s %p" "\n", s);
#line 770 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_BEFORE_DRAIN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_BEFORE_DRAIN) || \
    false)

static inline void trace_mirror_before_drain(void *s, int64_t cnt)
{
    if (trace_event_get_state(TRACE_MIRROR_BEFORE_DRAIN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 33 "../xemu/block/trace-events"
            qemu_log("mirror_before_drain " "s %p dirty count %"PRId64 "\n", s, cnt);
#line 785 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_BEFORE_SLEEP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_BEFORE_SLEEP) || \
    false)

static inline void trace_mirror_before_sleep(void *s, int64_t cnt, int synced, uint64_t delay_ns)
{
    if (trace_event_get_state(TRACE_MIRROR_BEFORE_SLEEP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 34 "../xemu/block/trace-events"
            qemu_log("mirror_before_sleep " "s %p dirty count %"PRId64" synced %d delay %"PRIu64"ns" "\n", s, cnt, synced, delay_ns);
#line 800 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_ONE_ITERATION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_ONE_ITERATION) || \
    false)

static inline void trace_mirror_one_iteration(void *s, int64_t offset, uint64_t bytes)
{
    if (trace_event_get_state(TRACE_MIRROR_ONE_ITERATION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 35 "../xemu/block/trace-events"
            qemu_log("mirror_one_iteration " "s %p offset %" PRId64 " bytes %" PRIu64 "\n", s, offset, bytes);
#line 815 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_ITERATION_DONE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_ITERATION_DONE) || \
    false)

static inline void trace_mirror_iteration_done(void *s, int64_t offset, uint64_t bytes, int ret)
{
    if (trace_event_get_state(TRACE_MIRROR_ITERATION_DONE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 36 "../xemu/block/trace-events"
            qemu_log("mirror_iteration_done " "s %p offset %" PRId64 " bytes %" PRIu64 " ret %d" "\n", s, offset, bytes, ret);
#line 830 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_YIELD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_YIELD) || \
    false)

static inline void trace_mirror_yield(void *s, int64_t cnt, int buf_free_count, int in_flight)
{
    if (trace_event_get_state(TRACE_MIRROR_YIELD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 37 "../xemu/block/trace-events"
            qemu_log("mirror_yield " "s %p dirty count %"PRId64" free buffers %d in_flight %d" "\n", s, cnt, buf_free_count, in_flight);
#line 845 "trace/trace-block.h"
        }
    }
}

#define TRACE_MIRROR_YIELD_IN_FLIGHT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MIRROR_YIELD_IN_FLIGHT) || \
    false)

static inline void trace_mirror_yield_in_flight(void *s, int64_t offset, int in_flight)
{
    if (trace_event_get_state(TRACE_MIRROR_YIELD_IN_FLIGHT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 38 "../xemu/block/trace-events"
            qemu_log("mirror_yield_in_flight " "s %p offset %" PRId64 " in_flight %d" "\n", s, offset, in_flight);
#line 860 "trace/trace-block.h"
        }
    }
}

#define TRACE_BACKUP_DO_COW_ENTER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BACKUP_DO_COW_ENTER) || \
    false)

static inline void trace_backup_do_cow_enter(void *job, int64_t start, int64_t offset, uint64_t bytes)
{
    if (trace_event_get_state(TRACE_BACKUP_DO_COW_ENTER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 41 "../xemu/block/trace-events"
            qemu_log("backup_do_cow_enter " "job %p start %" PRId64 " offset %" PRId64 " bytes %" PRIu64 "\n", job, start, offset, bytes);
#line 875 "trace/trace-block.h"
        }
    }
}

#define TRACE_BACKUP_DO_COW_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BACKUP_DO_COW_RETURN) || \
    false)

static inline void trace_backup_do_cow_return(void *job, int64_t offset, uint64_t bytes, int ret)
{
    if (trace_event_get_state(TRACE_BACKUP_DO_COW_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 42 "../xemu/block/trace-events"
            qemu_log("backup_do_cow_return " "job %p offset %" PRId64 " bytes %" PRIu64 " ret %d" "\n", job, offset, bytes, ret);
#line 890 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLOCK_COPY_SKIP_RANGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLOCK_COPY_SKIP_RANGE) || \
    false)

static inline void trace_block_copy_skip_range(void *bcs, int64_t start, uint64_t bytes)
{
    if (trace_event_get_state(TRACE_BLOCK_COPY_SKIP_RANGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 45 "../xemu/block/trace-events"
            qemu_log("block_copy_skip_range " "bcs %p start %"PRId64" bytes %"PRId64 "\n", bcs, start, bytes);
#line 905 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLOCK_COPY_PROCESS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLOCK_COPY_PROCESS) || \
    false)

static inline void trace_block_copy_process(void *bcs, int64_t start)
{
    if (trace_event_get_state(TRACE_BLOCK_COPY_PROCESS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 46 "../xemu/block/trace-events"
            qemu_log("block_copy_process " "bcs %p start %"PRId64 "\n", bcs, start);
#line 920 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLOCK_COPY_COPY_RANGE_FAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLOCK_COPY_COPY_RANGE_FAIL) || \
    false)

static inline void trace_block_copy_copy_range_fail(void *bcs, int64_t start, int ret)
{
    if (trace_event_get_state(TRACE_BLOCK_COPY_COPY_RANGE_FAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 47 "../xemu/block/trace-events"
            qemu_log("block_copy_copy_range_fail " "bcs %p start %"PRId64" ret %d" "\n", bcs, start, ret);
#line 935 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLOCK_COPY_READ_FAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLOCK_COPY_READ_FAIL) || \
    false)

static inline void trace_block_copy_read_fail(void *bcs, int64_t start, int ret)
{
    if (trace_event_get_state(TRACE_BLOCK_COPY_READ_FAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 48 "../xemu/block/trace-events"
            qemu_log("block_copy_read_fail " "bcs %p start %"PRId64" ret %d" "\n", bcs, start, ret);
#line 950 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLOCK_COPY_WRITE_FAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLOCK_COPY_WRITE_FAIL) || \
    false)

static inline void trace_block_copy_write_fail(void *bcs, int64_t start, int ret)
{
    if (trace_event_get_state(TRACE_BLOCK_COPY_WRITE_FAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 49 "../xemu/block/trace-events"
            qemu_log("block_copy_write_fail " "bcs %p start %"PRId64" ret %d" "\n", bcs, start, ret);
#line 965 "trace/trace-block.h"
        }
    }
}

#define TRACE_BLOCK_COPY_WRITE_ZEROES_FAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_BLOCK_COPY_WRITE_ZEROES_FAIL) || \
    false)

static inline void trace_block_copy_write_zeroes_fail(void *bcs, int64_t start, int ret)
{
    if (trace_event_get_state(TRACE_BLOCK_COPY_WRITE_ZEROES_FAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 50 "../xemu/block/trace-events"
            qemu_log("block_copy_write_zeroes_fail " "bcs %p start %"PRId64" ret %d" "\n", bcs, start, ret);
#line 980 "trace/trace-block.h"
        }
    }
}

#define TRACE_QMP_BLOCK_JOB_CANCEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_BLOCK_JOB_CANCEL) || \
    false)

static inline void trace_qmp_block_job_cancel(void *job)
{
    if (trace_event_get_state(TRACE_QMP_BLOCK_JOB_CANCEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 53 "../xemu/block/trace-events"
            qemu_log("qmp_block_job_cancel " "job %p" "\n", job);
#line 995 "trace/trace-block.h"
        }
    }
}

#define TRACE_QMP_BLOCK_JOB_PAUSE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_BLOCK_JOB_PAUSE) || \
    false)

static inline void trace_qmp_block_job_pause(void *job)
{
    if (trace_event_get_state(TRACE_QMP_BLOCK_JOB_PAUSE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 54 "../xemu/block/trace-events"
            qemu_log("qmp_block_job_pause " "job %p" "\n", job);
#line 1010 "trace/trace-block.h"
        }
    }
}

#define TRACE_QMP_BLOCK_JOB_RESUME_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_BLOCK_JOB_RESUME) || \
    false)

static inline void trace_qmp_block_job_resume(void *job)
{
    if (trace_event_get_state(TRACE_QMP_BLOCK_JOB_RESUME)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 55 "../xemu/block/trace-events"
            qemu_log("qmp_block_job_resume " "job %p" "\n", job);
#line 1025 "trace/trace-block.h"
        }
    }
}

#define TRACE_QMP_BLOCK_JOB_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_BLOCK_JOB_COMPLETE) || \
    false)

static inline void trace_qmp_block_job_complete(void *job)
{
    if (trace_event_get_state(TRACE_QMP_BLOCK_JOB_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 56 "../xemu/block/trace-events"
            qemu_log("qmp_block_job_complete " "job %p" "\n", job);
#line 1040 "trace/trace-block.h"
        }
    }
}

#define TRACE_QMP_BLOCK_JOB_FINALIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_BLOCK_JOB_FINALIZE) || \
    false)

static inline void trace_qmp_block_job_finalize(void *job)
{
    if (trace_event_get_state(TRACE_QMP_BLOCK_JOB_FINALIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 57 "../xemu/block/trace-events"
            qemu_log("qmp_block_job_finalize " "job %p" "\n", job);
#line 1055 "trace/trace-block.h"
        }
    }
}

#define TRACE_QMP_BLOCK_JOB_DISMISS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_BLOCK_JOB_DISMISS) || \
    false)

static inline void trace_qmp_block_job_dismiss(void *job)
{
    if (trace_event_get_state(TRACE_QMP_BLOCK_JOB_DISMISS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 58 "../xemu/block/trace-events"
            qemu_log("qmp_block_job_dismiss " "job %p" "\n", job);
#line 1070 "trace/trace-block.h"
        }
    }
}

#define TRACE_QMP_BLOCK_STREAM_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_BLOCK_STREAM) || \
    false)

static inline void trace_qmp_block_stream(void *bs)
{
    if (trace_event_get_state(TRACE_QMP_BLOCK_STREAM)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 59 "../xemu/block/trace-events"
            qemu_log("qmp_block_stream " "bs %p" "\n", bs);
#line 1085 "trace/trace-block.h"
        }
    }
}

#define TRACE_FILE_PAIO_SUBMIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_FILE_PAIO_SUBMIT) || \
    false)

static inline void trace_file_paio_submit(void *acb, void *opaque, int64_t offset, int count, int type)
{
    if (trace_event_get_state(TRACE_FILE_PAIO_SUBMIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 62 "../xemu/block/trace-events"
            qemu_log("file_paio_submit " "acb %p opaque %p offset %"PRId64" count %d type %d" "\n", acb, opaque, offset, count, type);
#line 1100 "trace/trace-block.h"
        }
    }
}

#define TRACE_LURING_CQE_HANDLER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LURING_CQE_HANDLER) || \
    false)

static inline void trace_luring_cqe_handler(void *req, int ret)
{
    if (trace_event_get_state(TRACE_LURING_CQE_HANDLER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 65 "../xemu/block/trace-events"
            qemu_log("luring_cqe_handler " "req %p ret %d" "\n", req, ret);
#line 1115 "trace/trace-block.h"
        }
    }
}

#define TRACE_LURING_CO_SUBMIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LURING_CO_SUBMIT) || \
    false)

static inline void trace_luring_co_submit(void *bs, void *req, int fd, uint64_t offset, size_t nbytes, int type)
{
    if (trace_event_get_state(TRACE_LURING_CO_SUBMIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 66 "../xemu/block/trace-events"
            qemu_log("luring_co_submit " "bs %p req %p fd %d offset %" PRId64 " nbytes %zd type %d" "\n", bs, req, fd, offset, nbytes, type);
#line 1130 "trace/trace-block.h"
        }
    }
}

#define TRACE_LURING_RESUBMIT_SHORT_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_LURING_RESUBMIT_SHORT_READ) || \
    false)

static inline void trace_luring_resubmit_short_read(void *req, int nread)
{
    if (trace_event_get_state(TRACE_LURING_RESUBMIT_SHORT_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 67 "../xemu/block/trace-events"
            qemu_log("luring_resubmit_short_read " "req %p nread %d" "\n", req, nread);
#line 1145 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_ADD_TASK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_ADD_TASK) || \
    false)

static inline void trace_qcow2_add_task(void *co, void *bs, void *pool, const char *action, int cluster_type, uint64_t host_offset, uint64_t offset, uint64_t bytes, void *qiov, size_t qiov_offset)
{
    if (trace_event_get_state(TRACE_QCOW2_ADD_TASK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 70 "../xemu/block/trace-events"
            qemu_log("qcow2_add_task " "co %p bs %p pool %p: %s: cluster_type %d file_cluster_offset %" PRIu64 " offset %" PRIu64 " bytes %" PRIu64 " qiov %p qiov_offset %zu" "\n", co, bs, pool, action, cluster_type, host_offset, offset, bytes, qiov, qiov_offset);
#line 1160 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_WRITEV_START_REQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_WRITEV_START_REQ) || \
    false)

static inline void trace_qcow2_writev_start_req(void *co, int64_t offset, int64_t bytes)
{
    if (trace_event_get_state(TRACE_QCOW2_WRITEV_START_REQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 71 "../xemu/block/trace-events"
            qemu_log("qcow2_writev_start_req " "co %p offset 0x%" PRIx64 " bytes %" PRId64 "\n", co, offset, bytes);
#line 1175 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_WRITEV_DONE_REQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_WRITEV_DONE_REQ) || \
    false)

static inline void trace_qcow2_writev_done_req(void *co, int ret)
{
    if (trace_event_get_state(TRACE_QCOW2_WRITEV_DONE_REQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 72 "../xemu/block/trace-events"
            qemu_log("qcow2_writev_done_req " "co %p ret %d" "\n", co, ret);
#line 1190 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_WRITEV_START_PART_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_WRITEV_START_PART) || \
    false)

static inline void trace_qcow2_writev_start_part(void *co)
{
    if (trace_event_get_state(TRACE_QCOW2_WRITEV_START_PART)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 73 "../xemu/block/trace-events"
            qemu_log("qcow2_writev_start_part " "co %p" "\n", co);
#line 1205 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_WRITEV_DONE_PART_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_WRITEV_DONE_PART) || \
    false)

static inline void trace_qcow2_writev_done_part(void *co, int cur_bytes)
{
    if (trace_event_get_state(TRACE_QCOW2_WRITEV_DONE_PART)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 74 "../xemu/block/trace-events"
            qemu_log("qcow2_writev_done_part " "co %p cur_bytes %d" "\n", co, cur_bytes);
#line 1220 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_WRITEV_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_WRITEV_DATA) || \
    false)

static inline void trace_qcow2_writev_data(void *co, uint64_t offset)
{
    if (trace_event_get_state(TRACE_QCOW2_WRITEV_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 75 "../xemu/block/trace-events"
            qemu_log("qcow2_writev_data " "co %p offset 0x%" PRIx64 "\n", co, offset);
#line 1235 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_PWRITE_ZEROES_START_REQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_PWRITE_ZEROES_START_REQ) || \
    false)

static inline void trace_qcow2_pwrite_zeroes_start_req(void *co, int64_t offset, int64_t bytes)
{
    if (trace_event_get_state(TRACE_QCOW2_PWRITE_ZEROES_START_REQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 76 "../xemu/block/trace-events"
            qemu_log("qcow2_pwrite_zeroes_start_req " "co %p offset 0x%" PRIx64 " bytes %" PRId64 "\n", co, offset, bytes);
#line 1250 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_PWRITE_ZEROES_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_PWRITE_ZEROES) || \
    false)

static inline void trace_qcow2_pwrite_zeroes(void *co, int64_t offset, int64_t bytes)
{
    if (trace_event_get_state(TRACE_QCOW2_PWRITE_ZEROES)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 77 "../xemu/block/trace-events"
            qemu_log("qcow2_pwrite_zeroes " "co %p offset 0x%" PRIx64 " bytes %" PRId64 "\n", co, offset, bytes);
#line 1265 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_SKIP_COW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_SKIP_COW) || \
    false)

static inline void trace_qcow2_skip_cow(void *co, uint64_t offset, int nb_clusters)
{
    if (trace_event_get_state(TRACE_QCOW2_SKIP_COW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 78 "../xemu/block/trace-events"
            qemu_log("qcow2_skip_cow " "co %p offset 0x%" PRIx64 " nb_clusters %d" "\n", co, offset, nb_clusters);
#line 1280 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_ALLOC_CLUSTERS_OFFSET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_ALLOC_CLUSTERS_OFFSET) || \
    false)

static inline void trace_qcow2_alloc_clusters_offset(void *co, uint64_t offset, int bytes)
{
    if (trace_event_get_state(TRACE_QCOW2_ALLOC_CLUSTERS_OFFSET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 81 "../xemu/block/trace-events"
            qemu_log("qcow2_alloc_clusters_offset " "co %p offset 0x%" PRIx64 " bytes %d" "\n", co, offset, bytes);
#line 1295 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_HANDLE_COPIED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_HANDLE_COPIED) || \
    false)

static inline void trace_qcow2_handle_copied(void *co, uint64_t guest_offset, uint64_t host_offset, uint64_t bytes)
{
    if (trace_event_get_state(TRACE_QCOW2_HANDLE_COPIED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 82 "../xemu/block/trace-events"
            qemu_log("qcow2_handle_copied " "co %p guest_offset 0x%" PRIx64 " host_offset 0x%" PRIx64 " bytes 0x%" PRIx64 "\n", co, guest_offset, host_offset, bytes);
#line 1310 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_HANDLE_ALLOC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_HANDLE_ALLOC) || \
    false)

static inline void trace_qcow2_handle_alloc(void *co, uint64_t guest_offset, uint64_t host_offset, uint64_t bytes)
{
    if (trace_event_get_state(TRACE_QCOW2_HANDLE_ALLOC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 83 "../xemu/block/trace-events"
            qemu_log("qcow2_handle_alloc " "co %p guest_offset 0x%" PRIx64 " host_offset 0x%" PRIx64 " bytes 0x%" PRIx64 "\n", co, guest_offset, host_offset, bytes);
#line 1325 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_DO_ALLOC_CLUSTERS_OFFSET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_DO_ALLOC_CLUSTERS_OFFSET) || \
    false)

static inline void trace_qcow2_do_alloc_clusters_offset(void *co, uint64_t guest_offset, uint64_t host_offset, int nb_clusters)
{
    if (trace_event_get_state(TRACE_QCOW2_DO_ALLOC_CLUSTERS_OFFSET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 84 "../xemu/block/trace-events"
            qemu_log("qcow2_do_alloc_clusters_offset " "co %p guest_offset 0x%" PRIx64 " host_offset 0x%" PRIx64 " nb_clusters %d" "\n", co, guest_offset, host_offset, nb_clusters);
#line 1340 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_CLUSTER_ALLOC_PHYS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_CLUSTER_ALLOC_PHYS) || \
    false)

static inline void trace_qcow2_cluster_alloc_phys(void *co)
{
    if (trace_event_get_state(TRACE_QCOW2_CLUSTER_ALLOC_PHYS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 85 "../xemu/block/trace-events"
            qemu_log("qcow2_cluster_alloc_phys " "co %p" "\n", co);
#line 1355 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_CLUSTER_LINK_L2_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_CLUSTER_LINK_L2) || \
    false)

static inline void trace_qcow2_cluster_link_l2(void *co, int nb_clusters)
{
    if (trace_event_get_state(TRACE_QCOW2_CLUSTER_LINK_L2)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 86 "../xemu/block/trace-events"
            qemu_log("qcow2_cluster_link_l2 " "co %p nb_clusters %d" "\n", co, nb_clusters);
#line 1370 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_L2_ALLOCATE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_L2_ALLOCATE) || \
    false)

static inline void trace_qcow2_l2_allocate(void *bs, int l1_index)
{
    if (trace_event_get_state(TRACE_QCOW2_L2_ALLOCATE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 88 "../xemu/block/trace-events"
            qemu_log("qcow2_l2_allocate " "bs %p l1_index %d" "\n", bs, l1_index);
#line 1385 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_L2_ALLOCATE_GET_EMPTY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_L2_ALLOCATE_GET_EMPTY) || \
    false)

static inline void trace_qcow2_l2_allocate_get_empty(void *bs, int l1_index)
{
    if (trace_event_get_state(TRACE_QCOW2_L2_ALLOCATE_GET_EMPTY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 89 "../xemu/block/trace-events"
            qemu_log("qcow2_l2_allocate_get_empty " "bs %p l1_index %d" "\n", bs, l1_index);
#line 1400 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_L2_ALLOCATE_WRITE_L2_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_L2_ALLOCATE_WRITE_L2) || \
    false)

static inline void trace_qcow2_l2_allocate_write_l2(void *bs, int l1_index)
{
    if (trace_event_get_state(TRACE_QCOW2_L2_ALLOCATE_WRITE_L2)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 90 "../xemu/block/trace-events"
            qemu_log("qcow2_l2_allocate_write_l2 " "bs %p l1_index %d" "\n", bs, l1_index);
#line 1415 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_L2_ALLOCATE_WRITE_L1_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_L2_ALLOCATE_WRITE_L1) || \
    false)

static inline void trace_qcow2_l2_allocate_write_l1(void *bs, int l1_index)
{
    if (trace_event_get_state(TRACE_QCOW2_L2_ALLOCATE_WRITE_L1)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 91 "../xemu/block/trace-events"
            qemu_log("qcow2_l2_allocate_write_l1 " "bs %p l1_index %d" "\n", bs, l1_index);
#line 1430 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_L2_ALLOCATE_DONE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_L2_ALLOCATE_DONE) || \
    false)

static inline void trace_qcow2_l2_allocate_done(void *bs, int l1_index, int ret)
{
    if (trace_event_get_state(TRACE_QCOW2_L2_ALLOCATE_DONE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 92 "../xemu/block/trace-events"
            qemu_log("qcow2_l2_allocate_done " "bs %p l1_index %d ret %d" "\n", bs, l1_index, ret);
#line 1445 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_CACHE_GET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_CACHE_GET) || \
    false)

static inline void trace_qcow2_cache_get(void *co, int c, uint64_t offset, bool read_from_disk)
{
    if (trace_event_get_state(TRACE_QCOW2_CACHE_GET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 95 "../xemu/block/trace-events"
            qemu_log("qcow2_cache_get " "co %p is_l2_cache %d offset 0x%" PRIx64 " read_from_disk %d" "\n", co, c, offset, read_from_disk);
#line 1460 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_CACHE_GET_REPLACE_ENTRY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_CACHE_GET_REPLACE_ENTRY) || \
    false)

static inline void trace_qcow2_cache_get_replace_entry(void *co, int c, int i)
{
    if (trace_event_get_state(TRACE_QCOW2_CACHE_GET_REPLACE_ENTRY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 96 "../xemu/block/trace-events"
            qemu_log("qcow2_cache_get_replace_entry " "co %p is_l2_cache %d index %d" "\n", co, c, i);
#line 1475 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_CACHE_GET_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_CACHE_GET_READ) || \
    false)

static inline void trace_qcow2_cache_get_read(void *co, int c, int i)
{
    if (trace_event_get_state(TRACE_QCOW2_CACHE_GET_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 97 "../xemu/block/trace-events"
            qemu_log("qcow2_cache_get_read " "co %p is_l2_cache %d index %d" "\n", co, c, i);
#line 1490 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_CACHE_GET_DONE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_CACHE_GET_DONE) || \
    false)

static inline void trace_qcow2_cache_get_done(void *co, int c, int i)
{
    if (trace_event_get_state(TRACE_QCOW2_CACHE_GET_DONE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 98 "../xemu/block/trace-events"
            qemu_log("qcow2_cache_get_done " "co %p is_l2_cache %d index %d" "\n", co, c, i);
#line 1505 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_CACHE_FLUSH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_CACHE_FLUSH) || \
    false)

static inline void trace_qcow2_cache_flush(void *co, int c)
{
    if (trace_event_get_state(TRACE_QCOW2_CACHE_FLUSH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 99 "../xemu/block/trace-events"
            qemu_log("qcow2_cache_flush " "co %p is_l2_cache %d" "\n", co, c);
#line 1520 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_CACHE_ENTRY_FLUSH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_CACHE_ENTRY_FLUSH) || \
    false)

static inline void trace_qcow2_cache_entry_flush(void *co, int c, int i)
{
    if (trace_event_get_state(TRACE_QCOW2_CACHE_ENTRY_FLUSH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 100 "../xemu/block/trace-events"
            qemu_log("qcow2_cache_entry_flush " "co %p is_l2_cache %d index %d" "\n", co, c, i);
#line 1535 "trace/trace-block.h"
        }
    }
}

#define TRACE_QCOW2_PROCESS_DISCARDS_FAILED_REGION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QCOW2_PROCESS_DISCARDS_FAILED_REGION) || \
    false)

static inline void trace_qcow2_process_discards_failed_region(uint64_t offset, uint64_t bytes, int ret)
{
    if (trace_event_get_state(TRACE_QCOW2_PROCESS_DISCARDS_FAILED_REGION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 103 "../xemu/block/trace-events"
            qemu_log("qcow2_process_discards_failed_region " "offset 0x%" PRIx64 " bytes 0x%" PRIx64 " ret %d" "\n", offset, bytes, ret);
#line 1550 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_ALLOC_L2_CACHE_ENTRY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_ALLOC_L2_CACHE_ENTRY) || \
    false)

static inline void trace_qed_alloc_l2_cache_entry(void *l2_cache, void *entry)
{
    if (trace_event_get_state(TRACE_QED_ALLOC_L2_CACHE_ENTRY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 106 "../xemu/block/trace-events"
            qemu_log("qed_alloc_l2_cache_entry " "l2_cache %p entry %p" "\n", l2_cache, entry);
#line 1565 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_UNREF_L2_CACHE_ENTRY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_UNREF_L2_CACHE_ENTRY) || \
    false)

static inline void trace_qed_unref_l2_cache_entry(void *entry, int ref)
{
    if (trace_event_get_state(TRACE_QED_UNREF_L2_CACHE_ENTRY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 107 "../xemu/block/trace-events"
            qemu_log("qed_unref_l2_cache_entry " "entry %p ref %d" "\n", entry, ref);
#line 1580 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_FIND_L2_CACHE_ENTRY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_FIND_L2_CACHE_ENTRY) || \
    false)

static inline void trace_qed_find_l2_cache_entry(void *l2_cache, void *entry, uint64_t offset, int ref)
{
    if (trace_event_get_state(TRACE_QED_FIND_L2_CACHE_ENTRY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 108 "../xemu/block/trace-events"
            qemu_log("qed_find_l2_cache_entry " "l2_cache %p entry %p offset %"PRIu64" ref %d" "\n", l2_cache, entry, offset, ref);
#line 1595 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_READ_TABLE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_READ_TABLE) || \
    false)

static inline void trace_qed_read_table(void *s, uint64_t offset, void *table)
{
    if (trace_event_get_state(TRACE_QED_READ_TABLE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 111 "../xemu/block/trace-events"
            qemu_log("qed_read_table " "s %p offset %"PRIu64" table %p" "\n", s, offset, table);
#line 1610 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_READ_TABLE_CB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_READ_TABLE_CB) || \
    false)

static inline void trace_qed_read_table_cb(void *s, void *table, int ret)
{
    if (trace_event_get_state(TRACE_QED_READ_TABLE_CB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 112 "../xemu/block/trace-events"
            qemu_log("qed_read_table_cb " "s %p table %p ret %d" "\n", s, table, ret);
#line 1625 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_WRITE_TABLE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_WRITE_TABLE) || \
    false)

static inline void trace_qed_write_table(void *s, uint64_t offset, void *table, unsigned int index, unsigned int n)
{
    if (trace_event_get_state(TRACE_QED_WRITE_TABLE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 113 "../xemu/block/trace-events"
            qemu_log("qed_write_table " "s %p offset %"PRIu64" table %p index %u n %u" "\n", s, offset, table, index, n);
#line 1640 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_WRITE_TABLE_CB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_WRITE_TABLE_CB) || \
    false)

static inline void trace_qed_write_table_cb(void *s, void *table, int flush, int ret)
{
    if (trace_event_get_state(TRACE_QED_WRITE_TABLE_CB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 114 "../xemu/block/trace-events"
            qemu_log("qed_write_table_cb " "s %p table %p flush %d ret %d" "\n", s, table, flush, ret);
#line 1655 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_NEED_CHECK_TIMER_CB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_NEED_CHECK_TIMER_CB) || \
    false)

static inline void trace_qed_need_check_timer_cb(void *s)
{
    if (trace_event_get_state(TRACE_QED_NEED_CHECK_TIMER_CB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 117 "../xemu/block/trace-events"
            qemu_log("qed_need_check_timer_cb " "s %p" "\n", s);
#line 1670 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_START_NEED_CHECK_TIMER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_START_NEED_CHECK_TIMER) || \
    false)

static inline void trace_qed_start_need_check_timer(void *s)
{
    if (trace_event_get_state(TRACE_QED_START_NEED_CHECK_TIMER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 118 "../xemu/block/trace-events"
            qemu_log("qed_start_need_check_timer " "s %p" "\n", s);
#line 1685 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_CANCEL_NEED_CHECK_TIMER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_CANCEL_NEED_CHECK_TIMER) || \
    false)

static inline void trace_qed_cancel_need_check_timer(void *s)
{
    if (trace_event_get_state(TRACE_QED_CANCEL_NEED_CHECK_TIMER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 119 "../xemu/block/trace-events"
            qemu_log("qed_cancel_need_check_timer " "s %p" "\n", s);
#line 1700 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_AIO_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_AIO_COMPLETE) || \
    false)

static inline void trace_qed_aio_complete(void *s, void *acb, int ret)
{
    if (trace_event_get_state(TRACE_QED_AIO_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 120 "../xemu/block/trace-events"
            qemu_log("qed_aio_complete " "s %p acb %p ret %d" "\n", s, acb, ret);
#line 1715 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_AIO_SETUP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_AIO_SETUP) || \
    false)

static inline void trace_qed_aio_setup(void *s, void *acb, int64_t sector_num, int nb_sectors, void *opaque, int flags)
{
    if (trace_event_get_state(TRACE_QED_AIO_SETUP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 121 "../xemu/block/trace-events"
            qemu_log("qed_aio_setup " "s %p acb %p sector_num %"PRId64" nb_sectors %d opaque %p flags 0x%x" "\n", s, acb, sector_num, nb_sectors, opaque, flags);
#line 1730 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_AIO_NEXT_IO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_AIO_NEXT_IO) || \
    false)

static inline void trace_qed_aio_next_io(void *s, void *acb, int ret, uint64_t cur_pos)
{
    if (trace_event_get_state(TRACE_QED_AIO_NEXT_IO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 122 "../xemu/block/trace-events"
            qemu_log("qed_aio_next_io " "s %p acb %p ret %d cur_pos %"PRIu64 "\n", s, acb, ret, cur_pos);
#line 1745 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_AIO_READ_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_AIO_READ_DATA) || \
    false)

static inline void trace_qed_aio_read_data(void *s, void *acb, int ret, uint64_t offset, size_t len)
{
    if (trace_event_get_state(TRACE_QED_AIO_READ_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 123 "../xemu/block/trace-events"
            qemu_log("qed_aio_read_data " "s %p acb %p ret %d offset %"PRIu64" len %zu" "\n", s, acb, ret, offset, len);
#line 1760 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_AIO_WRITE_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_AIO_WRITE_DATA) || \
    false)

static inline void trace_qed_aio_write_data(void *s, void *acb, int ret, uint64_t offset, size_t len)
{
    if (trace_event_get_state(TRACE_QED_AIO_WRITE_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 124 "../xemu/block/trace-events"
            qemu_log("qed_aio_write_data " "s %p acb %p ret %d offset %"PRIu64" len %zu" "\n", s, acb, ret, offset, len);
#line 1775 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_AIO_WRITE_PREFILL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_AIO_WRITE_PREFILL) || \
    false)

static inline void trace_qed_aio_write_prefill(void *s, void *acb, uint64_t start, size_t len, uint64_t offset)
{
    if (trace_event_get_state(TRACE_QED_AIO_WRITE_PREFILL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 125 "../xemu/block/trace-events"
            qemu_log("qed_aio_write_prefill " "s %p acb %p start %"PRIu64" len %zu offset %"PRIu64 "\n", s, acb, start, len, offset);
#line 1790 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_AIO_WRITE_POSTFILL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_AIO_WRITE_POSTFILL) || \
    false)

static inline void trace_qed_aio_write_postfill(void *s, void *acb, uint64_t start, size_t len, uint64_t offset)
{
    if (trace_event_get_state(TRACE_QED_AIO_WRITE_POSTFILL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 126 "../xemu/block/trace-events"
            qemu_log("qed_aio_write_postfill " "s %p acb %p start %"PRIu64" len %zu offset %"PRIu64 "\n", s, acb, start, len, offset);
#line 1805 "trace/trace-block.h"
        }
    }
}

#define TRACE_QED_AIO_WRITE_MAIN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QED_AIO_WRITE_MAIN) || \
    false)

static inline void trace_qed_aio_write_main(void *s, void *acb, int ret, uint64_t offset, size_t len)
{
    if (trace_event_get_state(TRACE_QED_AIO_WRITE_MAIN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 127 "../xemu/block/trace-events"
            qemu_log("qed_aio_write_main " "s %p acb %p ret %d offset %"PRIu64" len %zu" "\n", s, acb, ret, offset, len);
#line 1820 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_CONTROLLER_CAPABILITY_RAW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_CONTROLLER_CAPABILITY_RAW) || \
    false)

static inline void trace_nvme_controller_capability_raw(uint64_t value)
{
    if (trace_event_get_state(TRACE_NVME_CONTROLLER_CAPABILITY_RAW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 130 "../xemu/block/trace-events"
            qemu_log("nvme_controller_capability_raw " "0x%08"PRIx64 "\n", value);
#line 1835 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_CONTROLLER_CAPABILITY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_CONTROLLER_CAPABILITY) || \
    false)

static inline void trace_nvme_controller_capability(const char *desc, uint64_t value)
{
    if (trace_event_get_state(TRACE_NVME_CONTROLLER_CAPABILITY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 131 "../xemu/block/trace-events"
            qemu_log("nvme_controller_capability " "%s: %"PRIu64 "\n", desc, value);
#line 1850 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_CONTROLLER_SPEC_VERSION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_CONTROLLER_SPEC_VERSION) || \
    false)

static inline void trace_nvme_controller_spec_version(uint32_t mjr, uint32_t mnr, uint32_t ter)
{
    if (trace_event_get_state(TRACE_NVME_CONTROLLER_SPEC_VERSION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 132 "../xemu/block/trace-events"
            qemu_log("nvme_controller_spec_version " "Specification supported: %u.%u.%u" "\n", mjr, mnr, ter);
#line 1865 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_KICK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_KICK) || \
    false)

static inline void trace_nvme_kick(void *s, unsigned q_index)
{
    if (trace_event_get_state(TRACE_NVME_KICK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 133 "../xemu/block/trace-events"
            qemu_log("nvme_kick " "s %p q #%u" "\n", s, q_index);
#line 1880 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_DMA_FLUSH_QUEUE_WAIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_DMA_FLUSH_QUEUE_WAIT) || \
    false)

static inline void trace_nvme_dma_flush_queue_wait(void *s)
{
    if (trace_event_get_state(TRACE_NVME_DMA_FLUSH_QUEUE_WAIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 134 "../xemu/block/trace-events"
            qemu_log("nvme_dma_flush_queue_wait " "s %p" "\n", s);
#line 1895 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_ERROR) || \
    false)

static inline void trace_nvme_error(int cmd_specific, int sq_head, int sqid, int cid, int status)
{
    if (trace_event_get_state(TRACE_NVME_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 135 "../xemu/block/trace-events"
            qemu_log("nvme_error " "cmd_specific %d sq_head %d sqid %d cid %d status 0x%x" "\n", cmd_specific, sq_head, sqid, cid, status);
#line 1910 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_PROCESS_COMPLETION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_PROCESS_COMPLETION) || \
    false)

static inline void trace_nvme_process_completion(void *s, unsigned q_index, int inflight)
{
    if (trace_event_get_state(TRACE_NVME_PROCESS_COMPLETION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 136 "../xemu/block/trace-events"
            qemu_log("nvme_process_completion " "s %p q #%u inflight %d" "\n", s, q_index, inflight);
#line 1925 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_COMPLETE_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_COMPLETE_COMMAND) || \
    false)

static inline void trace_nvme_complete_command(void *s, unsigned q_index, int cid)
{
    if (trace_event_get_state(TRACE_NVME_COMPLETE_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 137 "../xemu/block/trace-events"
            qemu_log("nvme_complete_command " "s %p q #%u cid %d" "\n", s, q_index, cid);
#line 1940 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_SUBMIT_COMMAND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_SUBMIT_COMMAND) || \
    false)

static inline void trace_nvme_submit_command(void *s, unsigned q_index, int cid)
{
    if (trace_event_get_state(TRACE_NVME_SUBMIT_COMMAND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 138 "../xemu/block/trace-events"
            qemu_log("nvme_submit_command " "s %p q #%u cid %d" "\n", s, q_index, cid);
#line 1955 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_SUBMIT_COMMAND_RAW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_SUBMIT_COMMAND_RAW) || \
    false)

static inline void trace_nvme_submit_command_raw(int c0, int c1, int c2, int c3, int c4, int c5, int c6, int c7)
{
    if (trace_event_get_state(TRACE_NVME_SUBMIT_COMMAND_RAW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 139 "../xemu/block/trace-events"
            qemu_log("nvme_submit_command_raw " "%02x %02x %02x %02x %02x %02x %02x %02x" "\n", c0, c1, c2, c3, c4, c5, c6, c7);
#line 1970 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_HANDLE_EVENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_HANDLE_EVENT) || \
    false)

static inline void trace_nvme_handle_event(void *s)
{
    if (trace_event_get_state(TRACE_NVME_HANDLE_EVENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 140 "../xemu/block/trace-events"
            qemu_log("nvme_handle_event " "s %p" "\n", s);
#line 1985 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_POLL_QUEUE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_POLL_QUEUE) || \
    false)

static inline void trace_nvme_poll_queue(void *s, unsigned q_index)
{
    if (trace_event_get_state(TRACE_NVME_POLL_QUEUE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 141 "../xemu/block/trace-events"
            qemu_log("nvme_poll_queue " "s %p q #%u" "\n", s, q_index);
#line 2000 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_PRW_ALIGNED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_PRW_ALIGNED) || \
    false)

static inline void trace_nvme_prw_aligned(void *s, int is_write, uint64_t offset, uint64_t bytes, int flags, int niov)
{
    if (trace_event_get_state(TRACE_NVME_PRW_ALIGNED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 142 "../xemu/block/trace-events"
            qemu_log("nvme_prw_aligned " "s %p is_write %d offset 0x%"PRIx64" bytes %"PRId64" flags %d niov %d" "\n", s, is_write, offset, bytes, flags, niov);
#line 2015 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_WRITE_ZEROES_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_WRITE_ZEROES) || \
    false)

static inline void trace_nvme_write_zeroes(void *s, uint64_t offset, uint64_t bytes, int flags)
{
    if (trace_event_get_state(TRACE_NVME_WRITE_ZEROES)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 143 "../xemu/block/trace-events"
            qemu_log("nvme_write_zeroes " "s %p offset 0x%"PRIx64" bytes %"PRId64" flags %d" "\n", s, offset, bytes, flags);
#line 2030 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_QIOV_UNALIGNED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_QIOV_UNALIGNED) || \
    false)

static inline void trace_nvme_qiov_unaligned(const void *qiov, int n, void *base, size_t size, int align)
{
    if (trace_event_get_state(TRACE_NVME_QIOV_UNALIGNED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 144 "../xemu/block/trace-events"
            qemu_log("nvme_qiov_unaligned " "qiov %p n %d base %p size 0x%zx align 0x%x" "\n", qiov, n, base, size, align);
#line 2045 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_PRW_BUFFERED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_PRW_BUFFERED) || \
    false)

static inline void trace_nvme_prw_buffered(void *s, uint64_t offset, uint64_t bytes, int niov, int is_write)
{
    if (trace_event_get_state(TRACE_NVME_PRW_BUFFERED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 145 "../xemu/block/trace-events"
            qemu_log("nvme_prw_buffered " "s %p offset 0x%"PRIx64" bytes %"PRId64" niov %d is_write %d" "\n", s, offset, bytes, niov, is_write);
#line 2060 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_RW_DONE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_RW_DONE) || \
    false)

static inline void trace_nvme_rw_done(void *s, int is_write, uint64_t offset, uint64_t bytes, int ret)
{
    if (trace_event_get_state(TRACE_NVME_RW_DONE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 146 "../xemu/block/trace-events"
            qemu_log("nvme_rw_done " "s %p is_write %d offset 0x%"PRIx64" bytes %"PRId64" ret %d" "\n", s, is_write, offset, bytes, ret);
#line 2075 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_DSM_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_DSM) || \
    false)

static inline void trace_nvme_dsm(void *s, int64_t offset, int64_t bytes)
{
    if (trace_event_get_state(TRACE_NVME_DSM)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 147 "../xemu/block/trace-events"
            qemu_log("nvme_dsm " "s %p offset 0x%"PRIx64" bytes %"PRId64"" "\n", s, offset, bytes);
#line 2090 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_DSM_DONE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_DSM_DONE) || \
    false)

static inline void trace_nvme_dsm_done(void *s, int64_t offset, int64_t bytes, int ret)
{
    if (trace_event_get_state(TRACE_NVME_DSM_DONE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 148 "../xemu/block/trace-events"
            qemu_log("nvme_dsm_done " "s %p offset 0x%"PRIx64" bytes %"PRId64" ret %d" "\n", s, offset, bytes, ret);
#line 2105 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_DMA_MAP_FLUSH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_DMA_MAP_FLUSH) || \
    false)

static inline void trace_nvme_dma_map_flush(void *s)
{
    if (trace_event_get_state(TRACE_NVME_DMA_MAP_FLUSH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 149 "../xemu/block/trace-events"
            qemu_log("nvme_dma_map_flush " "s %p" "\n", s);
#line 2120 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_FREE_REQ_QUEUE_WAIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_FREE_REQ_QUEUE_WAIT) || \
    false)

static inline void trace_nvme_free_req_queue_wait(void *s, unsigned q_index)
{
    if (trace_event_get_state(TRACE_NVME_FREE_REQ_QUEUE_WAIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 150 "../xemu/block/trace-events"
            qemu_log("nvme_free_req_queue_wait " "s %p q #%u" "\n", s, q_index);
#line 2135 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_CREATE_QUEUE_PAIR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_CREATE_QUEUE_PAIR) || \
    false)

static inline void trace_nvme_create_queue_pair(unsigned q_index, void *q, size_t size, void *aio_context, int fd)
{
    if (trace_event_get_state(TRACE_NVME_CREATE_QUEUE_PAIR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 151 "../xemu/block/trace-events"
            qemu_log("nvme_create_queue_pair " "index %u q %p size %zu aioctx %p fd %d" "\n", q_index, q, size, aio_context, fd);
#line 2150 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_FREE_QUEUE_PAIR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_FREE_QUEUE_PAIR) || \
    false)

static inline void trace_nvme_free_queue_pair(unsigned q_index, void *q, void *cq, void *sq)
{
    if (trace_event_get_state(TRACE_NVME_FREE_QUEUE_PAIR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 152 "../xemu/block/trace-events"
            qemu_log("nvme_free_queue_pair " "index %u q %p cq %p sq %p" "\n", q_index, q, cq, sq);
#line 2165 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_CMD_MAP_QIOV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_CMD_MAP_QIOV) || \
    false)

static inline void trace_nvme_cmd_map_qiov(void *s, void *cmd, void *req, void *qiov, int entries)
{
    if (trace_event_get_state(TRACE_NVME_CMD_MAP_QIOV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 153 "../xemu/block/trace-events"
            qemu_log("nvme_cmd_map_qiov " "s %p cmd %p req %p qiov %p entries %d" "\n", s, cmd, req, qiov, entries);
#line 2180 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_CMD_MAP_QIOV_PAGES_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_CMD_MAP_QIOV_PAGES) || \
    false)

static inline void trace_nvme_cmd_map_qiov_pages(void *s, int i, uint64_t page)
{
    if (trace_event_get_state(TRACE_NVME_CMD_MAP_QIOV_PAGES)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 154 "../xemu/block/trace-events"
            qemu_log("nvme_cmd_map_qiov_pages " "s %p page[%d] 0x%"PRIx64 "\n", s, i, page);
#line 2195 "trace/trace-block.h"
        }
    }
}

#define TRACE_NVME_CMD_MAP_QIOV_IOV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NVME_CMD_MAP_QIOV_IOV) || \
    false)

static inline void trace_nvme_cmd_map_qiov_iov(void *s, int i, void *page, int pages)
{
    if (trace_event_get_state(TRACE_NVME_CMD_MAP_QIOV_IOV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 155 "../xemu/block/trace-events"
            qemu_log("nvme_cmd_map_qiov_iov " "s %p iov[%d] %p pages %d" "\n", s, i, page, pages);
#line 2210 "trace/trace-block.h"
        }
    }
}

#define TRACE_ISCSI_XCOPY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ISCSI_XCOPY) || \
    false)

static inline void trace_iscsi_xcopy(void *src_lun, uint64_t src_off, void *dst_lun, uint64_t dst_off, uint64_t bytes, int ret)
{
    if (trace_event_get_state(TRACE_ISCSI_XCOPY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 158 "../xemu/block/trace-events"
            qemu_log("iscsi_xcopy " "src_lun %p offset %"PRIu64" dst_lun %p offset %"PRIu64" bytes %"PRIu64" ret %d" "\n", src_lun, src_off, dst_lun, dst_off, bytes, ret);
#line 2225 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_PARSE_BLOCKSTATUS_COMPLIANCE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_PARSE_BLOCKSTATUS_COMPLIANCE) || \
    false)

static inline void trace_nbd_parse_blockstatus_compliance(const char *err)
{
    if (trace_event_get_state(TRACE_NBD_PARSE_BLOCKSTATUS_COMPLIANCE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 161 "../xemu/block/trace-events"
            qemu_log("nbd_parse_blockstatus_compliance " "ignoring extra data from non-compliant server: %s" "\n", err);
#line 2240 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_STRUCTURED_READ_COMPLIANCE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_STRUCTURED_READ_COMPLIANCE) || \
    false)

static inline void trace_nbd_structured_read_compliance(const char *type)
{
    if (trace_event_get_state(TRACE_NBD_STRUCTURED_READ_COMPLIANCE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 162 "../xemu/block/trace-events"
            qemu_log("nbd_structured_read_compliance " "server sent non-compliant unaligned read %s chunk" "\n", type);
#line 2255 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_EXTENDED_HEADERS_COMPLIANCE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_EXTENDED_HEADERS_COMPLIANCE) || \
    false)

static inline void trace_nbd_extended_headers_compliance(const char *type)
{
    if (trace_event_get_state(TRACE_NBD_EXTENDED_HEADERS_COMPLIANCE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 163 "../xemu/block/trace-events"
            qemu_log("nbd_extended_headers_compliance " "server sent non-compliant %s chunk not matching choice of extended headers" "\n", type);
#line 2270 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_READ_REPLY_ENTRY_FAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_READ_REPLY_ENTRY_FAIL) || \
    false)

static inline void trace_nbd_read_reply_entry_fail(int ret, const char *err)
{
    if (trace_event_get_state(TRACE_NBD_READ_REPLY_ENTRY_FAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 164 "../xemu/block/trace-events"
            qemu_log("nbd_read_reply_entry_fail " "ret = %d, err: %s" "\n", ret, err);
#line 2285 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_CO_REQUEST_FAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_CO_REQUEST_FAIL) || \
    false)

static inline void trace_nbd_co_request_fail(uint64_t from, uint64_t len, uint64_t handle, uint16_t flags, uint16_t type, const char *name, int ret, const char *err)
{
    if (trace_event_get_state(TRACE_NBD_CO_REQUEST_FAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 165 "../xemu/block/trace-events"
            qemu_log("nbd_co_request_fail " "Request failed { .from = %" PRIu64", .len = %" PRIu64 ", .handle = %" PRIu64 ", .flags = 0x%" PRIx16 ", .type = %" PRIu16 " (%s) } ret = %d, err: %s" "\n", from, len, handle, flags, type, name, ret, err);
#line 2300 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_CLIENT_HANDSHAKE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_CLIENT_HANDSHAKE) || \
    false)

static inline void trace_nbd_client_handshake(const char *export_name)
{
    if (trace_event_get_state(TRACE_NBD_CLIENT_HANDSHAKE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 166 "../xemu/block/trace-events"
            qemu_log("nbd_client_handshake " "export '%s'" "\n", export_name);
#line 2315 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_CLIENT_HANDSHAKE_SUCCESS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_CLIENT_HANDSHAKE_SUCCESS) || \
    false)

static inline void trace_nbd_client_handshake_success(const char *export_name)
{
    if (trace_event_get_state(TRACE_NBD_CLIENT_HANDSHAKE_SUCCESS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 167 "../xemu/block/trace-events"
            qemu_log("nbd_client_handshake_success " "export '%s'" "\n", export_name);
#line 2330 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_RECONNECT_ATTEMPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_RECONNECT_ATTEMPT) || \
    false)

static inline void trace_nbd_reconnect_attempt(unsigned in_flight)
{
    if (trace_event_get_state(TRACE_NBD_RECONNECT_ATTEMPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 168 "../xemu/block/trace-events"
            qemu_log("nbd_reconnect_attempt " "in_flight %u" "\n", in_flight);
#line 2345 "trace/trace-block.h"
        }
    }
}

#define TRACE_NBD_RECONNECT_ATTEMPT_RESULT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_NBD_RECONNECT_ATTEMPT_RESULT) || \
    false)

static inline void trace_nbd_reconnect_attempt_result(int ret, unsigned in_flight)
{
    if (trace_event_get_state(TRACE_NBD_RECONNECT_ATTEMPT_RESULT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 169 "../xemu/block/trace-events"
            qemu_log("nbd_reconnect_attempt_result " "ret %d in_flight %u" "\n", ret, in_flight);
#line 2360 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_RESTART_COROUTINE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_RESTART_COROUTINE) || \
    false)

static inline void trace_ssh_restart_coroutine(void *co)
{
    if (trace_event_get_state(TRACE_SSH_RESTART_COROUTINE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 172 "../xemu/block/trace-events"
            qemu_log("ssh_restart_coroutine " "co=%p" "\n", co);
#line 2375 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_FLUSH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_FLUSH) || \
    false)

static inline void trace_ssh_flush(void)
{
    if (trace_event_get_state(TRACE_SSH_FLUSH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 173 "../xemu/block/trace-events"
            qemu_log("ssh_flush " "fsync" "\n");
#line 2390 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_CHECK_HOST_KEY_KNOWNHOSTS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_CHECK_HOST_KEY_KNOWNHOSTS) || \
    false)

static inline void trace_ssh_check_host_key_knownhosts(void)
{
    if (trace_event_get_state(TRACE_SSH_CHECK_HOST_KEY_KNOWNHOSTS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 174 "../xemu/block/trace-events"
            qemu_log("ssh_check_host_key_knownhosts " "host key OK" "\n");
#line 2405 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_CONNECT_TO_SSH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_CONNECT_TO_SSH) || \
    false)

static inline void trace_ssh_connect_to_ssh(char *path, int flags, int mode)
{
    if (trace_event_get_state(TRACE_SSH_CONNECT_TO_SSH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 175 "../xemu/block/trace-events"
            qemu_log("ssh_connect_to_ssh " "opening file %s flags=0x%x creat_mode=0%o" "\n", path, flags, mode);
#line 2420 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_CO_YIELD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_CO_YIELD) || \
    false)

static inline void trace_ssh_co_yield(int sock, void *rd_handler, void *wr_handler)
{
    if (trace_event_get_state(TRACE_SSH_CO_YIELD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 176 "../xemu/block/trace-events"
            qemu_log("ssh_co_yield " "s->sock=%d rd_handler=%p wr_handler=%p" "\n", sock, rd_handler, wr_handler);
#line 2435 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_CO_YIELD_BACK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_CO_YIELD_BACK) || \
    false)

static inline void trace_ssh_co_yield_back(int sock)
{
    if (trace_event_get_state(TRACE_SSH_CO_YIELD_BACK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 177 "../xemu/block/trace-events"
            qemu_log("ssh_co_yield_back " "s->sock=%d - back" "\n", sock);
#line 2450 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_GETLENGTH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_GETLENGTH) || \
    false)

static inline void trace_ssh_getlength(int64_t length)
{
    if (trace_event_get_state(TRACE_SSH_GETLENGTH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 178 "../xemu/block/trace-events"
            qemu_log("ssh_getlength " "length=%" PRIi64 "\n", length);
#line 2465 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_CO_CREATE_OPTS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_CO_CREATE_OPTS) || \
    false)

static inline void trace_ssh_co_create_opts(uint64_t size)
{
    if (trace_event_get_state(TRACE_SSH_CO_CREATE_OPTS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 179 "../xemu/block/trace-events"
            qemu_log("ssh_co_create_opts " "total_size=%" PRIu64 "\n", size);
#line 2480 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_READ) || \
    false)

static inline void trace_ssh_read(int64_t offset, size_t size)
{
    if (trace_event_get_state(TRACE_SSH_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 180 "../xemu/block/trace-events"
            qemu_log("ssh_read " "offset=%" PRIi64 " size=%zu" "\n", offset, size);
#line 2495 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_READ_BUF_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_READ_BUF) || \
    false)

static inline void trace_ssh_read_buf(void *buf, size_t size, size_t actual_size)
{
    if (trace_event_get_state(TRACE_SSH_READ_BUF)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 181 "../xemu/block/trace-events"
            qemu_log("ssh_read_buf " "sftp_read buf=%p size=%zu (actual size=%zu)" "\n", buf, size, actual_size);
#line 2510 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_READ_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_READ_RETURN) || \
    false)

static inline void trace_ssh_read_return(ssize_t ret, int sftp_err)
{
    if (trace_event_get_state(TRACE_SSH_READ_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 182 "../xemu/block/trace-events"
            qemu_log("ssh_read_return " "sftp_read returned %zd (sftp error=%d)" "\n", ret, sftp_err);
#line 2525 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_WRITE) || \
    false)

static inline void trace_ssh_write(int64_t offset, size_t size)
{
    if (trace_event_get_state(TRACE_SSH_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 183 "../xemu/block/trace-events"
            qemu_log("ssh_write " "offset=%" PRIi64 " size=%zu" "\n", offset, size);
#line 2540 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_WRITE_BUF_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_WRITE_BUF) || \
    false)

static inline void trace_ssh_write_buf(void *buf, size_t size, size_t actual_size)
{
    if (trace_event_get_state(TRACE_SSH_WRITE_BUF)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 184 "../xemu/block/trace-events"
            qemu_log("ssh_write_buf " "sftp_write buf=%p size=%zu (actual size=%zu)" "\n", buf, size, actual_size);
#line 2555 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_WRITE_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_WRITE_RETURN) || \
    false)

static inline void trace_ssh_write_return(ssize_t ret, int sftp_err)
{
    if (trace_event_get_state(TRACE_SSH_WRITE_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 185 "../xemu/block/trace-events"
            qemu_log("ssh_write_return " "sftp_write returned %zd (sftp error=%d)" "\n", ret, sftp_err);
#line 2570 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_SEEK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_SEEK) || \
    false)

static inline void trace_ssh_seek(int64_t offset)
{
    if (trace_event_get_state(TRACE_SSH_SEEK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 186 "../xemu/block/trace-events"
            qemu_log("ssh_seek " "seeking to offset=%" PRIi64 "\n", offset);
#line 2585 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_AUTH_METHODS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_AUTH_METHODS) || \
    false)

static inline void trace_ssh_auth_methods(int methods)
{
    if (trace_event_get_state(TRACE_SSH_AUTH_METHODS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 187 "../xemu/block/trace-events"
            qemu_log("ssh_auth_methods " "auth methods=0x%x" "\n", methods);
#line 2600 "trace/trace-block.h"
        }
    }
}

#define TRACE_SSH_SERVER_STATUS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SSH_SERVER_STATUS) || \
    false)

static inline void trace_ssh_server_status(int status)
{
    if (trace_event_get_state(TRACE_SSH_SERVER_STATUS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 188 "../xemu/block/trace-events"
            qemu_log("ssh_server_status " "server status=%d" "\n", status);
#line 2615 "trace/trace-block.h"
        }
    }
}

#define TRACE_CURL_TIMER_CB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_CURL_TIMER_CB) || \
    false)

static inline void trace_curl_timer_cb(long timeout_ms)
{
    if (trace_event_get_state(TRACE_CURL_TIMER_CB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 191 "../xemu/block/trace-events"
            qemu_log("curl_timer_cb " "timer callback timeout_ms %ld" "\n", timeout_ms);
#line 2630 "trace/trace-block.h"
        }
    }
}

#define TRACE_CURL_SOCK_CB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_CURL_SOCK_CB) || \
    false)

static inline void trace_curl_sock_cb(int action, int fd)
{
    if (trace_event_get_state(TRACE_CURL_SOCK_CB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 192 "../xemu/block/trace-events"
            qemu_log("curl_sock_cb " "sock action %d on fd %d" "\n", action, fd);
#line 2645 "trace/trace-block.h"
        }
    }
}

#define TRACE_CURL_READ_CB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_CURL_READ_CB) || \
    false)

static inline void trace_curl_read_cb(size_t realsize)
{
    if (trace_event_get_state(TRACE_CURL_READ_CB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 193 "../xemu/block/trace-events"
            qemu_log("curl_read_cb " "just reading %zu bytes" "\n", realsize);
#line 2660 "trace/trace-block.h"
        }
    }
}

#define TRACE_CURL_OPEN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_CURL_OPEN) || \
    false)

static inline void trace_curl_open(const char *file)
{
    if (trace_event_get_state(TRACE_CURL_OPEN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 194 "../xemu/block/trace-events"
            qemu_log("curl_open " "opening %s" "\n", file);
#line 2675 "trace/trace-block.h"
        }
    }
}

#define TRACE_CURL_OPEN_SIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_CURL_OPEN_SIZE) || \
    false)

static inline void trace_curl_open_size(uint64_t size)
{
    if (trace_event_get_state(TRACE_CURL_OPEN_SIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 195 "../xemu/block/trace-events"
            qemu_log("curl_open_size " "size = %" PRIu64 "\n", size);
#line 2690 "trace/trace-block.h"
        }
    }
}

#define TRACE_CURL_SETUP_PREADV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_CURL_SETUP_PREADV) || \
    false)

static inline void trace_curl_setup_preadv(uint64_t bytes, uint64_t start, const char *range)
{
    if (trace_event_get_state(TRACE_CURL_SETUP_PREADV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 196 "../xemu/block/trace-events"
            qemu_log("curl_setup_preadv " "reading %" PRIu64 " at %" PRIu64 " (%s)" "\n", bytes, start, range);
#line 2705 "trace/trace-block.h"
        }
    }
}

#define TRACE_CURL_CLOSE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_CURL_CLOSE) || \
    false)

static inline void trace_curl_close(void)
{
    if (trace_event_get_state(TRACE_CURL_CLOSE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 197 "../xemu/block/trace-events"
            qemu_log("curl_close " "close" "\n");
#line 2720 "trace/trace-block.h"
        }
    }
}

#define TRACE_FILE_COPY_FILE_RANGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_FILE_COPY_FILE_RANGE) || \
    false)

static inline void trace_file_copy_file_range(void *bs, int src, int64_t src_off, int dst, int64_t dst_off, int64_t bytes, int flags, int64_t ret)
{
    if (trace_event_get_state(TRACE_FILE_COPY_FILE_RANGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 200 "../xemu/block/trace-events"
            qemu_log("file_copy_file_range " "bs %p src_fd %d offset %"PRIu64" dst_fd %d offset %"PRIu64" bytes %"PRIu64" flags %d ret %"PRId64 "\n", bs, src, src_off, dst, dst_off, bytes, flags, ret);
#line 2735 "trace/trace-block.h"
        }
    }
}

#define TRACE_FILE_FINDEJECTABLEOPTICALMEDIA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_FILE_FINDEJECTABLEOPTICALMEDIA) || \
    false)

static inline void trace_file_FindEjectableOpticalMedia(const char *media)
{
    if (trace_event_get_state(TRACE_FILE_FINDEJECTABLEOPTICALMEDIA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 201 "../xemu/block/trace-events"
            qemu_log("file_FindEjectableOpticalMedia " "Matching using %s" "\n", media);
#line 2750 "trace/trace-block.h"
        }
    }
}

#define TRACE_FILE_SETUP_CDROM_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_FILE_SETUP_CDROM) || \
    false)

static inline void trace_file_setup_cdrom(const char *partition)
{
    if (trace_event_get_state(TRACE_FILE_SETUP_CDROM)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 202 "../xemu/block/trace-events"
            qemu_log("file_setup_cdrom " "Using %s as optical disc" "\n", partition);
#line 2765 "trace/trace-block.h"
        }
    }
}

#define TRACE_FILE_HDEV_IS_SG_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_FILE_HDEV_IS_SG) || \
    false)

static inline void trace_file_hdev_is_sg(int type, int version)
{
    if (trace_event_get_state(TRACE_FILE_HDEV_IS_SG)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 203 "../xemu/block/trace-events"
            qemu_log("file_hdev_is_sg " "SG device found: type=%d, version=%d" "\n", type, version);
#line 2780 "trace/trace-block.h"
        }
    }
}

#define TRACE_FILE_FLUSH_FDATASYNC_FAILED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_FILE_FLUSH_FDATASYNC_FAILED) || \
    false)

static inline void trace_file_flush_fdatasync_failed(int err)
{
    if (trace_event_get_state(TRACE_FILE_FLUSH_FDATASYNC_FAILED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 204 "../xemu/block/trace-events"
            qemu_log("file_flush_fdatasync_failed " "errno %d" "\n", err);
#line 2795 "trace/trace-block.h"
        }
    }
}

#define TRACE_ZBD_ZONE_REPORT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ZBD_ZONE_REPORT) || \
    false)

static inline void trace_zbd_zone_report(void *bs, unsigned int nr_zones, int64_t sector)
{
    if (trace_event_get_state(TRACE_ZBD_ZONE_REPORT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 205 "../xemu/block/trace-events"
            qemu_log("zbd_zone_report " "bs %p report %d zones starting at sector offset 0x%" PRIx64 "" "\n", bs, nr_zones, sector);
#line 2810 "trace/trace-block.h"
        }
    }
}

#define TRACE_ZBD_ZONE_MGMT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ZBD_ZONE_MGMT) || \
    false)

static inline void trace_zbd_zone_mgmt(void *bs, const char *op_name, int64_t sector, int64_t len)
{
    if (trace_event_get_state(TRACE_ZBD_ZONE_MGMT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 206 "../xemu/block/trace-events"
            qemu_log("zbd_zone_mgmt " "bs %p %s starts at sector offset 0x%" PRIx64 " over a range of 0x%" PRIx64 " sectors" "\n", bs, op_name, sector, len);
#line 2825 "trace/trace-block.h"
        }
    }
}

#define TRACE_ZBD_ZONE_APPEND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ZBD_ZONE_APPEND) || \
    false)

static inline void trace_zbd_zone_append(void *bs, int64_t sector)
{
    if (trace_event_get_state(TRACE_ZBD_ZONE_APPEND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 207 "../xemu/block/trace-events"
            qemu_log("zbd_zone_append " "bs %p append at sector offset 0x%" PRIx64 "" "\n", bs, sector);
#line 2840 "trace/trace-block.h"
        }
    }
}

#define TRACE_ZBD_ZONE_APPEND_COMPLETE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ZBD_ZONE_APPEND_COMPLETE) || \
    false)

static inline void trace_zbd_zone_append_complete(void *bs, int64_t sector)
{
    if (trace_event_get_state(TRACE_ZBD_ZONE_APPEND_COMPLETE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 208 "../xemu/block/trace-events"
            qemu_log("zbd_zone_append_complete " "bs %p returns append sector 0x%" PRIx64 "" "\n", bs, sector);
#line 2855 "trace/trace-block.h"
        }
    }
}

#define TRACE_SFTP_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SFTP_ERROR) || \
    false)

static inline void trace_sftp_error(const char *op, const char *ssh_err, int ssh_err_code, int sftp_err_code)
{
    if (trace_event_get_state(TRACE_SFTP_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 211 "../xemu/block/trace-events"
            qemu_log("sftp_error " "%s failed: %s (libssh error code: %d, sftp error code: %d)" "\n", op, ssh_err, ssh_err_code, sftp_err_code);
#line 2870 "trace/trace-block.h"
        }
    }
}
#endif /* TRACE_BLOCK_GENERATED_TRACERS_H */
