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

#ifndef TRACE_QAPI_COMMANDS_REPLAY_TRACE_EVENTS_GENERATED_TRACERS_H
#define TRACE_QAPI_COMMANDS_REPLAY_TRACE_EVENTS_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_QMP_ENTER_QUERY_REPLAY_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_QUERY_REPLAY_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_REPLAY_BREAK_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_REPLAY_BREAK_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_REPLAY_DELETE_BREAK_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_REPLAY_DELETE_BREAK_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_REPLAY_SEEK_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_REPLAY_SEEK_EVENT;
extern uint16_t _TRACE_QMP_ENTER_QUERY_REPLAY_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_QUERY_REPLAY_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_REPLAY_BREAK_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_REPLAY_BREAK_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_REPLAY_DELETE_BREAK_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_REPLAY_DELETE_BREAK_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_REPLAY_SEEK_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_REPLAY_SEEK_DSTATE;
#define TRACE_QMP_ENTER_QUERY_REPLAY_ENABLED 1
#define TRACE_QMP_EXIT_QUERY_REPLAY_ENABLED 1
#define TRACE_QMP_ENTER_REPLAY_BREAK_ENABLED 1
#define TRACE_QMP_EXIT_REPLAY_BREAK_ENABLED 1
#define TRACE_QMP_ENTER_REPLAY_DELETE_BREAK_ENABLED 1
#define TRACE_QMP_EXIT_REPLAY_DELETE_BREAK_ENABLED 1
#define TRACE_QMP_ENTER_REPLAY_SEEK_ENABLED 1
#define TRACE_QMP_EXIT_REPLAY_SEEK_ENABLED 1
#include "qemu/log-for-trace.h"
#include "qemu/error-report.h"


#define TRACE_QMP_ENTER_QUERY_REPLAY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_QUERY_REPLAY) || \
    false)

static inline void _nocheck__trace_qmp_enter_query_replay(const char * json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_QUERY_REPLAY) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 3 "qapi/qapi-commands-replay.trace-events"
            qemu_log("%d@%zu.%06zu:qmp_enter_query_replay " "%s" "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , json);
#line 52 "trace/trace-qapi_commands_replay_trace_events.h"
        } else {
#line 3 "qapi/qapi-commands-replay.trace-events"
            qemu_log("qmp_enter_query_replay " "%s" "\n", json);
#line 56 "trace/trace-qapi_commands_replay_trace_events.h"
        }
    }
}

static inline void trace_qmp_enter_query_replay(const char * json)
{
    if (true) {
        _nocheck__trace_qmp_enter_query_replay(json);
    }
}

#define TRACE_QMP_EXIT_QUERY_REPLAY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_QUERY_REPLAY) || \
    false)

static inline void _nocheck__trace_qmp_exit_query_replay(const char * result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_QUERY_REPLAY) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 4 "qapi/qapi-commands-replay.trace-events"
            qemu_log("%d@%zu.%06zu:qmp_exit_query_replay " "%s %d" "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , result, succeeded);
#line 83 "trace/trace-qapi_commands_replay_trace_events.h"
        } else {
#line 4 "qapi/qapi-commands-replay.trace-events"
            qemu_log("qmp_exit_query_replay " "%s %d" "\n", result, succeeded);
#line 87 "trace/trace-qapi_commands_replay_trace_events.h"
        }
    }
}

static inline void trace_qmp_exit_query_replay(const char * result, bool succeeded)
{
    if (true) {
        _nocheck__trace_qmp_exit_query_replay(result, succeeded);
    }
}

#define TRACE_QMP_ENTER_REPLAY_BREAK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_REPLAY_BREAK) || \
    false)

static inline void _nocheck__trace_qmp_enter_replay_break(const char * json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_REPLAY_BREAK) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 5 "qapi/qapi-commands-replay.trace-events"
            qemu_log("%d@%zu.%06zu:qmp_enter_replay_break " "%s" "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , json);
#line 114 "trace/trace-qapi_commands_replay_trace_events.h"
        } else {
#line 5 "qapi/qapi-commands-replay.trace-events"
            qemu_log("qmp_enter_replay_break " "%s" "\n", json);
#line 118 "trace/trace-qapi_commands_replay_trace_events.h"
        }
    }
}

static inline void trace_qmp_enter_replay_break(const char * json)
{
    if (true) {
        _nocheck__trace_qmp_enter_replay_break(json);
    }
}

#define TRACE_QMP_EXIT_REPLAY_BREAK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_REPLAY_BREAK) || \
    false)

