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

#ifndef TRACE_NET_GENERATED_TRACERS_H
#define TRACE_NET_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_QEMU_ANNOUNCE_SELF_ITER_EVENT;
extern TraceEvent _TRACE_QEMU_ANNOUNCE_TIMER_DEL_EVENT;
extern TraceEvent _TRACE_VHOST_USER_EVENT_EVENT;
extern TraceEvent _TRACE_COLO_PROXY_MAIN_EVENT;
extern TraceEvent _TRACE_COLO_PROXY_MAIN_VNET_INFO_EVENT;
extern TraceEvent _TRACE_COLO_COMPARE_MAIN_EVENT;
extern TraceEvent _TRACE_COLO_COMPARE_DROP_PACKET_EVENT;
extern TraceEvent _TRACE_COLO_COMPARE_UDP_MISCOMPARE_EVENT;
extern TraceEvent _TRACE_COLO_COMPARE_ICMP_MISCOMPARE_EVENT;
extern TraceEvent _TRACE_COLO_COMPARE_IP_INFO_EVENT;
extern TraceEvent _TRACE_COLO_OLD_PACKET_CHECK_FOUND_EVENT;
extern TraceEvent _TRACE_COLO_COMPARE_TCP_INFO_EVENT;
extern TraceEvent _TRACE_COLO_FILTER_REWRITER_PKT_INFO_EVENT;
extern TraceEvent _TRACE_COLO_FILTER_REWRITER_CONN_OFFSET_EVENT;
extern TraceEvent _TRACE_VHOST_VDPA_SET_ADDRESS_SPACE_ID_EVENT;
extern TraceEvent _TRACE_VHOST_VDPA_NET_LOAD_CMD_EVENT;
extern TraceEvent _TRACE_VHOST_VDPA_NET_LOAD_CMD_RETVAL_EVENT;
extern TraceEvent _TRACE_VHOST_VDPA_NET_LOAD_MQ_EVENT;
extern uint16_t _TRACE_QEMU_ANNOUNCE_SELF_ITER_DSTATE;
extern uint16_t _TRACE_QEMU_ANNOUNCE_TIMER_DEL_DSTATE;
extern uint16_t _TRACE_VHOST_USER_EVENT_DSTATE;
extern uint16_t _TRACE_COLO_PROXY_MAIN_DSTATE;
extern uint16_t _TRACE_COLO_PROXY_MAIN_VNET_INFO_DSTATE;
extern uint16_t _TRACE_COLO_COMPARE_MAIN_DSTATE;
extern uint16_t _TRACE_COLO_COMPARE_DROP_PACKET_DSTATE;
extern uint16_t _TRACE_COLO_COMPARE_UDP_MISCOMPARE_DSTATE;
extern uint16_t _TRACE_COLO_COMPARE_ICMP_MISCOMPARE_DSTATE;
extern uint16_t _TRACE_COLO_COMPARE_IP_INFO_DSTATE;
extern uint16_t _TRACE_COLO_OLD_PACKET_CHECK_FOUND_DSTATE;
extern uint16_t _TRACE_COLO_COMPARE_TCP_INFO_DSTATE;
extern uint16_t _TRACE_COLO_FILTER_REWRITER_PKT_INFO_DSTATE;
extern uint16_t _TRACE_COLO_FILTER_REWRITER_CONN_OFFSET_DSTATE;
extern uint16_t _TRACE_VHOST_VDPA_SET_ADDRESS_SPACE_ID_DSTATE;
extern uint16_t _TRACE_VHOST_VDPA_NET_LOAD_CMD_DSTATE;
extern uint16_t _TRACE_VHOST_VDPA_NET_LOAD_CMD_RETVAL_DSTATE;
extern uint16_t _TRACE_VHOST_VDPA_NET_LOAD_MQ_DSTATE;
#define TRACE_QEMU_ANNOUNCE_SELF_ITER_ENABLED 1
#define TRACE_QEMU_ANNOUNCE_TIMER_DEL_ENABLED 1
#define TRACE_VHOST_USER_EVENT_ENABLED 1
#define TRACE_COLO_PROXY_MAIN_ENABLED 1
#define TRACE_COLO_PROXY_MAIN_VNET_INFO_ENABLED 1
#define TRACE_COLO_COMPARE_MAIN_ENABLED 1
#define TRACE_COLO_COMPARE_DROP_PACKET_ENABLED 1
#define TRACE_COLO_COMPARE_UDP_MISCOMPARE_ENABLED 1
#define TRACE_COLO_COMPARE_ICMP_MISCOMPARE_ENABLED 1
#define TRACE_COLO_COMPARE_IP_INFO_ENABLED 1
#define TRACE_COLO_OLD_PACKET_CHECK_FOUND_ENABLED 1
#define TRACE_COLO_COMPARE_TCP_INFO_ENABLED 1
#define TRACE_COLO_FILTER_REWRITER_PKT_INFO_ENABLED 1
#define TRACE_COLO_FILTER_REWRITER_CONN_OFFSET_ENABLED 1
#define TRACE_VHOST_VDPA_SET_ADDRESS_SPACE_ID_ENABLED 1
#define TRACE_VHOST_VDPA_NET_LOAD_CMD_ENABLED 1
#define TRACE_VHOST_VDPA_NET_LOAD_CMD_RETVAL_ENABLED 1
#define TRACE_VHOST_VDPA_NET_LOAD_MQ_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_QEMU_ANNOUNCE_SELF_ITER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QEMU_ANNOUNCE_SELF_ITER) || \
    false)

