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

#ifndef TRACE_TARGET_I386_GENERATED_TRACERS_H
#define TRACE_TARGET_I386_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_KVM_SEV_INIT_EVENT;
extern TraceEvent _TRACE_KVM_MEMCRYPT_REGISTER_REGION_EVENT;
extern TraceEvent _TRACE_KVM_MEMCRYPT_UNREGISTER_REGION_EVENT;
extern TraceEvent _TRACE_KVM_SEV_CHANGE_STATE_EVENT;
extern TraceEvent _TRACE_KVM_SEV_LAUNCH_START_EVENT;
extern TraceEvent _TRACE_KVM_SEV_LAUNCH_UPDATE_DATA_EVENT;
extern TraceEvent _TRACE_KVM_SEV_LAUNCH_MEASUREMENT_EVENT;
extern TraceEvent _TRACE_KVM_SEV_LAUNCH_FINISH_EVENT;
extern TraceEvent _TRACE_KVM_SEV_LAUNCH_SECRET_EVENT;
extern TraceEvent _TRACE_KVM_SEV_ATTESTATION_REPORT_EVENT;
extern TraceEvent _TRACE_KVM_SEV_SNP_LAUNCH_START_EVENT;
extern TraceEvent _TRACE_KVM_SEV_SNP_LAUNCH_UPDATE_EVENT;
extern TraceEvent _TRACE_KVM_SEV_SNP_LAUNCH_FINISH_EVENT;
extern TraceEvent _TRACE_SEV_HANDLE_RESET_EVENT;
extern uint16_t _TRACE_KVM_SEV_INIT_DSTATE;
extern uint16_t _TRACE_KVM_MEMCRYPT_REGISTER_REGION_DSTATE;
extern uint16_t _TRACE_KVM_MEMCRYPT_UNREGISTER_REGION_DSTATE;
extern uint16_t _TRACE_KVM_SEV_CHANGE_STATE_DSTATE;
extern uint16_t _TRACE_KVM_SEV_LAUNCH_START_DSTATE;
extern uint16_t _TRACE_KVM_SEV_LAUNCH_UPDATE_DATA_DSTATE;
extern uint16_t _TRACE_KVM_SEV_LAUNCH_MEASUREMENT_DSTATE;
extern uint16_t _TRACE_KVM_SEV_LAUNCH_FINISH_DSTATE;
extern uint16_t _TRACE_KVM_SEV_LAUNCH_SECRET_DSTATE;
extern uint16_t _TRACE_KVM_SEV_ATTESTATION_REPORT_DSTATE;
extern uint16_t _TRACE_KVM_SEV_SNP_LAUNCH_START_DSTATE;
extern uint16_t _TRACE_KVM_SEV_SNP_LAUNCH_UPDATE_DSTATE;
extern uint16_t _TRACE_KVM_SEV_SNP_LAUNCH_FINISH_DSTATE;
extern uint16_t _TRACE_SEV_HANDLE_RESET_DSTATE;
#define TRACE_KVM_SEV_INIT_ENABLED 1
#define TRACE_KVM_MEMCRYPT_REGISTER_REGION_ENABLED 1
#define TRACE_KVM_MEMCRYPT_UNREGISTER_REGION_ENABLED 1
#define TRACE_KVM_SEV_CHANGE_STATE_ENABLED 1
#define TRACE_KVM_SEV_LAUNCH_START_ENABLED 1
#define TRACE_KVM_SEV_LAUNCH_UPDATE_DATA_ENABLED 1
#define TRACE_KVM_SEV_LAUNCH_MEASUREMENT_ENABLED 1
#define TRACE_KVM_SEV_LAUNCH_FINISH_ENABLED 1
#define TRACE_KVM_SEV_LAUNCH_SECRET_ENABLED 1
#define TRACE_KVM_SEV_ATTESTATION_REPORT_ENABLED 1
#define TRACE_KVM_SEV_SNP_LAUNCH_START_ENABLED 1
#define TRACE_KVM_SEV_SNP_LAUNCH_UPDATE_ENABLED 1
#define TRACE_KVM_SEV_SNP_LAUNCH_FINISH_ENABLED 1
#define TRACE_SEV_HANDLE_RESET_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_KVM_SEV_INIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_INIT) || \
    false)

