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

#ifndef TRACE_BACKENDS_TPM_GENERATED_TRACERS_H
#define TRACE_BACKENDS_TPM_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_TPM_PASSTHROUGH_HANDLE_REQUEST_EVENT;
extern TraceEvent _TRACE_TPM_PASSTHROUGH_RESET_EVENT;
extern TraceEvent _TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN_EVENT;
extern TraceEvent _TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN_EVENT;
extern TraceEvent _TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN2_EVENT;
extern TraceEvent _TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN2_EVENT;
extern TraceEvent _TRACE_TPM_UTIL_GET_BUFFER_SIZE_EVENT;
extern TraceEvent _TRACE_TPM_UTIL_SHOW_BUFFER_HEADER_EVENT;
extern TraceEvent _TRACE_TPM_UTIL_SHOW_BUFFER_CONTENT_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_SET_LOCALITY_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_HANDLE_REQUEST_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_PROBE_CAPS_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_SET_BUFFER_SIZE_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_STARTUP_TPM_RESUME_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_GET_TPM_ESTABLISHED_FLAG_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_CANCEL_CMD_NOT_SUPT_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_LOCK_STORAGE_CMD_NOT_SUPT_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_VM_STATE_CHANGE_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM12_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM2_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_UNSPEC_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_STARTUP_ERROR_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_GET_STATE_BLOB_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_SET_STATE_BLOB_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_SET_STATE_BLOBS_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_SET_STATE_BLOBS_ERROR_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_SET_STATE_BLOBS_DONE_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_PRE_SAVE_EVENT;
extern TraceEvent _TRACE_TPM_EMULATOR_INST_INIT_EVENT;
extern uint16_t _TRACE_TPM_PASSTHROUGH_HANDLE_REQUEST_DSTATE;
extern uint16_t _TRACE_TPM_PASSTHROUGH_RESET_DSTATE;
extern uint16_t _TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN_DSTATE;
extern uint16_t _TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN_DSTATE;
extern uint16_t _TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN2_DSTATE;
extern uint16_t _TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN2_DSTATE;
extern uint16_t _TRACE_TPM_UTIL_GET_BUFFER_SIZE_DSTATE;
extern uint16_t _TRACE_TPM_UTIL_SHOW_BUFFER_HEADER_DSTATE;
extern uint16_t _TRACE_TPM_UTIL_SHOW_BUFFER_CONTENT_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_SET_LOCALITY_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_HANDLE_REQUEST_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_PROBE_CAPS_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_SET_BUFFER_SIZE_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_STARTUP_TPM_RESUME_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_GET_TPM_ESTABLISHED_FLAG_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_CANCEL_CMD_NOT_SUPT_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_LOCK_STORAGE_CMD_NOT_SUPT_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_VM_STATE_CHANGE_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM12_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM2_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_UNSPEC_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_STARTUP_ERROR_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_GET_STATE_BLOB_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_SET_STATE_BLOB_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_SET_STATE_BLOBS_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_SET_STATE_BLOBS_ERROR_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_SET_STATE_BLOBS_DONE_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_PRE_SAVE_DSTATE;
extern uint16_t _TRACE_TPM_EMULATOR_INST_INIT_DSTATE;
#define TRACE_TPM_PASSTHROUGH_HANDLE_REQUEST_ENABLED 1
#define TRACE_TPM_PASSTHROUGH_RESET_ENABLED 1
#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN_ENABLED 1
#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN_ENABLED 1
#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN2_ENABLED 1
#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN2_ENABLED 1
#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_ENABLED 1
#define TRACE_TPM_UTIL_SHOW_BUFFER_HEADER_ENABLED 1
#define TRACE_TPM_UTIL_SHOW_BUFFER_CONTENT_ENABLED 1
#define TRACE_TPM_EMULATOR_SET_LOCALITY_ENABLED 1
#define TRACE_TPM_EMULATOR_HANDLE_REQUEST_ENABLED 1
#define TRACE_TPM_EMULATOR_PROBE_CAPS_ENABLED 1
#define TRACE_TPM_EMULATOR_SET_BUFFER_SIZE_ENABLED 1
#define TRACE_TPM_EMULATOR_STARTUP_TPM_RESUME_ENABLED 1
#define TRACE_TPM_EMULATOR_GET_TPM_ESTABLISHED_FLAG_ENABLED 1
#define TRACE_TPM_EMULATOR_CANCEL_CMD_NOT_SUPT_ENABLED 1
#define TRACE_TPM_EMULATOR_LOCK_STORAGE_CMD_NOT_SUPT_ENABLED 1
#define TRACE_TPM_EMULATOR_VM_STATE_CHANGE_ENABLED 1
#define TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM12_ENABLED 1
#define TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM2_ENABLED 1
#define TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_UNSPEC_ENABLED 1
#define TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_STARTUP_ERROR_ENABLED 1
#define TRACE_TPM_EMULATOR_GET_STATE_BLOB_ENABLED 1
#define TRACE_TPM_EMULATOR_SET_STATE_BLOB_ENABLED 1
#define TRACE_TPM_EMULATOR_SET_STATE_BLOBS_ENABLED 1
#define TRACE_TPM_EMULATOR_SET_STATE_BLOBS_ERROR_ENABLED 1
#define TRACE_TPM_EMULATOR_SET_STATE_BLOBS_DONE_ENABLED 1
#define TRACE_TPM_EMULATOR_PRE_SAVE_ENABLED 1
#define TRACE_TPM_EMULATOR_INST_INIT_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_TPM_PASSTHROUGH_HANDLE_REQUEST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_PASSTHROUGH_HANDLE_REQUEST) || \
    false)

