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

#ifndef TRACE_REPLAY_GENERATED_TRACERS_H
#define TRACE_REPLAY_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_REPLAY_PUT_BYTE_EVENT;
extern TraceEvent _TRACE_REPLAY_PUT_EVENT_EVENT;
extern TraceEvent _TRACE_REPLAY_PUT_WORD_EVENT;
extern TraceEvent _TRACE_REPLAY_PUT_DWORD_EVENT;
extern TraceEvent _TRACE_REPLAY_PUT_QWORD_EVENT;
extern TraceEvent _TRACE_REPLAY_GET_BYTE_EVENT;
extern TraceEvent _TRACE_REPLAY_GET_WORD_EVENT;
extern TraceEvent _TRACE_REPLAY_GET_DWORD_EVENT;
extern TraceEvent _TRACE_REPLAY_GET_QWORD_EVENT;
extern TraceEvent _TRACE_REPLAY_FETCH_DATA_KIND_EVENT;
extern TraceEvent _TRACE_REPLAY_GET_EVENT_EVENT;
extern TraceEvent _TRACE_REPLAY_ADVANCE_CURRENT_ICOUNT_EVENT;
extern uint16_t _TRACE_REPLAY_PUT_BYTE_DSTATE;
extern uint16_t _TRACE_REPLAY_PUT_EVENT_DSTATE;
extern uint16_t _TRACE_REPLAY_PUT_WORD_DSTATE;
extern uint16_t _TRACE_REPLAY_PUT_DWORD_DSTATE;
extern uint16_t _TRACE_REPLAY_PUT_QWORD_DSTATE;
extern uint16_t _TRACE_REPLAY_GET_BYTE_DSTATE;
extern uint16_t _TRACE_REPLAY_GET_WORD_DSTATE;
extern uint16_t _TRACE_REPLAY_GET_DWORD_DSTATE;
extern uint16_t _TRACE_REPLAY_GET_QWORD_DSTATE;
extern uint16_t _TRACE_REPLAY_FETCH_DATA_KIND_DSTATE;
extern uint16_t _TRACE_REPLAY_GET_EVENT_DSTATE;
extern uint16_t _TRACE_REPLAY_ADVANCE_CURRENT_ICOUNT_DSTATE;
#define TRACE_REPLAY_PUT_BYTE_ENABLED 1
#define TRACE_REPLAY_PUT_EVENT_ENABLED 1
#define TRACE_REPLAY_PUT_WORD_ENABLED 1
#define TRACE_REPLAY_PUT_DWORD_ENABLED 1
#define TRACE_REPLAY_PUT_QWORD_ENABLED 1
#define TRACE_REPLAY_GET_BYTE_ENABLED 1
#define TRACE_REPLAY_GET_WORD_ENABLED 1
#define TRACE_REPLAY_GET_DWORD_ENABLED 1
#define TRACE_REPLAY_GET_QWORD_ENABLED 1
#define TRACE_REPLAY_FETCH_DATA_KIND_ENABLED 1
#define TRACE_REPLAY_GET_EVENT_ENABLED 1
#define TRACE_REPLAY_ADVANCE_CURRENT_ICOUNT_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_REPLAY_PUT_BYTE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_PUT_BYTE) || \
    false)

static inline void trace_replay_put_byte(uint8_t event)
{
    if (trace_event_get_state(TRACE_REPLAY_PUT_BYTE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 1 "../xemu/replay/trace-events"
            qemu_log("replay_put_byte " "%02x" "\n", event);
#line 59 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_PUT_EVENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_PUT_EVENT) || \
    false)

static inline void trace_replay_put_event(uint8_t event)
{
    if (trace_event_get_state(TRACE_REPLAY_PUT_EVENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 2 "../xemu/replay/trace-events"
            qemu_log("replay_put_event " "%02x" "\n", event);
#line 74 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_PUT_WORD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_PUT_WORD) || \
    false)

static inline void trace_replay_put_word(uint16_t event)
{
    if (trace_event_get_state(TRACE_REPLAY_PUT_WORD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 3 "../xemu/replay/trace-events"
            qemu_log("replay_put_word " "%04x" "\n", event);
#line 89 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_PUT_DWORD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_PUT_DWORD) || \
    false)

static inline void trace_replay_put_dword(uint32_t event)
{
    if (trace_event_get_state(TRACE_REPLAY_PUT_DWORD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../xemu/replay/trace-events"
            qemu_log("replay_put_dword " "%08x" "\n", event);
#line 104 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_PUT_QWORD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_PUT_QWORD) || \
    false)

static inline void trace_replay_put_qword(uint64_t event)
{
    if (trace_event_get_state(TRACE_REPLAY_PUT_QWORD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../xemu/replay/trace-events"
            qemu_log("replay_put_qword " "%016" PRIx64 "\n", event);
#line 119 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_GET_BYTE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_GET_BYTE) || \
    false)

static inline void trace_replay_get_byte(uint8_t byte)
{
    if (trace_event_get_state(TRACE_REPLAY_GET_BYTE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 6 "../xemu/replay/trace-events"
            qemu_log("replay_get_byte " "%02x" "\n", byte);
#line 134 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_GET_WORD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_GET_WORD) || \
    false)

static inline void trace_replay_get_word(uint16_t word)
{
    if (trace_event_get_state(TRACE_REPLAY_GET_WORD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 7 "../xemu/replay/trace-events"
            qemu_log("replay_get_word " "%04x" "\n", word);
#line 149 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_GET_DWORD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_GET_DWORD) || \
    false)

static inline void trace_replay_get_dword(uint32_t dword)
{
    if (trace_event_get_state(TRACE_REPLAY_GET_DWORD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../xemu/replay/trace-events"
            qemu_log("replay_get_dword " "%08x" "\n", dword);
#line 164 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_GET_QWORD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_GET_QWORD) || \
    false)

static inline void trace_replay_get_qword(uint64_t qword)
{
    if (trace_event_get_state(TRACE_REPLAY_GET_QWORD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "../xemu/replay/trace-events"
            qemu_log("replay_get_qword " "%016" PRIx64 "\n", qword);
#line 179 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_FETCH_DATA_KIND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_FETCH_DATA_KIND) || \
    false)

static inline void trace_replay_fetch_data_kind(void)
{
    if (trace_event_get_state(TRACE_REPLAY_FETCH_DATA_KIND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "../xemu/replay/trace-events"
            qemu_log("replay_fetch_data_kind " "" "\n");
#line 194 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_GET_EVENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_GET_EVENT) || \
    false)

static inline void trace_replay_get_event(uint32_t current, uint8_t data)
{
    if (trace_event_get_state(TRACE_REPLAY_GET_EVENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "../xemu/replay/trace-events"
            qemu_log("replay_get_event " "#%u data=%02x" "\n", current, data);
#line 209 "trace/trace-replay.h"
        }
    }
}

#define TRACE_REPLAY_ADVANCE_CURRENT_ICOUNT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_REPLAY_ADVANCE_CURRENT_ICOUNT) || \
    false)

static inline void trace_replay_advance_current_icount(uint64_t current_icount, int diff)
{
    if (trace_event_get_state(TRACE_REPLAY_ADVANCE_CURRENT_ICOUNT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 12 "../xemu/replay/trace-events"
            qemu_log("replay_advance_current_icount " "current=%" PRIu64 " diff=%d" "\n", current_icount, diff);
#line 224 "trace/trace-replay.h"
        }
    }
}
#endif /* TRACE_REPLAY_GENERATED_TRACERS_H */
