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

#ifndef TRACE_QAPI_COMMANDS_CHAR_TRACE_EVENTS_GENERATED_TRACERS_H
#define TRACE_QAPI_COMMANDS_CHAR_TRACE_EVENTS_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_QMP_ENTER_QUERY_CHARDEV_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_QUERY_CHARDEV_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_QUERY_CHARDEV_BACKENDS_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_QUERY_CHARDEV_BACKENDS_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_RINGBUF_WRITE_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_RINGBUF_WRITE_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_RINGBUF_READ_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_RINGBUF_READ_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_CHARDEV_ADD_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_CHARDEV_ADD_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_CHARDEV_CHANGE_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_CHARDEV_CHANGE_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_CHARDEV_REMOVE_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_CHARDEV_REMOVE_EVENT;
extern TraceEvent _TRACE_QMP_ENTER_CHARDEV_SEND_BREAK_EVENT;
extern TraceEvent _TRACE_QMP_EXIT_CHARDEV_SEND_BREAK_EVENT;
extern uint16_t _TRACE_QMP_ENTER_QUERY_CHARDEV_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_QUERY_CHARDEV_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_QUERY_CHARDEV_BACKENDS_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_QUERY_CHARDEV_BACKENDS_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_RINGBUF_WRITE_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_RINGBUF_WRITE_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_RINGBUF_READ_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_RINGBUF_READ_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_CHARDEV_ADD_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_CHARDEV_ADD_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_CHARDEV_CHANGE_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_CHARDEV_CHANGE_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_CHARDEV_REMOVE_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_CHARDEV_REMOVE_DSTATE;
extern uint16_t _TRACE_QMP_ENTER_CHARDEV_SEND_BREAK_DSTATE;
extern uint16_t _TRACE_QMP_EXIT_CHARDEV_SEND_BREAK_DSTATE;
#define TRACE_QMP_ENTER_QUERY_CHARDEV_ENABLED 1
#define TRACE_QMP_EXIT_QUERY_CHARDEV_ENABLED 1
#define TRACE_QMP_ENTER_QUERY_CHARDEV_BACKENDS_ENABLED 1
#define TRACE_QMP_EXIT_QUERY_CHARDEV_BACKENDS_ENABLED 1
#define TRACE_QMP_ENTER_RINGBUF_WRITE_ENABLED 1
#define TRACE_QMP_EXIT_RINGBUF_WRITE_ENABLED 1
#define TRACE_QMP_ENTER_RINGBUF_READ_ENABLED 1
#define TRACE_QMP_EXIT_RINGBUF_READ_ENABLED 1
#define TRACE_QMP_ENTER_CHARDEV_ADD_ENABLED 1
#define TRACE_QMP_EXIT_CHARDEV_ADD_ENABLED 1
#define TRACE_QMP_ENTER_CHARDEV_CHANGE_ENABLED 1
#define TRACE_QMP_EXIT_CHARDEV_CHANGE_ENABLED 1
#define TRACE_QMP_ENTER_CHARDEV_REMOVE_ENABLED 1
#define TRACE_QMP_EXIT_CHARDEV_REMOVE_ENABLED 1
#define TRACE_QMP_ENTER_CHARDEV_SEND_BREAK_ENABLED 1
#define TRACE_QMP_EXIT_CHARDEV_SEND_BREAK_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_QMP_ENTER_QUERY_CHARDEV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_QUERY_CHARDEV) || \
    false)

static inline void trace_qmp_enter_query_chardev(const char *json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_QUERY_CHARDEV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 3 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_enter_query_chardev " "%s" "\n", json);
#line 71 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_EXIT_QUERY_CHARDEV_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_QUERY_CHARDEV) || \
    false)

static inline void trace_qmp_exit_query_chardev(const char *result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_QUERY_CHARDEV)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_exit_query_chardev " "%s %d" "\n", result, succeeded);
#line 86 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_ENTER_QUERY_CHARDEV_BACKENDS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_QUERY_CHARDEV_BACKENDS) || \
    false)

static inline void trace_qmp_enter_query_chardev_backends(const char *json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_QUERY_CHARDEV_BACKENDS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_enter_query_chardev_backends " "%s" "\n", json);
#line 101 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_EXIT_QUERY_CHARDEV_BACKENDS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_QUERY_CHARDEV_BACKENDS) || \
    false)