static inline void trace_qemu_announce_self_iter(const char *id, const char *name, const char *mac, int skip)
{
    if (trace_event_get_state(TRACE_QEMU_ANNOUNCE_SELF_ITER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../xemu/net/trace-events"
            qemu_log("qemu_announce_self_iter " "%s:%s:%s skip: %d" "\n", id, name, mac, skip);
#line 77 "trace/trace-net.h"
        }
    }
}

#define TRACE_QEMU_ANNOUNCE_TIMER_DEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_QEMU_ANNOUNCE_TIMER_DEL) || \
    false)

static inline void trace_qemu_announce_timer_del(bool free_named, bool free_timer, char *id)
{
    if (trace_event_get_state(TRACE_QEMU_ANNOUNCE_TIMER_DEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../xemu/net/trace-events"
            qemu_log("qemu_announce_timer_del " "free named: %d free timer: %d id: %s" "\n", free_named, free_timer, id);
#line 92 "trace/trace-net.h"
        }
    }
}

#define TRACE_VHOST_USER_EVENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VHOST_USER_EVENT) || \
    false)

static inline void trace_vhost_user_event(const char *chr, int event)
{
    if (trace_event_get_state(TRACE_VHOST_USER_EVENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../xemu/net/trace-events"
            qemu_log("vhost_user_event " "chr: %s got event: %d" "\n", chr, event);
#line 107 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_PROXY_MAIN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_PROXY_MAIN) || \
    false)

static inline void trace_colo_proxy_main(const char *chr)
{
    if (trace_event_get_state(TRACE_COLO_PROXY_MAIN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "../xemu/net/trace-events"
            qemu_log("colo_proxy_main " ": %s" "\n", chr);
#line 122 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_PROXY_MAIN_VNET_INFO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_PROXY_MAIN_VNET_INFO) || \
    false)

static inline void trace_colo_proxy_main_vnet_info(const char *sta, uint32_t vnet_hdr, int size)
{
    if (trace_event_get_state(TRACE_COLO_PROXY_MAIN_VNET_INFO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 12 "../xemu/net/trace-events"
            qemu_log("colo_proxy_main_vnet_info " ": %s pkt->vnet_hdr_len = %u, pkt->size = %d" "\n", sta, vnet_hdr, size);
#line 137 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_COMPARE_MAIN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_COMPARE_MAIN) || \
    false)

static inline void trace_colo_compare_main(const char *chr)
{
    if (trace_event_get_state(TRACE_COLO_COMPARE_MAIN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 15 "../xemu/net/trace-events"
            qemu_log("colo_compare_main " ": %s" "\n", chr);
#line 152 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_COMPARE_DROP_PACKET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_COMPARE_DROP_PACKET) || \
    false)

static inline void trace_colo_compare_drop_packet(const char *queue, const char *chr)
{
    if (trace_event_get_state(TRACE_COLO_COMPARE_DROP_PACKET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 16 "../xemu/net/trace-events"
            qemu_log("colo_compare_drop_packet " ": %s: %s" "\n", queue, chr);
#line 167 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_COMPARE_UDP_MISCOMPARE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_COMPARE_UDP_MISCOMPARE) || \
    false)

static inline void trace_colo_compare_udp_miscompare(const char *sta, int size)
{
    if (trace_event_get_state(TRACE_COLO_COMPARE_UDP_MISCOMPARE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 17 "../xemu/net/trace-events"
            qemu_log("colo_compare_udp_miscompare " ": %s = %d" "\n", sta, size);
#line 182 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_COMPARE_ICMP_MISCOMPARE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_COMPARE_ICMP_MISCOMPARE) || \
    false)

static inline void trace_colo_compare_icmp_miscompare(const char *sta, int size)
{
    if (trace_event_get_state(TRACE_COLO_COMPARE_ICMP_MISCOMPARE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 18 "../xemu/net/trace-events"
            qemu_log("colo_compare_icmp_miscompare " ": %s = %d" "\n", sta, size);
#line 197 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_COMPARE_IP_INFO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_COMPARE_IP_INFO) || \
    false)

static inline void trace_colo_compare_ip_info(int psize, const char *sta, const char *stb, int ssize, const char *stc, const char *std)
{
    if (trace_event_get_state(TRACE_COLO_COMPARE_IP_INFO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 19 "../xemu/net/trace-events"
            qemu_log("colo_compare_ip_info " "ppkt size = %d, ip_src = %s, ip_dst = %s, spkt size = %d, ip_src = %s, ip_dst = %s" "\n", psize, sta, stb, ssize, stc, std);
#line 212 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_OLD_PACKET_CHECK_FOUND_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_OLD_PACKET_CHECK_FOUND) || \
    false)

static inline void trace_colo_old_packet_check_found(int64_t old_time)
{
    if (trace_event_get_state(TRACE_COLO_OLD_PACKET_CHECK_FOUND)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 20 "../xemu/net/trace-events"
            qemu_log("colo_old_packet_check_found " "%" PRId64 "\n", old_time);
#line 227 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_COMPARE_TCP_INFO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_COMPARE_TCP_INFO) || \
    false)

static inline void trace_colo_compare_tcp_info(const char *pkt, uint32_t seq, uint32_t ack, int hdlen, int pdlen, int offset, int flags)
{
    if (trace_event_get_state(TRACE_COLO_COMPARE_TCP_INFO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 21 "../xemu/net/trace-events"
            qemu_log("colo_compare_tcp_info " "%s: seq/ack= %u/%u hdlen= %d pdlen= %d offset= %d flags=%d" "\n", pkt, seq, ack, hdlen, pdlen, offset, flags);
#line 242 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_FILTER_REWRITER_PKT_INFO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_FILTER_REWRITER_PKT_INFO) || \
    false)

static inline void trace_colo_filter_rewriter_pkt_info(const char *func, const char *src, const char *dst, uint32_t seq, uint32_t ack, uint32_t flag)
{
    if (trace_event_get_state(TRACE_COLO_FILTER_REWRITER_PKT_INFO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 24 "../xemu/net/trace-events"
            qemu_log("colo_filter_rewriter_pkt_info " "%s: src/dst: %s/%s p: seq/ack=%u/%u  flags=0x%x" "\n", func, src, dst, seq, ack, flag);
#line 257 "trace/trace-net.h"
        }
    }
}

#define TRACE_COLO_FILTER_REWRITER_CONN_OFFSET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_COLO_FILTER_REWRITER_CONN_OFFSET) || \
    false)

static inline void trace_colo_filter_rewriter_conn_offset(uint32_t offset)
{
    if (trace_event_get_state(TRACE_COLO_FILTER_REWRITER_CONN_OFFSET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 25 "../xemu/net/trace-events"
            qemu_log("colo_filter_rewriter_conn_offset " ": offset=%u" "\n", offset);
#line 272 "trace/trace-net.h"
        }
    }
}

#define TRACE_VHOST_VDPA_SET_ADDRESS_SPACE_ID_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VHOST_VDPA_SET_ADDRESS_SPACE_ID) || \
    false)

static inline void trace_vhost_vdpa_set_address_space_id(void *v, unsigned vq_group, unsigned asid_num)
{
    if (trace_event_get_state(TRACE_VHOST_VDPA_SET_ADDRESS_SPACE_ID)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 28 "../xemu/net/trace-events"
            qemu_log("vhost_vdpa_set_address_space_id " "vhost_vdpa: %p vq_group: %u asid: %u" "\n", v, vq_group, asid_num);
#line 287 "trace/trace-net.h"
        }
    }
}

#define TRACE_VHOST_VDPA_NET_LOAD_CMD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VHOST_VDPA_NET_LOAD_CMD) || \
    false)

static inline void trace_vhost_vdpa_net_load_cmd(void *s, uint8_t class, uint8_t cmd, int data_num, int data_size)
{
    if (trace_event_get_state(TRACE_VHOST_VDPA_NET_LOAD_CMD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 29 "../xemu/net/trace-events"
            qemu_log("vhost_vdpa_net_load_cmd " "vdpa state: %p class: %u cmd: %u sg_num: %d size: %d" "\n", s, class, cmd, data_num, data_size);
#line 302 "trace/trace-net.h"
        }
    }
}

#define TRACE_VHOST_VDPA_NET_LOAD_CMD_RETVAL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VHOST_VDPA_NET_LOAD_CMD_RETVAL) || \
    false)

static inline void trace_vhost_vdpa_net_load_cmd_retval(void *s, uint8_t class, uint8_t cmd, int r)
{
    if (trace_event_get_state(TRACE_VHOST_VDPA_NET_LOAD_CMD_RETVAL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 30 "../xemu/net/trace-events"
            qemu_log("vhost_vdpa_net_load_cmd_retval " "vdpa state: %p class: %u cmd: %u retval: %d" "\n", s, class, cmd, r);
#line 317 "trace/trace-net.h"
        }
    }
}

#define TRACE_VHOST_VDPA_NET_LOAD_MQ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_VHOST_VDPA_NET_LOAD_MQ) || \
    false)

static inline void trace_vhost_vdpa_net_load_mq(void *s, int ncurqps)
{
    if (trace_event_get_state(TRACE_VHOST_VDPA_NET_LOAD_MQ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 31 "../xemu/net/trace-events"
            qemu_log("vhost_vdpa_net_load_mq " "vdpa state: %p current_qpairs: %d" "\n", s, ncurqps);
#line 332 "trace/trace-net.h"
        }
    }
}
#endif /* TRACE_NET_GENERATED_TRACERS_H */
