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

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

uint16_t _TRACE_NBD_SEND_OPTION_REQUEST_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_OPTION_REPLY_DSTATE;
uint16_t _TRACE_NBD_SERVER_ERROR_MSG_DSTATE;
uint16_t _TRACE_NBD_REPLY_ERR_IGNORED_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_LIST_DSTATE;
uint16_t _TRACE_NBD_OPT_INFO_GO_START_DSTATE;
uint16_t _TRACE_NBD_OPT_INFO_GO_SUCCESS_DSTATE;
uint16_t _TRACE_NBD_OPT_INFO_UNKNOWN_DSTATE;
uint16_t _TRACE_NBD_OPT_INFO_BLOCK_SIZE_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_QUERY_EXPORTS_START_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_QUERY_EXPORTS_SUCCESS_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_STARTTLS_NEW_CLIENT_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_STARTTLS_TLS_HANDSHAKE_DSTATE;
uint16_t _TRACE_NBD_OPT_META_REQUEST_DSTATE;
uint16_t _TRACE_NBD_OPT_META_REPLY_DSTATE;
uint16_t _TRACE_NBD_START_NEGOTIATE_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_NEGOTIATE_MAGIC_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_NEGOTIATE_SERVER_FLAGS_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_NEGOTIATE_NAME_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_NEGOTIATE_SIZE_FLAGS_DSTATE;
uint16_t _TRACE_NBD_INIT_SET_SOCKET_DSTATE;
uint16_t _TRACE_NBD_INIT_SET_BLOCK_SIZE_DSTATE;
uint16_t _TRACE_NBD_INIT_SET_SIZE_DSTATE;
uint16_t _TRACE_NBD_INIT_TRAILING_BYTES_DSTATE;
uint16_t _TRACE_NBD_INIT_SET_READONLY_DSTATE;
uint16_t _TRACE_NBD_INIT_FINISH_DSTATE;
uint16_t _TRACE_NBD_CLIENT_LOOP_DSTATE;
uint16_t _TRACE_NBD_CLIENT_LOOP_RET_DSTATE;
uint16_t _TRACE_NBD_CLIENT_CLEAR_QUEUE_DSTATE;
uint16_t _TRACE_NBD_CLIENT_CLEAR_SOCKET_DSTATE;
uint16_t _TRACE_NBD_SEND_REQUEST_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_SIMPLE_REPLY_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_STRUCTURED_REPLY_CHUNK_DSTATE;
uint16_t _TRACE_NBD_UNKNOWN_ERROR_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_SEND_REP_LEN_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_SEND_REP_ERR_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_SEND_REP_LIST_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_REQUEST_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_SEND_INFO_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUESTS_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUEST_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_HANDLE_INFO_BLOCK_SIZE_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_HANDSHAKE_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_META_CONTEXT_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_META_QUERY_SKIP_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_META_QUERY_PARSE_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_META_QUERY_REPLY_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_OPTIONS_FLAGS_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_MAGIC_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_OPTION_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_BEGIN_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_NEW_STYLE_SIZE_FLAGS_DSTATE;
uint16_t _TRACE_NBD_NEGOTIATE_SUCCESS_DSTATE;
uint16_t _TRACE_NBD_RECEIVE_REQUEST_DSTATE;
uint16_t _TRACE_NBD_BLK_AIO_ATTACHED_DSTATE;
uint16_t _TRACE_NBD_BLK_AIO_DETACH_DSTATE;
uint16_t _TRACE_NBD_CO_SEND_SIMPLE_REPLY_DSTATE;
uint16_t _TRACE_NBD_CO_SEND_STRUCTURED_DONE_DSTATE;
uint16_t _TRACE_NBD_CO_SEND_STRUCTURED_READ_DSTATE;
uint16_t _TRACE_NBD_CO_SEND_STRUCTURED_READ_HOLE_DSTATE;
uint16_t _TRACE_NBD_CO_SEND_EXTENTS_DSTATE;
uint16_t _TRACE_NBD_CO_SEND_STRUCTURED_ERROR_DSTATE;
uint16_t _TRACE_NBD_CO_RECEIVE_REQUEST_DECODE_TYPE_DSTATE;
uint16_t _TRACE_NBD_CO_RECEIVE_REQUEST_PAYLOAD_RECEIVED_DSTATE;
uint16_t _TRACE_NBD_CO_RECEIVE_ALIGN_COMPLIANCE_DSTATE;
uint16_t _TRACE_NBD_TRIP_DSTATE;
TraceEvent _TRACE_NBD_SEND_OPTION_REQUEST_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_send_option_request",
    .sstate = TRACE_NBD_SEND_OPTION_REQUEST_ENABLED,
    .dstate = &_TRACE_NBD_SEND_OPTION_REQUEST_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_OPTION_REPLY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_option_reply",
    .sstate = TRACE_NBD_RECEIVE_OPTION_REPLY_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_OPTION_REPLY_DSTATE 
};
TraceEvent _TRACE_NBD_SERVER_ERROR_MSG_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_server_error_msg",
    .sstate = TRACE_NBD_SERVER_ERROR_MSG_ENABLED,
    .dstate = &_TRACE_NBD_SERVER_ERROR_MSG_DSTATE 
};
TraceEvent _TRACE_NBD_REPLY_ERR_IGNORED_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_reply_err_ignored",
    .sstate = TRACE_NBD_REPLY_ERR_IGNORED_ENABLED,
    .dstate = &_TRACE_NBD_REPLY_ERR_IGNORED_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_LIST_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_list",
    .sstate = TRACE_NBD_RECEIVE_LIST_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_LIST_DSTATE 
};
TraceEvent _TRACE_NBD_OPT_INFO_GO_START_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_opt_info_go_start",
    .sstate = TRACE_NBD_OPT_INFO_GO_START_ENABLED,
    .dstate = &_TRACE_NBD_OPT_INFO_GO_START_DSTATE 
};
TraceEvent _TRACE_NBD_OPT_INFO_GO_SUCCESS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_opt_info_go_success",
    .sstate = TRACE_NBD_OPT_INFO_GO_SUCCESS_ENABLED,
    .dstate = &_TRACE_NBD_OPT_INFO_GO_SUCCESS_DSTATE 
};
TraceEvent _TRACE_NBD_OPT_INFO_UNKNOWN_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_opt_info_unknown",
    .sstate = TRACE_NBD_OPT_INFO_UNKNOWN_ENABLED,
    .dstate = &_TRACE_NBD_OPT_INFO_UNKNOWN_DSTATE 
};
TraceEvent _TRACE_NBD_OPT_INFO_BLOCK_SIZE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_opt_info_block_size",
    .sstate = TRACE_NBD_OPT_INFO_BLOCK_SIZE_ENABLED,
    .dstate = &_TRACE_NBD_OPT_INFO_BLOCK_SIZE_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_QUERY_EXPORTS_START_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_query_exports_start",
    .sstate = TRACE_NBD_RECEIVE_QUERY_EXPORTS_START_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_QUERY_EXPORTS_START_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_QUERY_EXPORTS_SUCCESS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_query_exports_success",
    .sstate = TRACE_NBD_RECEIVE_QUERY_EXPORTS_SUCCESS_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_QUERY_EXPORTS_SUCCESS_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_STARTTLS_NEW_CLIENT_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_starttls_new_client",
    .sstate = TRACE_NBD_RECEIVE_STARTTLS_NEW_CLIENT_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_STARTTLS_NEW_CLIENT_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_STARTTLS_TLS_HANDSHAKE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_starttls_tls_handshake",
    .sstate = TRACE_NBD_RECEIVE_STARTTLS_TLS_HANDSHAKE_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_STARTTLS_TLS_HANDSHAKE_DSTATE 
};
TraceEvent _TRACE_NBD_OPT_META_REQUEST_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_opt_meta_request",
    .sstate = TRACE_NBD_OPT_META_REQUEST_ENABLED,
    .dstate = &_TRACE_NBD_OPT_META_REQUEST_DSTATE 
};
TraceEvent _TRACE_NBD_OPT_META_REPLY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_opt_meta_reply",
    .sstate = TRACE_NBD_OPT_META_REPLY_ENABLED,
    .dstate = &_TRACE_NBD_OPT_META_REPLY_DSTATE 
};
TraceEvent _TRACE_NBD_START_NEGOTIATE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_start_negotiate",
    .sstate = TRACE_NBD_START_NEGOTIATE_ENABLED,
    .dstate = &_TRACE_NBD_START_NEGOTIATE_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_NEGOTIATE_MAGIC_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_negotiate_magic",
    .sstate = TRACE_NBD_RECEIVE_NEGOTIATE_MAGIC_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_NEGOTIATE_MAGIC_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_NEGOTIATE_SERVER_FLAGS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_negotiate_server_flags",
    .sstate = TRACE_NBD_RECEIVE_NEGOTIATE_SERVER_FLAGS_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_NEGOTIATE_SERVER_FLAGS_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_NEGOTIATE_NAME_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_negotiate_name",
    .sstate = TRACE_NBD_RECEIVE_NEGOTIATE_NAME_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_NEGOTIATE_NAME_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_NEGOTIATE_SIZE_FLAGS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_negotiate_size_flags",
    .sstate = TRACE_NBD_RECEIVE_NEGOTIATE_SIZE_FLAGS_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_NEGOTIATE_SIZE_FLAGS_DSTATE 
};
TraceEvent _TRACE_NBD_INIT_SET_SOCKET_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_init_set_socket",
    .sstate = TRACE_NBD_INIT_SET_SOCKET_ENABLED,
    .dstate = &_TRACE_NBD_INIT_SET_SOCKET_DSTATE 
};
TraceEvent _TRACE_NBD_INIT_SET_BLOCK_SIZE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_init_set_block_size",
    .sstate = TRACE_NBD_INIT_SET_BLOCK_SIZE_ENABLED,
    .dstate = &_TRACE_NBD_INIT_SET_BLOCK_SIZE_DSTATE 
};
TraceEvent _TRACE_NBD_INIT_SET_SIZE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_init_set_size",
    .sstate = TRACE_NBD_INIT_SET_SIZE_ENABLED,
    .dstate = &_TRACE_NBD_INIT_SET_SIZE_DSTATE 
};
TraceEvent _TRACE_NBD_INIT_TRAILING_BYTES_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_init_trailing_bytes",
    .sstate = TRACE_NBD_INIT_TRAILING_BYTES_ENABLED,
    .dstate = &_TRACE_NBD_INIT_TRAILING_BYTES_DSTATE 
};
TraceEvent _TRACE_NBD_INIT_SET_READONLY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_init_set_readonly",
    .sstate = TRACE_NBD_INIT_SET_READONLY_ENABLED,
    .dstate = &_TRACE_NBD_INIT_SET_READONLY_DSTATE 
};
TraceEvent _TRACE_NBD_INIT_FINISH_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_init_finish",
    .sstate = TRACE_NBD_INIT_FINISH_ENABLED,
    .dstate = &_TRACE_NBD_INIT_FINISH_DSTATE 
};
TraceEvent _TRACE_NBD_CLIENT_LOOP_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_client_loop",
    .sstate = TRACE_NBD_CLIENT_LOOP_ENABLED,
    .dstate = &_TRACE_NBD_CLIENT_LOOP_DSTATE 
};
TraceEvent _TRACE_NBD_CLIENT_LOOP_RET_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_client_loop_ret",
    .sstate = TRACE_NBD_CLIENT_LOOP_RET_ENABLED,
    .dstate = &_TRACE_NBD_CLIENT_LOOP_RET_DSTATE 
};
TraceEvent _TRACE_NBD_CLIENT_CLEAR_QUEUE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_client_clear_queue",
    .sstate = TRACE_NBD_CLIENT_CLEAR_QUEUE_ENABLED,
    .dstate = &_TRACE_NBD_CLIENT_CLEAR_QUEUE_DSTATE 
};
TraceEvent _TRACE_NBD_CLIENT_CLEAR_SOCKET_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_client_clear_socket",
    .sstate = TRACE_NBD_CLIENT_CLEAR_SOCKET_ENABLED,
    .dstate = &_TRACE_NBD_CLIENT_CLEAR_SOCKET_DSTATE 
};
TraceEvent _TRACE_NBD_SEND_REQUEST_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_send_request",
    .sstate = TRACE_NBD_SEND_REQUEST_ENABLED,
    .dstate = &_TRACE_NBD_SEND_REQUEST_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_SIMPLE_REPLY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_simple_reply",
    .sstate = TRACE_NBD_RECEIVE_SIMPLE_REPLY_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_SIMPLE_REPLY_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_STRUCTURED_REPLY_CHUNK_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_structured_reply_chunk",
    .sstate = TRACE_NBD_RECEIVE_STRUCTURED_REPLY_CHUNK_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_STRUCTURED_REPLY_CHUNK_DSTATE 
};
TraceEvent _TRACE_NBD_UNKNOWN_ERROR_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_unknown_error",
    .sstate = TRACE_NBD_UNKNOWN_ERROR_ENABLED,
    .dstate = &_TRACE_NBD_UNKNOWN_ERROR_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_SEND_REP_LEN_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_send_rep_len",
    .sstate = TRACE_NBD_NEGOTIATE_SEND_REP_LEN_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_SEND_REP_LEN_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_SEND_REP_ERR_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_send_rep_err",
    .sstate = TRACE_NBD_NEGOTIATE_SEND_REP_ERR_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_SEND_REP_ERR_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_SEND_REP_LIST_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_send_rep_list",
    .sstate = TRACE_NBD_NEGOTIATE_SEND_REP_LIST_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_SEND_REP_LIST_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_handle_export_name",
    .sstate = TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_REQUEST_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_handle_export_name_request",
    .sstate = TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_REQUEST_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_REQUEST_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_SEND_INFO_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_send_info",
    .sstate = TRACE_NBD_NEGOTIATE_SEND_INFO_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_SEND_INFO_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUESTS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_handle_info_requests",
    .sstate = TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUESTS_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUESTS_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUEST_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_handle_info_request",
    .sstate = TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUEST_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUEST_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_HANDLE_INFO_BLOCK_SIZE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_handle_info_block_size",
    .sstate = TRACE_NBD_NEGOTIATE_HANDLE_INFO_BLOCK_SIZE_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_HANDLE_INFO_BLOCK_SIZE_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_handle_starttls",
    .sstate = TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_HANDSHAKE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_handle_starttls_handshake",
    .sstate = TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_HANDSHAKE_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_HANDSHAKE_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_META_CONTEXT_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_meta_context",
    .sstate = TRACE_NBD_NEGOTIATE_META_CONTEXT_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_META_CONTEXT_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_META_QUERY_SKIP_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_meta_query_skip",
    .sstate = TRACE_NBD_NEGOTIATE_META_QUERY_SKIP_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_META_QUERY_SKIP_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_META_QUERY_PARSE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_meta_query_parse",
    .sstate = TRACE_NBD_NEGOTIATE_META_QUERY_PARSE_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_META_QUERY_PARSE_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_META_QUERY_REPLY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_meta_query_reply",
    .sstate = TRACE_NBD_NEGOTIATE_META_QUERY_REPLY_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_META_QUERY_REPLY_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_OPTIONS_FLAGS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_options_flags",
    .sstate = TRACE_NBD_NEGOTIATE_OPTIONS_FLAGS_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_OPTIONS_FLAGS_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_MAGIC_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_options_check_magic",
    .sstate = TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_MAGIC_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_MAGIC_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_OPTION_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_options_check_option",
    .sstate = TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_OPTION_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_OPTION_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_BEGIN_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_begin",
    .sstate = TRACE_NBD_NEGOTIATE_BEGIN_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_BEGIN_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_NEW_STYLE_SIZE_FLAGS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_new_style_size_flags",
    .sstate = TRACE_NBD_NEGOTIATE_NEW_STYLE_SIZE_FLAGS_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_NEW_STYLE_SIZE_FLAGS_DSTATE 
};
TraceEvent _TRACE_NBD_NEGOTIATE_SUCCESS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_negotiate_success",
    .sstate = TRACE_NBD_NEGOTIATE_SUCCESS_ENABLED,
    .dstate = &_TRACE_NBD_NEGOTIATE_SUCCESS_DSTATE 
};
TraceEvent _TRACE_NBD_RECEIVE_REQUEST_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_receive_request",
    .sstate = TRACE_NBD_RECEIVE_REQUEST_ENABLED,
    .dstate = &_TRACE_NBD_RECEIVE_REQUEST_DSTATE 
};
TraceEvent _TRACE_NBD_BLK_AIO_ATTACHED_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_blk_aio_attached",
    .sstate = TRACE_NBD_BLK_AIO_ATTACHED_ENABLED,
    .dstate = &_TRACE_NBD_BLK_AIO_ATTACHED_DSTATE 
};
TraceEvent _TRACE_NBD_BLK_AIO_DETACH_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_blk_aio_detach",
    .sstate = TRACE_NBD_BLK_AIO_DETACH_ENABLED,
    .dstate = &_TRACE_NBD_BLK_AIO_DETACH_DSTATE 
};
TraceEvent _TRACE_NBD_CO_SEND_SIMPLE_REPLY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_send_simple_reply",
    .sstate = TRACE_NBD_CO_SEND_SIMPLE_REPLY_ENABLED,
    .dstate = &_TRACE_NBD_CO_SEND_SIMPLE_REPLY_DSTATE 
};
TraceEvent _TRACE_NBD_CO_SEND_STRUCTURED_DONE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_send_structured_done",
    .sstate = TRACE_NBD_CO_SEND_STRUCTURED_DONE_ENABLED,
    .dstate = &_TRACE_NBD_CO_SEND_STRUCTURED_DONE_DSTATE 
};
TraceEvent _TRACE_NBD_CO_SEND_STRUCTURED_READ_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_send_structured_read",
    .sstate = TRACE_NBD_CO_SEND_STRUCTURED_READ_ENABLED,
    .dstate = &_TRACE_NBD_CO_SEND_STRUCTURED_READ_DSTATE 
};
TraceEvent _TRACE_NBD_CO_SEND_STRUCTURED_READ_HOLE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_send_structured_read_hole",
    .sstate = TRACE_NBD_CO_SEND_STRUCTURED_READ_HOLE_ENABLED,
    .dstate = &_TRACE_NBD_CO_SEND_STRUCTURED_READ_HOLE_DSTATE 
};
TraceEvent _TRACE_NBD_CO_SEND_EXTENTS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_send_extents",
    .sstate = TRACE_NBD_CO_SEND_EXTENTS_ENABLED,
    .dstate = &_TRACE_NBD_CO_SEND_EXTENTS_DSTATE 
};
TraceEvent _TRACE_NBD_CO_SEND_STRUCTURED_ERROR_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_send_structured_error",
    .sstate = TRACE_NBD_CO_SEND_STRUCTURED_ERROR_ENABLED,
    .dstate = &_TRACE_NBD_CO_SEND_STRUCTURED_ERROR_DSTATE 
};
TraceEvent _TRACE_NBD_CO_RECEIVE_REQUEST_DECODE_TYPE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_receive_request_decode_type",
    .sstate = TRACE_NBD_CO_RECEIVE_REQUEST_DECODE_TYPE_ENABLED,
    .dstate = &_TRACE_NBD_CO_RECEIVE_REQUEST_DECODE_TYPE_DSTATE 
};
TraceEvent _TRACE_NBD_CO_RECEIVE_REQUEST_PAYLOAD_RECEIVED_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_receive_request_payload_received",
    .sstate = TRACE_NBD_CO_RECEIVE_REQUEST_PAYLOAD_RECEIVED_ENABLED,
    .dstate = &_TRACE_NBD_CO_RECEIVE_REQUEST_PAYLOAD_RECEIVED_DSTATE 
};
TraceEvent _TRACE_NBD_CO_RECEIVE_ALIGN_COMPLIANCE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_co_receive_align_compliance",
    .sstate = TRACE_NBD_CO_RECEIVE_ALIGN_COMPLIANCE_ENABLED,
    .dstate = &_TRACE_NBD_CO_RECEIVE_ALIGN_COMPLIANCE_DSTATE 
};
TraceEvent _TRACE_NBD_TRIP_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "nbd_trip",
    .sstate = TRACE_NBD_TRIP_ENABLED,
    .dstate = &_TRACE_NBD_TRIP_DSTATE 
};
TraceEvent *nbd_trace_events[] = {
    &_TRACE_NBD_SEND_OPTION_REQUEST_EVENT,
    &_TRACE_NBD_RECEIVE_OPTION_REPLY_EVENT,
    &_TRACE_NBD_SERVER_ERROR_MSG_EVENT,
    &_TRACE_NBD_REPLY_ERR_IGNORED_EVENT,
    &_TRACE_NBD_RECEIVE_LIST_EVENT,
    &_TRACE_NBD_OPT_INFO_GO_START_EVENT,
    &_TRACE_NBD_OPT_INFO_GO_SUCCESS_EVENT,
    &_TRACE_NBD_OPT_INFO_UNKNOWN_EVENT,
    &_TRACE_NBD_OPT_INFO_BLOCK_SIZE_EVENT,
    &_TRACE_NBD_RECEIVE_QUERY_EXPORTS_START_EVENT,
    &_TRACE_NBD_RECEIVE_QUERY_EXPORTS_SUCCESS_EVENT,
    &_TRACE_NBD_RECEIVE_STARTTLS_NEW_CLIENT_EVENT,
    &_TRACE_NBD_RECEIVE_STARTTLS_TLS_HANDSHAKE_EVENT,
    &_TRACE_NBD_OPT_META_REQUEST_EVENT,
    &_TRACE_NBD_OPT_META_REPLY_EVENT,
    &_TRACE_NBD_START_NEGOTIATE_EVENT,
    &_TRACE_NBD_RECEIVE_NEGOTIATE_MAGIC_EVENT,
    &_TRACE_NBD_RECEIVE_NEGOTIATE_SERVER_FLAGS_EVENT,
    &_TRACE_NBD_RECEIVE_NEGOTIATE_NAME_EVENT,
    &_TRACE_NBD_RECEIVE_NEGOTIATE_SIZE_FLAGS_EVENT,
    &_TRACE_NBD_INIT_SET_SOCKET_EVENT,
    &_TRACE_NBD_INIT_SET_BLOCK_SIZE_EVENT,
    &_TRACE_NBD_INIT_SET_SIZE_EVENT,
    &_TRACE_NBD_INIT_TRAILING_BYTES_EVENT,
    &_TRACE_NBD_INIT_SET_READONLY_EVENT,
    &_TRACE_NBD_INIT_FINISH_EVENT,
    &_TRACE_NBD_CLIENT_LOOP_EVENT,
    &_TRACE_NBD_CLIENT_LOOP_RET_EVENT,
    &_TRACE_NBD_CLIENT_CLEAR_QUEUE_EVENT,
    &_TRACE_NBD_CLIENT_CLEAR_SOCKET_EVENT,
    &_TRACE_NBD_SEND_REQUEST_EVENT,
    &_TRACE_NBD_RECEIVE_SIMPLE_REPLY_EVENT,
    &_TRACE_NBD_RECEIVE_STRUCTURED_REPLY_CHUNK_EVENT,
    &_TRACE_NBD_UNKNOWN_ERROR_EVENT,
    &_TRACE_NBD_NEGOTIATE_SEND_REP_LEN_EVENT,
    &_TRACE_NBD_NEGOTIATE_SEND_REP_ERR_EVENT,
    &_TRACE_NBD_NEGOTIATE_SEND_REP_LIST_EVENT,
    &_TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_EVENT,
    &_TRACE_NBD_NEGOTIATE_HANDLE_EXPORT_NAME_REQUEST_EVENT,
    &_TRACE_NBD_NEGOTIATE_SEND_INFO_EVENT,
    &_TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUESTS_EVENT,
    &_TRACE_NBD_NEGOTIATE_HANDLE_INFO_REQUEST_EVENT,
    &_TRACE_NBD_NEGOTIATE_HANDLE_INFO_BLOCK_SIZE_EVENT,
    &_TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_EVENT,
    &_TRACE_NBD_NEGOTIATE_HANDLE_STARTTLS_HANDSHAKE_EVENT,
    &_TRACE_NBD_NEGOTIATE_META_CONTEXT_EVENT,
    &_TRACE_NBD_NEGOTIATE_META_QUERY_SKIP_EVENT,
    &_TRACE_NBD_NEGOTIATE_META_QUERY_PARSE_EVENT,
    &_TRACE_NBD_NEGOTIATE_META_QUERY_REPLY_EVENT,
    &_TRACE_NBD_NEGOTIATE_OPTIONS_FLAGS_EVENT,
    &_TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_MAGIC_EVENT,
    &_TRACE_NBD_NEGOTIATE_OPTIONS_CHECK_OPTION_EVENT,
    &_TRACE_NBD_NEGOTIATE_BEGIN_EVENT,
    &_TRACE_NBD_NEGOTIATE_NEW_STYLE_SIZE_FLAGS_EVENT,
    &_TRACE_NBD_NEGOTIATE_SUCCESS_EVENT,
    &_TRACE_NBD_RECEIVE_REQUEST_EVENT,
    &_TRACE_NBD_BLK_AIO_ATTACHED_EVENT,
    &_TRACE_NBD_BLK_AIO_DETACH_EVENT,
    &_TRACE_NBD_CO_SEND_SIMPLE_REPLY_EVENT,
    &_TRACE_NBD_CO_SEND_STRUCTURED_DONE_EVENT,
    &_TRACE_NBD_CO_SEND_STRUCTURED_READ_EVENT,
    &_TRACE_NBD_CO_SEND_STRUCTURED_READ_HOLE_EVENT,
    &_TRACE_NBD_CO_SEND_EXTENTS_EVENT,
    &_TRACE_NBD_CO_SEND_STRUCTURED_ERROR_EVENT,
    &_TRACE_NBD_CO_RECEIVE_REQUEST_DECODE_TYPE_EVENT,
    &_TRACE_NBD_CO_RECEIVE_REQUEST_PAYLOAD_RECEIVED_EVENT,
    &_TRACE_NBD_CO_RECEIVE_ALIGN_COMPLIANCE_EVENT,
    &_TRACE_NBD_TRIP_EVENT,
  NULL,
};

static void trace_nbd_register_events(void)
{
    trace_event_register_group(nbd_trace_events);
}
trace_init(trace_nbd_register_events)
