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

#ifndef TRACE_SCSI_GENERATED_TRACERS_H
#define TRACE_SCSI_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_PR_MANAGER_EXECUTE_EVENT;
extern TraceEvent _TRACE_PR_MANAGER_RUN_EVENT;
extern uint16_t _TRACE_PR_MANAGER_EXECUTE_DSTATE;
extern uint16_t _TRACE_PR_MANAGER_RUN_DSTATE;
#define TRACE_PR_MANAGER_EXECUTE_ENABLED 1
#define TRACE_PR_MANAGER_RUN_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_PR_MANAGER_EXECUTE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PR_MANAGER_EXECUTE) || \
    false)

static inline void trace_pr_manager_execute(int fd, int cmd, int sa)
{
    if (trace_event_get_state(TRACE_PR_MANAGER_EXECUTE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../xemu/scsi/trace-events"
            qemu_log("pr_manager_execute " "fd=%d cmd=0x%02x service action=0x%02x" "\n", fd, cmd, sa);
#line 29 "trace/trace-scsi.h"
        }
    }
}

#define TRACE_PR_MANAGER_RUN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PR_MANAGER_RUN) || \
    false)

static inline void trace_pr_manager_run(int fd, int cmd, int sa)
{
    if (trace_event_get_state(TRACE_PR_MANAGER_RUN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../xemu/scsi/trace-events"
            qemu_log("pr_manager_run " "fd=%d cmd=0x%02x service action=0x%02x" "\n", fd, cmd, sa);
#line 44 "trace/trace-scsi.h"
        }
    }
}
#endif /* TRACE_SCSI_GENERATED_TRACERS_H */
