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

#ifndef TRACE_EBPF_GENERATED_TRACERS_H
#define TRACE_EBPF_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_EBPF_RSS_LOAD_EVENT;
extern TraceEvent _TRACE_EBPF_RSS_LOAD_ERROR_EVENT;
extern TraceEvent _TRACE_EBPF_RSS_MMAP_EVENT;
extern TraceEvent _TRACE_EBPF_RSS_MMAP_ERROR_EVENT;
extern TraceEvent _TRACE_EBPF_RSS_OPEN_ERROR_EVENT;
extern TraceEvent _TRACE_EBPF_RSS_SET_DATA_EVENT;
extern TraceEvent _TRACE_EBPF_RSS_UNLOAD_EVENT;
extern uint16_t _TRACE_EBPF_RSS_LOAD_DSTATE;
extern uint16_t _TRACE_EBPF_RSS_LOAD_ERROR_DSTATE;
extern uint16_t _TRACE_EBPF_RSS_MMAP_DSTATE;
extern uint16_t _TRACE_EBPF_RSS_MMAP_ERROR_DSTATE;
extern uint16_t _TRACE_EBPF_RSS_OPEN_ERROR_DSTATE;
extern uint16_t _TRACE_EBPF_RSS_SET_DATA_DSTATE;
extern uint16_t _TRACE_EBPF_RSS_UNLOAD_DSTATE;
#define TRACE_EBPF_RSS_LOAD_ENABLED 1
#define TRACE_EBPF_RSS_LOAD_ERROR_ENABLED 1
#define TRACE_EBPF_RSS_MMAP_ENABLED 1
#define TRACE_EBPF_RSS_MMAP_ERROR_ENABLED 1
#define TRACE_EBPF_RSS_OPEN_ERROR_ENABLED 1
#define TRACE_EBPF_RSS_SET_DATA_ENABLED 1
#define TRACE_EBPF_RSS_UNLOAD_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_EBPF_RSS_LOAD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_EBPF_RSS_LOAD) || \
    false)

static inline void trace_ebpf_rss_load(void *ctx, int progfd, int cfgfd, int toepfd, int indirfd)
{
    if (trace_event_get_state(TRACE_EBPF_RSS_LOAD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../ebpf/trace-events"
            qemu_log("ebpf_rss_load " "ctx=%p program-fd=%d config-fd=%d toeplitz-fd=%d indirection-fd=%d" "\n", ctx, progfd, cfgfd, toepfd, indirfd);
#line 44 "trace/trace-ebpf.h"
        }
    }
}

#define TRACE_EBPF_RSS_LOAD_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_EBPF_RSS_LOAD_ERROR) || \
    false)

static inline void trace_ebpf_rss_load_error(void *ctx)
{
    if (trace_event_get_state(TRACE_EBPF_RSS_LOAD_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../ebpf/trace-events"
            qemu_log("ebpf_rss_load_error " "ctx=%p" "\n", ctx);
#line 59 "trace/trace-ebpf.h"
        }
    }
}

#define TRACE_EBPF_RSS_MMAP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_EBPF_RSS_MMAP) || \
    false)

static inline void trace_ebpf_rss_mmap(void *ctx, void *cfgptr, void *toepptr, void *indirptr)
{
    if (trace_event_get_state(TRACE_EBPF_RSS_MMAP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 6 "../ebpf/trace-events"
            qemu_log("ebpf_rss_mmap " "ctx=%p config-ptr=%p toeplitz-ptr=%p indirection-ptr=%p" "\n", ctx, cfgptr, toepptr, indirptr);
#line 74 "trace/trace-ebpf.h"
        }
    }
}

#define TRACE_EBPF_RSS_MMAP_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_EBPF_RSS_MMAP_ERROR) || \
    false)

static inline void trace_ebpf_rss_mmap_error(void *ctx, const char *object)
{
    if (trace_event_get_state(TRACE_EBPF_RSS_MMAP_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 7 "../ebpf/trace-events"
            qemu_log("ebpf_rss_mmap_error " "ctx=%p object=%s" "\n", ctx, object);
#line 89 "trace/trace-ebpf.h"
        }
    }
}

#define TRACE_EBPF_RSS_OPEN_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_EBPF_RSS_OPEN_ERROR) || \
    false)

static inline void trace_ebpf_rss_open_error(void *ctx)
{
    if (trace_event_get_state(TRACE_EBPF_RSS_OPEN_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../ebpf/trace-events"
            qemu_log("ebpf_rss_open_error " "ctx=%p" "\n", ctx);
#line 104 "trace/trace-ebpf.h"
        }
    }
}

#define TRACE_EBPF_RSS_SET_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_EBPF_RSS_SET_DATA) || \
    false)

static inline void trace_ebpf_rss_set_data(void *ctx, void *cfgptr, void *toepptr, void *indirptr)
{
    if (trace_event_get_state(TRACE_EBPF_RSS_SET_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "../ebpf/trace-events"
            qemu_log("ebpf_rss_set_data " "ctx=%p config-ptr=%p toeplitz-ptr=%p indirection-ptr=%p" "\n", ctx, cfgptr, toepptr, indirptr);
#line 119 "trace/trace-ebpf.h"
        }
    }
}

#define TRACE_EBPF_RSS_UNLOAD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_EBPF_RSS_UNLOAD) || \
    false)

static inline void trace_ebpf_rss_unload(void *ctx)
{
    if (trace_event_get_state(TRACE_EBPF_RSS_UNLOAD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "../ebpf/trace-events"
            qemu_log("ebpf_rss_unload " "rss unload ctx=%p" "\n", ctx);
#line 134 "trace/trace-ebpf.h"
        }
    }
}
#endif /* TRACE_EBPF_GENERATED_TRACERS_H */