static inline void trace_tpm_passthrough_handle_request(void *cmd)
{
    if (trace_event_get_state(TRACE_TPM_PASSTHROUGH_HANDLE_REQUEST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../backends/tpm/trace-events"
            qemu_log("tpm_passthrough_handle_request " "processing command %p" "\n", cmd);
#line 110 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_PASSTHROUGH_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_PASSTHROUGH_RESET) || \
    false)

static inline void trace_tpm_passthrough_reset(void)
{
    if (trace_event_get_state(TRACE_TPM_PASSTHROUGH_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../backends/tpm/trace-events"
            qemu_log("tpm_passthrough_reset " "reset" "\n");
#line 125 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN) || \
    false)

static inline void trace_tpm_util_get_buffer_size_hdr_len(uint32_t len, size_t expected)
{
    if (trace_event_get_state(TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../backends/tpm/trace-events"
            qemu_log("tpm_util_get_buffer_size_hdr_len " "tpm_resp->hdr.len = %u, expected = %zu" "\n", len, expected);
#line 140 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN) || \
    false)

static inline void trace_tpm_util_get_buffer_size_len(uint32_t len, size_t expected)
{
    if (trace_event_get_state(TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "../backends/tpm/trace-events"
            qemu_log("tpm_util_get_buffer_size_len " "tpm_resp->len = %u, expected = %zu" "\n", len, expected);
#line 155 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN2_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN2) || \
    false)

static inline void trace_tpm_util_get_buffer_size_hdr_len2(uint32_t len, size_t expected)
{
    if (trace_event_get_state(TRACE_TPM_UTIL_GET_BUFFER_SIZE_HDR_LEN2)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "../backends/tpm/trace-events"
            qemu_log("tpm_util_get_buffer_size_hdr_len2 " "tpm2_resp->hdr.len = %u, expected = %zu" "\n", len, expected);
#line 170 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN2_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN2) || \
    false)

static inline void trace_tpm_util_get_buffer_size_len2(uint32_t len, size_t expected)
{
    if (trace_event_get_state(TRACE_TPM_UTIL_GET_BUFFER_SIZE_LEN2)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "../backends/tpm/trace-events"
            qemu_log("tpm_util_get_buffer_size_len2 " "tpm2_resp->len = %u, expected = %zu" "\n", len, expected);
#line 185 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_UTIL_GET_BUFFER_SIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_UTIL_GET_BUFFER_SIZE) || \
    false)

static inline void trace_tpm_util_get_buffer_size(size_t len)
{
    if (trace_event_get_state(TRACE_TPM_UTIL_GET_BUFFER_SIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 12 "../backends/tpm/trace-events"
            qemu_log("tpm_util_get_buffer_size " "buffersize of device: %zu" "\n", len);
#line 200 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_UTIL_SHOW_BUFFER_HEADER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_UTIL_SHOW_BUFFER_HEADER) || \
    false)

static inline void trace_tpm_util_show_buffer_header(const char *direction, size_t len)
{
    if (trace_event_get_state(TRACE_TPM_UTIL_SHOW_BUFFER_HEADER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 13 "../backends/tpm/trace-events"
            qemu_log("tpm_util_show_buffer_header " "direction: %s len: %zu" "\n", direction, len);
#line 215 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_UTIL_SHOW_BUFFER_CONTENT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_UTIL_SHOW_BUFFER_CONTENT) || \
    false)

static inline void trace_tpm_util_show_buffer_content(const char *buf)
{
    if (trace_event_get_state(TRACE_TPM_UTIL_SHOW_BUFFER_CONTENT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 14 "../backends/tpm/trace-events"
            qemu_log("tpm_util_show_buffer_content " "%s" "\n", buf);
#line 230 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_SET_LOCALITY_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_SET_LOCALITY) || \
    false)

static inline void trace_tpm_emulator_set_locality(uint8_t locty)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_SET_LOCALITY)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 17 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_set_locality " "setting locality to %d" "\n", locty);
#line 245 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_HANDLE_REQUEST_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_HANDLE_REQUEST) || \
    false)

static inline void trace_tpm_emulator_handle_request(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_HANDLE_REQUEST)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 18 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_handle_request " "processing TPM command" "\n");
#line 260 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_PROBE_CAPS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_PROBE_CAPS) || \
    false)

static inline void trace_tpm_emulator_probe_caps(uint32_t caps)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_PROBE_CAPS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 19 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_probe_caps " "capabilities: 0x%x" "\n", caps);
#line 275 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_SET_BUFFER_SIZE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_SET_BUFFER_SIZE) || \
    false)

static inline void trace_tpm_emulator_set_buffer_size(uint32_t buffersize, uint32_t minsize, uint32_t maxsize)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_SET_BUFFER_SIZE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 20 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_set_buffer_size " "buffer size: %u, min: %u, max: %u" "\n", buffersize, minsize, maxsize);
#line 290 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_STARTUP_TPM_RESUME_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_STARTUP_TPM_RESUME) || \
    false)

static inline void trace_tpm_emulator_startup_tpm_resume(bool is_resume, size_t buffersize)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_STARTUP_TPM_RESUME)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 21 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_startup_tpm_resume " "is_resume: %d, buffer size: %zu" "\n", is_resume, buffersize);
#line 305 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_GET_TPM_ESTABLISHED_FLAG_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_GET_TPM_ESTABLISHED_FLAG) || \
    false)

static inline void trace_tpm_emulator_get_tpm_established_flag(uint8_t flag)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_GET_TPM_ESTABLISHED_FLAG)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 22 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_get_tpm_established_flag " "got established flag: %d" "\n", flag);
#line 320 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_CANCEL_CMD_NOT_SUPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_CANCEL_CMD_NOT_SUPT) || \
    false)

static inline void trace_tpm_emulator_cancel_cmd_not_supt(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_CANCEL_CMD_NOT_SUPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 23 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_cancel_cmd_not_supt " "Backend does not support CANCEL_TPM_CMD" "\n");
#line 335 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_LOCK_STORAGE_CMD_NOT_SUPT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_LOCK_STORAGE_CMD_NOT_SUPT) || \
    false)

static inline void trace_tpm_emulator_lock_storage_cmd_not_supt(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_LOCK_STORAGE_CMD_NOT_SUPT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 24 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_lock_storage_cmd_not_supt " "Backend does not support LOCK_STORAGE" "\n");
#line 350 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_VM_STATE_CHANGE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_VM_STATE_CHANGE) || \
    false)

static inline void trace_tpm_emulator_vm_state_change(int running, int state)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_VM_STATE_CHANGE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 25 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_vm_state_change " "state change to running %d state %d" "\n", running, state);
#line 365 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM12_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM12) || \
    false)

static inline void trace_tpm_emulator_handle_device_opts_tpm12(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM12)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 26 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_handle_device_opts_tpm12 " "TPM Version 1.2" "\n");
#line 380 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM2_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM2) || \
    false)

static inline void trace_tpm_emulator_handle_device_opts_tpm2(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_TPM2)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 27 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_handle_device_opts_tpm2 " "TPM Version 2" "\n");
#line 395 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_UNSPEC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_UNSPEC) || \
    false)

static inline void trace_tpm_emulator_handle_device_opts_unspec(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_UNSPEC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 28 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_handle_device_opts_unspec " "TPM Version Unspecified" "\n");
#line 410 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_STARTUP_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_STARTUP_ERROR) || \
    false)

static inline void trace_tpm_emulator_handle_device_opts_startup_error(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_HANDLE_DEVICE_OPTS_STARTUP_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 29 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_handle_device_opts_startup_error " "Startup error" "\n");
#line 425 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_GET_STATE_BLOB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_GET_STATE_BLOB) || \
    false)

static inline void trace_tpm_emulator_get_state_blob(uint8_t type, uint32_t size, uint32_t flags)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_GET_STATE_BLOB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 30 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_get_state_blob " "got state blob type %d, %u bytes, flags 0x%08x" "\n", type, size, flags);
#line 440 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_SET_STATE_BLOB_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_SET_STATE_BLOB) || \
    false)

static inline void trace_tpm_emulator_set_state_blob(uint8_t type, uint32_t size, uint32_t flags)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_SET_STATE_BLOB)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 31 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_set_state_blob " "set state blob type %d, %u bytes, flags 0x%08x" "\n", type, size, flags);
#line 455 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_SET_STATE_BLOBS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_SET_STATE_BLOBS) || \
    false)

static inline void trace_tpm_emulator_set_state_blobs(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_SET_STATE_BLOBS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 32 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_set_state_blobs " "setting state blobs" "\n");
#line 470 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_SET_STATE_BLOBS_ERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_SET_STATE_BLOBS_ERROR) || \
    false)

static inline void trace_tpm_emulator_set_state_blobs_error(const char *msg)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_SET_STATE_BLOBS_ERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 33 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_set_state_blobs_error " "error while setting state blobs: %s" "\n", msg);
#line 485 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_SET_STATE_BLOBS_DONE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_SET_STATE_BLOBS_DONE) || \
    false)

static inline void trace_tpm_emulator_set_state_blobs_done(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_SET_STATE_BLOBS_DONE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 34 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_set_state_blobs_done " "Done setting state blobs" "\n");
#line 500 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_PRE_SAVE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_PRE_SAVE) || \
    false)

static inline void trace_tpm_emulator_pre_save(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_PRE_SAVE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 35 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_pre_save " "" "\n");
#line 515 "trace/trace-backends_tpm.h"
        }
    }
}

#define TRACE_TPM_EMULATOR_INST_INIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_TPM_EMULATOR_INST_INIT) || \
    false)

static inline void trace_tpm_emulator_inst_init(void)
{
    if (trace_event_get_state(TRACE_TPM_EMULATOR_INST_INIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 36 "../backends/tpm/trace-events"
            qemu_log("tpm_emulator_inst_init " "" "\n");
#line 530 "trace/trace-backends_tpm.h"
        }
    }
}
#endif /* TRACE_BACKENDS_TPM_GENERATED_TRACERS_H */