static inline void _nocheck__trace_qmp_exit_replay_break(const char * result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_REPLAY_BREAK) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 6 "qapi/qapi-commands-replay.trace-events"
            qemu_log("%d@%zu.%06zu:qmp_exit_replay_break " "%s %d" "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , result, succeeded);
#line 145 "trace/trace-qapi_commands_replay_trace_events.h"
        } else {
#line 6 "qapi/qapi-commands-replay.trace-events"
            qemu_log("qmp_exit_replay_break " "%s %d" "\n", result, succeeded);
#line 149 "trace/trace-qapi_commands_replay_trace_events.h"
        }
    }
}

static inline void trace_qmp_exit_replay_break(const char * result, bool succeeded)
{
    if (true) {
        _nocheck__trace_qmp_exit_replay_break(result, succeeded);
    }
}

#define TRACE_QMP_ENTER_REPLAY_DELETE_BREAK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_REPLAY_DELETE_BREAK) || \
    false)

static inline void _nocheck__trace_qmp_enter_replay_delete_break(const char * json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_REPLAY_DELETE_BREAK) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 7 "qapi/qapi-commands-replay.trace-events"
            qemu_log("%d@%zu.%06zu:qmp_enter_replay_delete_break " "%s" "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , json);
#line 176 "trace/trace-qapi_commands_replay_trace_events.h"
        } else {
#line 7 "qapi/qapi-commands-replay.trace-events"
            qemu_log("qmp_enter_replay_delete_break " "%s" "\n", json);
#line 180 "trace/trace-qapi_commands_replay_trace_events.h"
        }
    }
}

static inline void trace_qmp_enter_replay_delete_break(const char * json)
{
    if (true) {
        _nocheck__trace_qmp_enter_replay_delete_break(json);
    }
}

#define TRACE_QMP_EXIT_REPLAY_DELETE_BREAK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_REPLAY_DELETE_BREAK) || \
    false)

static inline void _nocheck__trace_qmp_exit_replay_delete_break(const char * result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_REPLAY_DELETE_BREAK) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 8 "qapi/qapi-commands-replay.trace-events"
            qemu_log("%d@%zu.%06zu:qmp_exit_replay_delete_break " "%s %d" "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , result, succeeded);
#line 207 "trace/trace-qapi_commands_replay_trace_events.h"
        } else {
#line 8 "qapi/qapi-commands-replay.trace-events"
            qemu_log("qmp_exit_replay_delete_break " "%s %d" "\n", result, succeeded);
#line 211 "trace/trace-qapi_commands_replay_trace_events.h"
        }
    }
}

static inline void trace_qmp_exit_replay_delete_break(const char * result, bool succeeded)
{
    if (true) {
        _nocheck__trace_qmp_exit_replay_delete_break(result, succeeded);
    }
}

#define TRACE_QMP_ENTER_REPLAY_SEEK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_REPLAY_SEEK) || \
    false)

static inline void _nocheck__trace_qmp_enter_replay_seek(const char * json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_REPLAY_SEEK) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 9 "qapi/qapi-commands-replay.trace-events"
            qemu_log("%d@%zu.%06zu:qmp_enter_replay_seek " "%s" "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , json);
#line 238 "trace/trace-qapi_commands_replay_trace_events.h"
        } else {
#line 9 "qapi/qapi-commands-replay.trace-events"
            qemu_log("qmp_enter_replay_seek " "%s" "\n", json);
#line 242 "trace/trace-qapi_commands_replay_trace_events.h"
        }
    }
}

static inline void trace_qmp_enter_replay_seek(const char * json)
{
    if (true) {
        _nocheck__trace_qmp_enter_replay_seek(json);
    }
}

#define TRACE_QMP_EXIT_REPLAY_SEEK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_REPLAY_SEEK) || \
    false)

static inline void _nocheck__trace_qmp_exit_replay_seek(const char * result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_REPLAY_SEEK) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 10 "qapi/qapi-commands-replay.trace-events"
            qemu_log("%d@%zu.%06zu:qmp_exit_replay_seek " "%s %d" "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , result, succeeded);
#line 269 "trace/trace-qapi_commands_replay_trace_events.h"
        } else {
#line 10 "qapi/qapi-commands-replay.trace-events"
            qemu_log("qmp_exit_replay_seek " "%s %d" "\n", result, succeeded);
#line 273 "trace/trace-qapi_commands_replay_trace_events.h"
        }
    }
}

static inline void trace_qmp_exit_replay_seek(const char * result, bool succeeded)
{
    if (true) {
        _nocheck__trace_qmp_exit_replay_seek(result, succeeded);
    }
}
#endif /* TRACE_QAPI_COMMANDS_REPLAY_TRACE_EVENTS_GENERATED_TRACERS_H */
