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

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

uint16_t _TRACE_BREAKPOINT_INSERT_DSTATE;
uint16_t _TRACE_BREAKPOINT_REMOVE_DSTATE;
uint16_t _TRACE_BREAKPOINT_SINGLESTEP_DSTATE;
uint16_t _TRACE_DMA_BLK_IO_DSTATE;
uint16_t _TRACE_DMA_AIO_CANCEL_DSTATE;
uint16_t _TRACE_DMA_COMPLETE_DSTATE;
uint16_t _TRACE_DMA_BLK_CB_DSTATE;
uint16_t _TRACE_DMA_MAP_WAIT_DSTATE;
uint16_t _TRACE_FIND_RAM_OFFSET_DSTATE;
uint16_t _TRACE_FIND_RAM_OFFSET_LOOP_DSTATE;
uint16_t _TRACE_RAM_BLOCK_DISCARD_RANGE_DSTATE;
uint16_t _TRACE_MEMORY_NOTDIRTY_WRITE_ACCESS_DSTATE;
uint16_t _TRACE_MEMORY_NOTDIRTY_SET_DIRTY_DSTATE;
uint16_t _TRACE_GDBSTUB_OP_START_DSTATE;
uint16_t _TRACE_GDBSTUB_OP_EXITING_DSTATE;
uint16_t _TRACE_GDBSTUB_OP_CONTINUE_DSTATE;
uint16_t _TRACE_GDBSTUB_OP_CONTINUE_CPU_DSTATE;
uint16_t _TRACE_GDBSTUB_OP_STEPPING_DSTATE;
uint16_t _TRACE_GDBSTUB_OP_EXTRA_INFO_DSTATE;
uint16_t _TRACE_GDBSTUB_HIT_WATCHPOINT_DSTATE;
uint16_t _TRACE_GDBSTUB_HIT_INTERNAL_ERROR_DSTATE;
uint16_t _TRACE_GDBSTUB_HIT_BREAK_DSTATE;
uint16_t _TRACE_GDBSTUB_HIT_PAUSED_DSTATE;
uint16_t _TRACE_GDBSTUB_HIT_SHUTDOWN_DSTATE;
uint16_t _TRACE_GDBSTUB_HIT_IO_ERROR_DSTATE;
uint16_t _TRACE_GDBSTUB_HIT_WATCHDOG_DSTATE;
uint16_t _TRACE_GDBSTUB_HIT_UNKNOWN_DSTATE;
uint16_t _TRACE_GDBSTUB_IO_REPLY_DSTATE;
uint16_t _TRACE_GDBSTUB_IO_BINARYREPLY_DSTATE;
uint16_t _TRACE_GDBSTUB_IO_COMMAND_DSTATE;
uint16_t _TRACE_GDBSTUB_IO_GOT_ACK_DSTATE;
uint16_t _TRACE_GDBSTUB_IO_GOT_UNEXPECTED_DSTATE;
uint16_t _TRACE_GDBSTUB_ERR_GOT_NACK_DSTATE;
uint16_t _TRACE_GDBSTUB_ERR_GARBAGE_DSTATE;
uint16_t _TRACE_GDBSTUB_ERR_OVERRUN_DSTATE;
uint16_t _TRACE_GDBSTUB_ERR_INVALID_REPEAT_DSTATE;
uint16_t _TRACE_GDBSTUB_ERR_INVALID_RLE_DSTATE;
uint16_t _TRACE_GDBSTUB_ERR_CHECKSUM_INVALID_DSTATE;
uint16_t _TRACE_GDBSTUB_ERR_CHECKSUM_INCORRECT_DSTATE;
uint16_t _TRACE_JOB_STATE_TRANSITION_DSTATE;
uint16_t _TRACE_JOB_APPLY_VERB_DSTATE;
uint16_t _TRACE_JOB_COMPLETED_DSTATE;
uint16_t _TRACE_QMP_JOB_CANCEL_DSTATE;
uint16_t _TRACE_QMP_JOB_PAUSE_DSTATE;
uint16_t _TRACE_QMP_JOB_RESUME_DSTATE;
uint16_t _TRACE_QMP_JOB_COMPLETE_DSTATE;
uint16_t _TRACE_QMP_JOB_FINALIZE_DSTATE;
uint16_t _TRACE_QMP_JOB_DISMISS_DSTATE;
uint16_t _TRACE_GUEST_CPU_ENTER_DSTATE;
uint16_t _TRACE_GUEST_CPU_EXIT_DSTATE;
uint16_t _TRACE_GUEST_CPU_RESET_DSTATE;
uint16_t _TRACE_GUEST_USER_SYSCALL_DSTATE;
uint16_t _TRACE_GUEST_USER_SYSCALL_RET_DSTATE;
TraceEvent _TRACE_BREAKPOINT_INSERT_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "breakpoint_insert",
    .sstate = TRACE_BREAKPOINT_INSERT_ENABLED,
    .dstate = &_TRACE_BREAKPOINT_INSERT_DSTATE 
};
TraceEvent _TRACE_BREAKPOINT_REMOVE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "breakpoint_remove",
    .sstate = TRACE_BREAKPOINT_REMOVE_ENABLED,
    .dstate = &_TRACE_BREAKPOINT_REMOVE_DSTATE 
};
TraceEvent _TRACE_BREAKPOINT_SINGLESTEP_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "breakpoint_singlestep",
    .sstate = TRACE_BREAKPOINT_SINGLESTEP_ENABLED,
    .dstate = &_TRACE_BREAKPOINT_SINGLESTEP_DSTATE 
};
TraceEvent _TRACE_DMA_BLK_IO_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "dma_blk_io",
    .sstate = TRACE_DMA_BLK_IO_ENABLED,
    .dstate = &_TRACE_DMA_BLK_IO_DSTATE 
};
TraceEvent _TRACE_DMA_AIO_CANCEL_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "dma_aio_cancel",
    .sstate = TRACE_DMA_AIO_CANCEL_ENABLED,
    .dstate = &_TRACE_DMA_AIO_CANCEL_DSTATE 
};
TraceEvent _TRACE_DMA_COMPLETE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "dma_complete",
    .sstate = TRACE_DMA_COMPLETE_ENABLED,
    .dstate = &_TRACE_DMA_COMPLETE_DSTATE 
};
TraceEvent _TRACE_DMA_BLK_CB_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "dma_blk_cb",
    .sstate = TRACE_DMA_BLK_CB_ENABLED,
    .dstate = &_TRACE_DMA_BLK_CB_DSTATE 
};
TraceEvent _TRACE_DMA_MAP_WAIT_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "dma_map_wait",
    .sstate = TRACE_DMA_MAP_WAIT_ENABLED,
    .dstate = &_TRACE_DMA_MAP_WAIT_DSTATE 
};
TraceEvent _TRACE_FIND_RAM_OFFSET_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "find_ram_offset",
    .sstate = TRACE_FIND_RAM_OFFSET_ENABLED,
    .dstate = &_TRACE_FIND_RAM_OFFSET_DSTATE 
};
TraceEvent _TRACE_FIND_RAM_OFFSET_LOOP_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "find_ram_offset_loop",
    .sstate = TRACE_FIND_RAM_OFFSET_LOOP_ENABLED,
    .dstate = &_TRACE_FIND_RAM_OFFSET_LOOP_DSTATE 
};
TraceEvent _TRACE_RAM_BLOCK_DISCARD_RANGE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "ram_block_discard_range",
    .sstate = TRACE_RAM_BLOCK_DISCARD_RANGE_ENABLED,
    .dstate = &_TRACE_RAM_BLOCK_DISCARD_RANGE_DSTATE 
};
TraceEvent _TRACE_MEMORY_NOTDIRTY_WRITE_ACCESS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "memory_notdirty_write_access",
    .sstate = TRACE_MEMORY_NOTDIRTY_WRITE_ACCESS_ENABLED,
    .dstate = &_TRACE_MEMORY_NOTDIRTY_WRITE_ACCESS_DSTATE 
};
TraceEvent _TRACE_MEMORY_NOTDIRTY_SET_DIRTY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "memory_notdirty_set_dirty",
    .sstate = TRACE_MEMORY_NOTDIRTY_SET_DIRTY_ENABLED,
    .dstate = &_TRACE_MEMORY_NOTDIRTY_SET_DIRTY_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_OP_START_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_op_start",
    .sstate = TRACE_GDBSTUB_OP_START_ENABLED,
    .dstate = &_TRACE_GDBSTUB_OP_START_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_OP_EXITING_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_op_exiting",
    .sstate = TRACE_GDBSTUB_OP_EXITING_ENABLED,
    .dstate = &_TRACE_GDBSTUB_OP_EXITING_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_OP_CONTINUE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_op_continue",
    .sstate = TRACE_GDBSTUB_OP_CONTINUE_ENABLED,
    .dstate = &_TRACE_GDBSTUB_OP_CONTINUE_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_OP_CONTINUE_CPU_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_op_continue_cpu",
    .sstate = TRACE_GDBSTUB_OP_CONTINUE_CPU_ENABLED,
    .dstate = &_TRACE_GDBSTUB_OP_CONTINUE_CPU_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_OP_STEPPING_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_op_stepping",
    .sstate = TRACE_GDBSTUB_OP_STEPPING_ENABLED,
    .dstate = &_TRACE_GDBSTUB_OP_STEPPING_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_OP_EXTRA_INFO_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_op_extra_info",
    .sstate = TRACE_GDBSTUB_OP_EXTRA_INFO_ENABLED,
    .dstate = &_TRACE_GDBSTUB_OP_EXTRA_INFO_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_HIT_WATCHPOINT_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_hit_watchpoint",
    .sstate = TRACE_GDBSTUB_HIT_WATCHPOINT_ENABLED,
    .dstate = &_TRACE_GDBSTUB_HIT_WATCHPOINT_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_HIT_INTERNAL_ERROR_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_hit_internal_error",
    .sstate = TRACE_GDBSTUB_HIT_INTERNAL_ERROR_ENABLED,
    .dstate = &_TRACE_GDBSTUB_HIT_INTERNAL_ERROR_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_HIT_BREAK_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_hit_break",
    .sstate = TRACE_GDBSTUB_HIT_BREAK_ENABLED,
    .dstate = &_TRACE_GDBSTUB_HIT_BREAK_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_HIT_PAUSED_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_hit_paused",
    .sstate = TRACE_GDBSTUB_HIT_PAUSED_ENABLED,
    .dstate = &_TRACE_GDBSTUB_HIT_PAUSED_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_HIT_SHUTDOWN_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_hit_shutdown",
    .sstate = TRACE_GDBSTUB_HIT_SHUTDOWN_ENABLED,
    .dstate = &_TRACE_GDBSTUB_HIT_SHUTDOWN_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_HIT_IO_ERROR_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_hit_io_error",
    .sstate = TRACE_GDBSTUB_HIT_IO_ERROR_ENABLED,
    .dstate = &_TRACE_GDBSTUB_HIT_IO_ERROR_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_HIT_WATCHDOG_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_hit_watchdog",
    .sstate = TRACE_GDBSTUB_HIT_WATCHDOG_ENABLED,
    .dstate = &_TRACE_GDBSTUB_HIT_WATCHDOG_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_HIT_UNKNOWN_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_hit_unknown",
    .sstate = TRACE_GDBSTUB_HIT_UNKNOWN_ENABLED,
    .dstate = &_TRACE_GDBSTUB_HIT_UNKNOWN_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_IO_REPLY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_io_reply",
    .sstate = TRACE_GDBSTUB_IO_REPLY_ENABLED,
    .dstate = &_TRACE_GDBSTUB_IO_REPLY_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_IO_BINARYREPLY_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_io_binaryreply",
    .sstate = TRACE_GDBSTUB_IO_BINARYREPLY_ENABLED,
    .dstate = &_TRACE_GDBSTUB_IO_BINARYREPLY_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_IO_COMMAND_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_io_command",
    .sstate = TRACE_GDBSTUB_IO_COMMAND_ENABLED,
    .dstate = &_TRACE_GDBSTUB_IO_COMMAND_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_IO_GOT_ACK_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_io_got_ack",
    .sstate = TRACE_GDBSTUB_IO_GOT_ACK_ENABLED,
    .dstate = &_TRACE_GDBSTUB_IO_GOT_ACK_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_IO_GOT_UNEXPECTED_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_io_got_unexpected",
    .sstate = TRACE_GDBSTUB_IO_GOT_UNEXPECTED_ENABLED,
    .dstate = &_TRACE_GDBSTUB_IO_GOT_UNEXPECTED_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_ERR_GOT_NACK_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_err_got_nack",
    .sstate = TRACE_GDBSTUB_ERR_GOT_NACK_ENABLED,
    .dstate = &_TRACE_GDBSTUB_ERR_GOT_NACK_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_ERR_GARBAGE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_err_garbage",
    .sstate = TRACE_GDBSTUB_ERR_GARBAGE_ENABLED,
    .dstate = &_TRACE_GDBSTUB_ERR_GARBAGE_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_ERR_OVERRUN_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_err_overrun",
    .sstate = TRACE_GDBSTUB_ERR_OVERRUN_ENABLED,
    .dstate = &_TRACE_GDBSTUB_ERR_OVERRUN_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_ERR_INVALID_REPEAT_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_err_invalid_repeat",
    .sstate = TRACE_GDBSTUB_ERR_INVALID_REPEAT_ENABLED,
    .dstate = &_TRACE_GDBSTUB_ERR_INVALID_REPEAT_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_ERR_INVALID_RLE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_err_invalid_rle",
    .sstate = TRACE_GDBSTUB_ERR_INVALID_RLE_ENABLED,
    .dstate = &_TRACE_GDBSTUB_ERR_INVALID_RLE_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_ERR_CHECKSUM_INVALID_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_err_checksum_invalid",
    .sstate = TRACE_GDBSTUB_ERR_CHECKSUM_INVALID_ENABLED,
    .dstate = &_TRACE_GDBSTUB_ERR_CHECKSUM_INVALID_DSTATE 
};
TraceEvent _TRACE_GDBSTUB_ERR_CHECKSUM_INCORRECT_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "gdbstub_err_checksum_incorrect",
    .sstate = TRACE_GDBSTUB_ERR_CHECKSUM_INCORRECT_ENABLED,
    .dstate = &_TRACE_GDBSTUB_ERR_CHECKSUM_INCORRECT_DSTATE 
};
TraceEvent _TRACE_JOB_STATE_TRANSITION_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "job_state_transition",
    .sstate = TRACE_JOB_STATE_TRANSITION_ENABLED,
    .dstate = &_TRACE_JOB_STATE_TRANSITION_DSTATE 
};
TraceEvent _TRACE_JOB_APPLY_VERB_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "job_apply_verb",
    .sstate = TRACE_JOB_APPLY_VERB_ENABLED,
    .dstate = &_TRACE_JOB_APPLY_VERB_DSTATE 
};
TraceEvent _TRACE_JOB_COMPLETED_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "job_completed",
    .sstate = TRACE_JOB_COMPLETED_ENABLED,
    .dstate = &_TRACE_JOB_COMPLETED_DSTATE 
};
TraceEvent _TRACE_QMP_JOB_CANCEL_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "qmp_job_cancel",
    .sstate = TRACE_QMP_JOB_CANCEL_ENABLED,
    .dstate = &_TRACE_QMP_JOB_CANCEL_DSTATE 
};
TraceEvent _TRACE_QMP_JOB_PAUSE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "qmp_job_pause",
    .sstate = TRACE_QMP_JOB_PAUSE_ENABLED,
    .dstate = &_TRACE_QMP_JOB_PAUSE_DSTATE 
};
TraceEvent _TRACE_QMP_JOB_RESUME_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "qmp_job_resume",
    .sstate = TRACE_QMP_JOB_RESUME_ENABLED,
    .dstate = &_TRACE_QMP_JOB_RESUME_DSTATE 
};
TraceEvent _TRACE_QMP_JOB_COMPLETE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "qmp_job_complete",
    .sstate = TRACE_QMP_JOB_COMPLETE_ENABLED,
    .dstate = &_TRACE_QMP_JOB_COMPLETE_DSTATE 
};
TraceEvent _TRACE_QMP_JOB_FINALIZE_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "qmp_job_finalize",
    .sstate = TRACE_QMP_JOB_FINALIZE_ENABLED,
    .dstate = &_TRACE_QMP_JOB_FINALIZE_DSTATE 
};
TraceEvent _TRACE_QMP_JOB_DISMISS_EVENT = {
    .id = 0,
    .vcpu_id = TRACE_VCPU_EVENT_NONE,
    .name = "qmp_job_dismiss",
    .sstate = TRACE_QMP_JOB_DISMISS_ENABLED,
    .dstate = &_TRACE_QMP_JOB_DISMISS_DSTATE 
};
TraceEvent _TRACE_GUEST_CPU_ENTER_EVENT = {
    .id = 0,
    .vcpu_id = 0,
    .name = "guest_cpu_enter",
    .sstate = TRACE_GUEST_CPU_ENTER_ENABLED,
    .dstate = &_TRACE_GUEST_CPU_ENTER_DSTATE 
};
TraceEvent _TRACE_GUEST_CPU_EXIT_EVENT = {
    .id = 0,
    .vcpu_id = 0,
    .name = "guest_cpu_exit",
    .sstate = TRACE_GUEST_CPU_EXIT_ENABLED,
    .dstate = &_TRACE_GUEST_CPU_EXIT_DSTATE 
};
TraceEvent _TRACE_GUEST_CPU_RESET_EVENT = {
    .id = 0,
    .vcpu_id = 0,
    .name = "guest_cpu_reset",
    .sstate = TRACE_GUEST_CPU_RESET_ENABLED,
    .dstate = &_TRACE_GUEST_CPU_RESET_DSTATE 
};
TraceEvent _TRACE_GUEST_USER_SYSCALL_EVENT = {
    .id = 0,
    .vcpu_id = 0,
    .name = "guest_user_syscall",
    .sstate = TRACE_GUEST_USER_SYSCALL_ENABLED,
    .dstate = &_TRACE_GUEST_USER_SYSCALL_DSTATE 
};
TraceEvent _TRACE_GUEST_USER_SYSCALL_RET_EVENT = {
    .id = 0,
    .vcpu_id = 0,
    .name = "guest_user_syscall_ret",
    .sstate = TRACE_GUEST_USER_SYSCALL_RET_ENABLED,
    .dstate = &_TRACE_GUEST_USER_SYSCALL_RET_DSTATE 
};
TraceEvent *root_trace_events[] = {
    &_TRACE_BREAKPOINT_INSERT_EVENT,
    &_TRACE_BREAKPOINT_REMOVE_EVENT,
    &_TRACE_BREAKPOINT_SINGLESTEP_EVENT,
    &_TRACE_DMA_BLK_IO_EVENT,
    &_TRACE_DMA_AIO_CANCEL_EVENT,
    &_TRACE_DMA_COMPLETE_EVENT,
    &_TRACE_DMA_BLK_CB_EVENT,
    &_TRACE_DMA_MAP_WAIT_EVENT,
    &_TRACE_FIND_RAM_OFFSET_EVENT,
    &_TRACE_FIND_RAM_OFFSET_LOOP_EVENT,
    &_TRACE_RAM_BLOCK_DISCARD_RANGE_EVENT,
    &_TRACE_MEMORY_NOTDIRTY_WRITE_ACCESS_EVENT,
    &_TRACE_MEMORY_NOTDIRTY_SET_DIRTY_EVENT,
    &_TRACE_GDBSTUB_OP_START_EVENT,
    &_TRACE_GDBSTUB_OP_EXITING_EVENT,
    &_TRACE_GDBSTUB_OP_CONTINUE_EVENT,
    &_TRACE_GDBSTUB_OP_CONTINUE_CPU_EVENT,
    &_TRACE_GDBSTUB_OP_STEPPING_EVENT,
    &_TRACE_GDBSTUB_OP_EXTRA_INFO_EVENT,
    &_TRACE_GDBSTUB_HIT_WATCHPOINT_EVENT,
    &_TRACE_GDBSTUB_HIT_INTERNAL_ERROR_EVENT,
    &_TRACE_GDBSTUB_HIT_BREAK_EVENT,
    &_TRACE_GDBSTUB_HIT_PAUSED_EVENT,
    &_TRACE_GDBSTUB_HIT_SHUTDOWN_EVENT,
    &_TRACE_GDBSTUB_HIT_IO_ERROR_EVENT,
    &_TRACE_GDBSTUB_HIT_WATCHDOG_EVENT,
    &_TRACE_GDBSTUB_HIT_UNKNOWN_EVENT,
    &_TRACE_GDBSTUB_IO_REPLY_EVENT,
    &_TRACE_GDBSTUB_IO_BINARYREPLY_EVENT,
    &_TRACE_GDBSTUB_IO_COMMAND_EVENT,
    &_TRACE_GDBSTUB_IO_GOT_ACK_EVENT,
    &_TRACE_GDBSTUB_IO_GOT_UNEXPECTED_EVENT,
    &_TRACE_GDBSTUB_ERR_GOT_NACK_EVENT,
    &_TRACE_GDBSTUB_ERR_GARBAGE_EVENT,
    &_TRACE_GDBSTUB_ERR_OVERRUN_EVENT,
    &_TRACE_GDBSTUB_ERR_INVALID_REPEAT_EVENT,
    &_TRACE_GDBSTUB_ERR_INVALID_RLE_EVENT,
    &_TRACE_GDBSTUB_ERR_CHECKSUM_INVALID_EVENT,
    &_TRACE_GDBSTUB_ERR_CHECKSUM_INCORRECT_EVENT,
    &_TRACE_JOB_STATE_TRANSITION_EVENT,
    &_TRACE_JOB_APPLY_VERB_EVENT,
    &_TRACE_JOB_COMPLETED_EVENT,
    &_TRACE_QMP_JOB_CANCEL_EVENT,
    &_TRACE_QMP_JOB_PAUSE_EVENT,
    &_TRACE_QMP_JOB_RESUME_EVENT,
    &_TRACE_QMP_JOB_COMPLETE_EVENT,
    &_TRACE_QMP_JOB_FINALIZE_EVENT,
    &_TRACE_QMP_JOB_DISMISS_EVENT,
    &_TRACE_GUEST_CPU_ENTER_EVENT,
    &_TRACE_GUEST_CPU_EXIT_EVENT,
    &_TRACE_GUEST_CPU_RESET_EVENT,
    &_TRACE_GUEST_USER_SYSCALL_EVENT,
    &_TRACE_GUEST_USER_SYSCALL_RET_EVENT,
  NULL,
};

static void trace_root_register_events(void)
{
    trace_event_register_group(root_trace_events);
}
trace_init(trace_root_register_events)