static inline void trace_qmp_exit_query_chardev_backends(const char *result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_QUERY_CHARDEV_BACKENDS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 6 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_exit_query_chardev_backends " "%s %d" "\n", result, succeeded);
#line 116 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_ENTER_RINGBUF_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_RINGBUF_WRITE) || \
    false)

static inline void trace_qmp_enter_ringbuf_write(const char *json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_RINGBUF_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 7 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_enter_ringbuf_write " "%s" "\n", json);
#line 131 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_EXIT_RINGBUF_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_RINGBUF_WRITE) || \
    false)

static inline void trace_qmp_exit_ringbuf_write(const char *result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_RINGBUF_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_exit_ringbuf_write " "%s %d" "\n", result, succeeded);
#line 146 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_ENTER_RINGBUF_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_RINGBUF_READ) || \
    false)

static inline void trace_qmp_enter_ringbuf_read(const char *json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_RINGBUF_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_enter_ringbuf_read " "%s" "\n", json);
#line 161 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_EXIT_RINGBUF_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_RINGBUF_READ) || \
    false)

static inline void trace_qmp_exit_ringbuf_read(const char *result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_RINGBUF_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_exit_ringbuf_read " "%s %d" "\n", result, succeeded);
#line 176 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_ENTER_CHARDEV_ADD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_CHARDEV_ADD) || \
    false)

static inline void trace_qmp_enter_chardev_add(const char *json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_CHARDEV_ADD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_enter_chardev_add " "%s" "\n", json);
#line 191 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_EXIT_CHARDEV_ADD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_CHARDEV_ADD) || \
    false)

static inline void trace_qmp_exit_chardev_add(const char *result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_CHARDEV_ADD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 12 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_exit_chardev_add " "%s %d" "\n", result, succeeded);
#line 206 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_ENTER_CHARDEV_CHANGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_CHARDEV_CHANGE) || \
    false)

static inline void trace_qmp_enter_chardev_change(const char *json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_CHARDEV_CHANGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 13 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_enter_chardev_change " "%s" "\n", json);
#line 221 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_EXIT_CHARDEV_CHANGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_CHARDEV_CHANGE) || \
    false)

static inline void trace_qmp_exit_chardev_change(const char *result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_CHARDEV_CHANGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 14 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_exit_chardev_change " "%s %d" "\n", result, succeeded);
#line 236 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_ENTER_CHARDEV_REMOVE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_CHARDEV_REMOVE) || \
    false)

static inline void trace_qmp_enter_chardev_remove(const char *json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_CHARDEV_REMOVE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 15 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_enter_chardev_remove " "%s" "\n", json);
#line 251 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_EXIT_CHARDEV_REMOVE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_CHARDEV_REMOVE) || \
    false)

static inline void trace_qmp_exit_chardev_remove(const char *result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_CHARDEV_REMOVE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 16 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_exit_chardev_remove " "%s %d" "\n", result, succeeded);
#line 266 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_ENTER_CHARDEV_SEND_BREAK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_ENTER_CHARDEV_SEND_BREAK) || \
    false)

static inline void trace_qmp_enter_chardev_send_break(const char *json)
{
    if (trace_event_get_state(TRACE_QMP_ENTER_CHARDEV_SEND_BREAK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 17 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_enter_chardev_send_break " "%s" "\n", json);
#line 281 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}

#define TRACE_QMP_EXIT_CHARDEV_SEND_BREAK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QMP_EXIT_CHARDEV_SEND_BREAK) || \
    false)

static inline void trace_qmp_exit_chardev_send_break(const char *result, bool succeeded)
{
    if (trace_event_get_state(TRACE_QMP_EXIT_CHARDEV_SEND_BREAK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 18 "qapi/qapi-commands-char.trace-events"
            qemu_log("qmp_exit_chardev_send_break " "%s %d" "\n", result, succeeded);
#line 296 "trace/trace-qapi_commands_char_trace_events.h"
        }
    }
}
#endif /* TRACE_QAPI_COMMANDS_CHAR_TRACE_EVENTS_GENERATED_TRACERS_H */