static inline void trace_kvm_sev_init(void)
{
    if (trace_event_get_state(TRACE_KVM_SEV_INIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../target/i386/trace-events"
            qemu_log("kvm_sev_init " "" "\n");
#line 65 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_MEMCRYPT_REGISTER_REGION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_MEMCRYPT_REGISTER_REGION) || \
    false)

static inline void trace_kvm_memcrypt_register_region(void *addr, size_t len)
{
    if (trace_event_get_state(TRACE_KVM_MEMCRYPT_REGISTER_REGION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../target/i386/trace-events"
            qemu_log("kvm_memcrypt_register_region " "addr %p len 0x%zx" "\n", addr, len);
#line 80 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_MEMCRYPT_UNREGISTER_REGION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_MEMCRYPT_UNREGISTER_REGION) || \
    false)

static inline void trace_kvm_memcrypt_unregister_region(void *addr, size_t len)
{
    if (trace_event_get_state(TRACE_KVM_MEMCRYPT_UNREGISTER_REGION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 6 "../target/i386/trace-events"
            qemu_log("kvm_memcrypt_unregister_region " "addr %p len 0x%zx" "\n", addr, len);
#line 95 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_CHANGE_STATE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_CHANGE_STATE) || \
    false)

static inline void trace_kvm_sev_change_state(const char *old, const char *new)
{
    if (trace_event_get_state(TRACE_KVM_SEV_CHANGE_STATE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 7 "../target/i386/trace-events"
            qemu_log("kvm_sev_change_state " "%s -> %s" "\n", old, new);
#line 110 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_LAUNCH_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_LAUNCH_START) || \
    false)

static inline void trace_kvm_sev_launch_start(int policy, void *session, void *pdh)
{
    if (trace_event_get_state(TRACE_KVM_SEV_LAUNCH_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../target/i386/trace-events"
            qemu_log("kvm_sev_launch_start " "policy 0x%x session %p pdh %p" "\n", policy, session, pdh);
#line 125 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_LAUNCH_UPDATE_DATA_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_LAUNCH_UPDATE_DATA) || \
    false)

static inline void trace_kvm_sev_launch_update_data(void *addr, size_t len)
{
    if (trace_event_get_state(TRACE_KVM_SEV_LAUNCH_UPDATE_DATA)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "../target/i386/trace-events"
            qemu_log("kvm_sev_launch_update_data " "addr %p len 0x%zx" "\n", addr, len);
#line 140 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_LAUNCH_MEASUREMENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_LAUNCH_MEASUREMENT) || \
    false)

static inline void trace_kvm_sev_launch_measurement(const char *value)
{
    if (trace_event_get_state(TRACE_KVM_SEV_LAUNCH_MEASUREMENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "../target/i386/trace-events"
            qemu_log("kvm_sev_launch_measurement " "data %s" "\n", value);
#line 155 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_LAUNCH_FINISH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_LAUNCH_FINISH) || \
    false)

static inline void trace_kvm_sev_launch_finish(void)
{
    if (trace_event_get_state(TRACE_KVM_SEV_LAUNCH_FINISH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "../target/i386/trace-events"
            qemu_log("kvm_sev_launch_finish " "" "\n");
#line 170 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_LAUNCH_SECRET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_LAUNCH_SECRET) || \
    false)

static inline void trace_kvm_sev_launch_secret(uint64_t hpa, uint64_t hva, uint64_t secret, int len)
{
    if (trace_event_get_state(TRACE_KVM_SEV_LAUNCH_SECRET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 12 "../target/i386/trace-events"
            qemu_log("kvm_sev_launch_secret " "hpa 0x%" PRIx64 " hva 0x%" PRIx64 " data 0x%" PRIx64 " len %d" "\n", hpa, hva, secret, len);
#line 185 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_ATTESTATION_REPORT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_ATTESTATION_REPORT) || \
    false)

static inline void trace_kvm_sev_attestation_report(const char *mnonce, const char *data)
{
    if (trace_event_get_state(TRACE_KVM_SEV_ATTESTATION_REPORT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 13 "../target/i386/trace-events"
            qemu_log("kvm_sev_attestation_report " "mnonce %s data %s" "\n", mnonce, data);
#line 200 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_SNP_LAUNCH_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_SNP_LAUNCH_START) || \
    false)

static inline void trace_kvm_sev_snp_launch_start(uint64_t policy, char *gosvw)
{
    if (trace_event_get_state(TRACE_KVM_SEV_SNP_LAUNCH_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 14 "../target/i386/trace-events"
            qemu_log("kvm_sev_snp_launch_start " "policy 0x%" PRIx64 " gosvw %s" "\n", policy, gosvw);
#line 215 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_SNP_LAUNCH_UPDATE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_SNP_LAUNCH_UPDATE) || \
    false)

static inline void trace_kvm_sev_snp_launch_update(uint64_t src, uint64_t gpa, uint64_t len, const char *type)
{
    if (trace_event_get_state(TRACE_KVM_SEV_SNP_LAUNCH_UPDATE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 15 "../target/i386/trace-events"
            qemu_log("kvm_sev_snp_launch_update " "src 0x%" PRIx64 " gpa 0x%" PRIx64 " len 0x%" PRIx64 " (%s page)" "\n", src, gpa, len, type);
#line 230 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_KVM_SEV_SNP_LAUNCH_FINISH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_KVM_SEV_SNP_LAUNCH_FINISH) || \
    false)

static inline void trace_kvm_sev_snp_launch_finish(char *id_block, char *id_auth, char *host_data)
{
    if (trace_event_get_state(TRACE_KVM_SEV_SNP_LAUNCH_FINISH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 16 "../target/i386/trace-events"
            qemu_log("kvm_sev_snp_launch_finish " "id_block %s id_auth %s host_data %s" "\n", id_block, id_auth, host_data);
#line 245 "trace/trace-target_i386.h"
        }
    }
}

#define TRACE_SEV_HANDLE_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_SEV_HANDLE_RESET) || \
    false)

static inline void trace_sev_handle_reset(void)
{
    if (trace_event_get_state(TRACE_SEV_HANDLE_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 17 "../target/i386/trace-events"
            qemu_log("sev_handle_reset " "" "\n");
#line 260 "trace/trace-target_i386.h"
        }
    }
}
#endif /* TRACE_TARGET_I386_GENERATED_TRACERS_H */
