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

#ifndef TRACE_HW_9PFS_GENERATED_TRACERS_H
#define TRACE_HW_9PFS_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_V9FS_RCANCEL_EVENT;
extern TraceEvent _TRACE_V9FS_RERROR_EVENT;
extern TraceEvent _TRACE_V9FS_VERSION_EVENT;
extern TraceEvent _TRACE_V9FS_VERSION_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_ATTACH_EVENT;
extern TraceEvent _TRACE_V9FS_ATTACH_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_STAT_EVENT;
extern TraceEvent _TRACE_V9FS_STAT_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_GETATTR_EVENT;
extern TraceEvent _TRACE_V9FS_GETATTR_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_WALK_EVENT;
extern TraceEvent _TRACE_V9FS_WALK_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_OPEN_EVENT;
extern TraceEvent _TRACE_V9FS_OPEN_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_LCREATE_EVENT;
extern TraceEvent _TRACE_V9FS_LCREATE_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_FSYNC_EVENT;
extern TraceEvent _TRACE_V9FS_CLUNK_EVENT;
extern TraceEvent _TRACE_V9FS_READ_EVENT;
extern TraceEvent _TRACE_V9FS_READ_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_READDIR_EVENT;
extern TraceEvent _TRACE_V9FS_READDIR_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_WRITE_EVENT;
extern TraceEvent _TRACE_V9FS_WRITE_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_CREATE_EVENT;
extern TraceEvent _TRACE_V9FS_CREATE_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_SYMLINK_EVENT;
extern TraceEvent _TRACE_V9FS_SYMLINK_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_FLUSH_EVENT;
extern TraceEvent _TRACE_V9FS_LINK_EVENT;
extern TraceEvent _TRACE_V9FS_REMOVE_EVENT;
extern TraceEvent _TRACE_V9FS_WSTAT_EVENT;
extern TraceEvent _TRACE_V9FS_MKNOD_EVENT;
extern TraceEvent _TRACE_V9FS_MKNOD_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_LOCK_EVENT;
extern TraceEvent _TRACE_V9FS_LOCK_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_GETLOCK_EVENT;
extern TraceEvent _TRACE_V9FS_GETLOCK_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_MKDIR_EVENT;
extern TraceEvent _TRACE_V9FS_MKDIR_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_XATTRWALK_EVENT;
extern TraceEvent _TRACE_V9FS_XATTRWALK_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_XATTRCREATE_EVENT;
extern TraceEvent _TRACE_V9FS_READLINK_EVENT;
extern TraceEvent _TRACE_V9FS_READLINK_RETURN_EVENT;
extern TraceEvent _TRACE_V9FS_SETATTR_EVENT;
extern TraceEvent _TRACE_V9FS_SETATTR_RETURN_EVENT;
extern TraceEvent _TRACE_XEN_9PFS_ALLOC_EVENT;
extern TraceEvent _TRACE_XEN_9PFS_CONNECT_EVENT;
extern TraceEvent _TRACE_XEN_9PFS_DISCONNECT_EVENT;
extern TraceEvent _TRACE_XEN_9PFS_FREE_EVENT;
extern uint16_t _TRACE_V9FS_RCANCEL_DSTATE;
extern uint16_t _TRACE_V9FS_RERROR_DSTATE;
extern uint16_t _TRACE_V9FS_VERSION_DSTATE;
extern uint16_t _TRACE_V9FS_VERSION_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_ATTACH_DSTATE;
extern uint16_t _TRACE_V9FS_ATTACH_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_STAT_DSTATE;
extern uint16_t _TRACE_V9FS_STAT_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_GETATTR_DSTATE;
extern uint16_t _TRACE_V9FS_GETATTR_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_WALK_DSTATE;
extern uint16_t _TRACE_V9FS_WALK_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_OPEN_DSTATE;
extern uint16_t _TRACE_V9FS_OPEN_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_LCREATE_DSTATE;
extern uint16_t _TRACE_V9FS_LCREATE_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_FSYNC_DSTATE;
extern uint16_t _TRACE_V9FS_CLUNK_DSTATE;
extern uint16_t _TRACE_V9FS_READ_DSTATE;
extern uint16_t _TRACE_V9FS_READ_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_READDIR_DSTATE;
extern uint16_t _TRACE_V9FS_READDIR_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_WRITE_DSTATE;
extern uint16_t _TRACE_V9FS_WRITE_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_CREATE_DSTATE;
extern uint16_t _TRACE_V9FS_CREATE_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_SYMLINK_DSTATE;
extern uint16_t _TRACE_V9FS_SYMLINK_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_FLUSH_DSTATE;
extern uint16_t _TRACE_V9FS_LINK_DSTATE;
extern uint16_t _TRACE_V9FS_REMOVE_DSTATE;
extern uint16_t _TRACE_V9FS_WSTAT_DSTATE;
extern uint16_t _TRACE_V9FS_MKNOD_DSTATE;
extern uint16_t _TRACE_V9FS_MKNOD_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_LOCK_DSTATE;
extern uint16_t _TRACE_V9FS_LOCK_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_GETLOCK_DSTATE;
extern uint16_t _TRACE_V9FS_GETLOCK_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_MKDIR_DSTATE;
extern uint16_t _TRACE_V9FS_MKDIR_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_XATTRWALK_DSTATE;
extern uint16_t _TRACE_V9FS_XATTRWALK_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_XATTRCREATE_DSTATE;
extern uint16_t _TRACE_V9FS_READLINK_DSTATE;
extern uint16_t _TRACE_V9FS_READLINK_RETURN_DSTATE;
extern uint16_t _TRACE_V9FS_SETATTR_DSTATE;
extern uint16_t _TRACE_V9FS_SETATTR_RETURN_DSTATE;
extern uint16_t _TRACE_XEN_9PFS_ALLOC_DSTATE;
extern uint16_t _TRACE_XEN_9PFS_CONNECT_DSTATE;
extern uint16_t _TRACE_XEN_9PFS_DISCONNECT_DSTATE;
extern uint16_t _TRACE_XEN_9PFS_FREE_DSTATE;
#define TRACE_V9FS_RCANCEL_ENABLED 1
#define TRACE_V9FS_RERROR_ENABLED 1
#define TRACE_V9FS_VERSION_ENABLED 1
#define TRACE_V9FS_VERSION_RETURN_ENABLED 1
#define TRACE_V9FS_ATTACH_ENABLED 1
#define TRACE_V9FS_ATTACH_RETURN_ENABLED 1
#define TRACE_V9FS_STAT_ENABLED 1
#define TRACE_V9FS_STAT_RETURN_ENABLED 1
#define TRACE_V9FS_GETATTR_ENABLED 1
#define TRACE_V9FS_GETATTR_RETURN_ENABLED 1
#define TRACE_V9FS_WALK_ENABLED 1
#define TRACE_V9FS_WALK_RETURN_ENABLED 1
#define TRACE_V9FS_OPEN_ENABLED 1
#define TRACE_V9FS_OPEN_RETURN_ENABLED 1
#define TRACE_V9FS_LCREATE_ENABLED 1
#define TRACE_V9FS_LCREATE_RETURN_ENABLED 1
#define TRACE_V9FS_FSYNC_ENABLED 1
#define TRACE_V9FS_CLUNK_ENABLED 1
#define TRACE_V9FS_READ_ENABLED 1
#define TRACE_V9FS_READ_RETURN_ENABLED 1
#define TRACE_V9FS_READDIR_ENABLED 1
#define TRACE_V9FS_READDIR_RETURN_ENABLED 1
#define TRACE_V9FS_WRITE_ENABLED 1
#define TRACE_V9FS_WRITE_RETURN_ENABLED 1
#define TRACE_V9FS_CREATE_ENABLED 1
#define TRACE_V9FS_CREATE_RETURN_ENABLED 1
#define TRACE_V9FS_SYMLINK_ENABLED 1
#define TRACE_V9FS_SYMLINK_RETURN_ENABLED 1
#define TRACE_V9FS_FLUSH_ENABLED 1
#define TRACE_V9FS_LINK_ENABLED 1
#define TRACE_V9FS_REMOVE_ENABLED 1
#define TRACE_V9FS_WSTAT_ENABLED 1
#define TRACE_V9FS_MKNOD_ENABLED 1
#define TRACE_V9FS_MKNOD_RETURN_ENABLED 1
#define TRACE_V9FS_LOCK_ENABLED 1
#define TRACE_V9FS_LOCK_RETURN_ENABLED 1
#define TRACE_V9FS_GETLOCK_ENABLED 1
#define TRACE_V9FS_GETLOCK_RETURN_ENABLED 1
#define TRACE_V9FS_MKDIR_ENABLED 1
#define TRACE_V9FS_MKDIR_RETURN_ENABLED 1
#define TRACE_V9FS_XATTRWALK_ENABLED 1
#define TRACE_V9FS_XATTRWALK_RETURN_ENABLED 1
#define TRACE_V9FS_XATTRCREATE_ENABLED 1
#define TRACE_V9FS_READLINK_ENABLED 1
#define TRACE_V9FS_READLINK_RETURN_ENABLED 1
#define TRACE_V9FS_SETATTR_ENABLED 1
#define TRACE_V9FS_SETATTR_RETURN_ENABLED 1
#define TRACE_XEN_9PFS_ALLOC_ENABLED 1
#define TRACE_XEN_9PFS_CONNECT_ENABLED 1
#define TRACE_XEN_9PFS_DISCONNECT_ENABLED 1
#define TRACE_XEN_9PFS_FREE_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_V9FS_RCANCEL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_RCANCEL) || \
    false)

static inline void trace_v9fs_rcancel(uint16_t tag, uint8_t id)
{
    if (trace_event_get_state(TRACE_V9FS_RCANCEL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../hw/9pfs/trace-events"
            qemu_log("v9fs_rcancel " "tag %d id %d" "\n", tag, id);
#line 176 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_RERROR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_RERROR) || \
    false)

static inline void trace_v9fs_rerror(uint16_t tag, uint8_t id, int err)
{
    if (trace_event_get_state(TRACE_V9FS_RERROR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../hw/9pfs/trace-events"
            qemu_log("v9fs_rerror " "tag %d id %d err %d" "\n", tag, id, err);
#line 191 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_VERSION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_VERSION) || \
    false)

static inline void trace_v9fs_version(uint16_t tag, uint8_t id, int32_t msize, char*version)
{
    if (trace_event_get_state(TRACE_V9FS_VERSION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 6 "../hw/9pfs/trace-events"
            qemu_log("v9fs_version " "tag %d id %d msize %d version %s" "\n", tag, id, msize, version);
#line 206 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_VERSION_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_VERSION_RETURN) || \
    false)

static inline void trace_v9fs_version_return(uint16_t tag, uint8_t id, int32_t msize, char*version)
{
    if (trace_event_get_state(TRACE_V9FS_VERSION_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 7 "../hw/9pfs/trace-events"
            qemu_log("v9fs_version_return " "tag %d id %d msize %d version %s" "\n", tag, id, msize, version);
#line 221 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_ATTACH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_ATTACH) || \
    false)

static inline void trace_v9fs_attach(uint16_t tag, uint8_t id, int32_t fid, int32_t afid, char*uname, char*aname)
{
    if (trace_event_get_state(TRACE_V9FS_ATTACH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../hw/9pfs/trace-events"
            qemu_log("v9fs_attach " "tag %u id %u fid %d afid %d uname %s aname %s" "\n", tag, id, fid, afid, uname, aname);
#line 236 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_ATTACH_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_ATTACH_RETURN) || \
    false)

static inline void trace_v9fs_attach_return(uint16_t tag, uint8_t id, uint8_t type, uint32_t version, uint64_t path)
{
    if (trace_event_get_state(TRACE_V9FS_ATTACH_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "../hw/9pfs/trace-events"
            qemu_log("v9fs_attach_return " "tag %u id %u type %u version %u path %"PRIu64 "\n", tag, id, type, version, path);
#line 251 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_STAT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_STAT) || \
    false)

static inline void trace_v9fs_stat(uint16_t tag, uint8_t id, int32_t fid)
{
    if (trace_event_get_state(TRACE_V9FS_STAT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "../hw/9pfs/trace-events"
            qemu_log("v9fs_stat " "tag %d id %d fid %d" "\n", tag, id, fid);
#line 266 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_STAT_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_STAT_RETURN) || \
    false)

static inline void trace_v9fs_stat_return(uint16_t tag, uint8_t id, int32_t mode, int32_t atime, int32_t mtime, int64_t length)
{
    if (trace_event_get_state(TRACE_V9FS_STAT_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "../hw/9pfs/trace-events"
            qemu_log("v9fs_stat_return " "tag %d id %d stat={mode %d atime %d mtime %d length %"PRId64"}" "\n", tag, id, mode, atime, mtime, length);
#line 281 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_GETATTR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_GETATTR) || \
    false)

static inline void trace_v9fs_getattr(uint16_t tag, uint8_t id, int32_t fid, uint64_t request_mask)
{
    if (trace_event_get_state(TRACE_V9FS_GETATTR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 12 "../hw/9pfs/trace-events"
            qemu_log("v9fs_getattr " "tag %d id %d fid %d request_mask %"PRIu64 "\n", tag, id, fid, request_mask);
#line 296 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_GETATTR_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_GETATTR_RETURN) || \
    false)

static inline void trace_v9fs_getattr_return(uint16_t tag, uint8_t id, uint64_t result_mask, uint32_t mode, uint32_t uid, uint32_t gid)
{
    if (trace_event_get_state(TRACE_V9FS_GETATTR_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 13 "../hw/9pfs/trace-events"
            qemu_log("v9fs_getattr_return " "tag %d id %d getattr={result_mask %"PRId64" mode %u uid %u gid %u}" "\n", tag, id, result_mask, mode, uid, gid);
#line 311 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_WALK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_WALK) || \
    false)

static inline void trace_v9fs_walk(uint16_t tag, uint8_t id, int32_t fid, int32_t newfid, uint16_t nwnames, const char*wnames)
{
    if (trace_event_get_state(TRACE_V9FS_WALK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 14 "../hw/9pfs/trace-events"
            qemu_log("v9fs_walk " "tag=%d id=%d fid=%d newfid=%d nwnames=%d wnames={%s}" "\n", tag, id, fid, newfid, nwnames, wnames);
#line 326 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_WALK_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_WALK_RETURN) || \
    false)

static inline void trace_v9fs_walk_return(uint16_t tag, uint8_t id, uint16_t nwnames, void*qids)
{
    if (trace_event_get_state(TRACE_V9FS_WALK_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 15 "../hw/9pfs/trace-events"
            qemu_log("v9fs_walk_return " "tag %d id %d nwnames %d qids %p" "\n", tag, id, nwnames, qids);
#line 341 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_OPEN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_OPEN) || \
    false)

static inline void trace_v9fs_open(uint16_t tag, uint8_t id, int32_t fid, int32_t mode, const char*oflags)
{
    if (trace_event_get_state(TRACE_V9FS_OPEN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 16 "../hw/9pfs/trace-events"
            qemu_log("v9fs_open " "tag=%d id=%d fid=%d mode=%d(%s)" "\n", tag, id, fid, mode, oflags);
#line 356 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_OPEN_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_OPEN_RETURN) || \
    false)

static inline void trace_v9fs_open_return(uint16_t tag, uint8_t id, uint8_t type, uint32_t version, uint64_t path, int iounit)
{
    if (trace_event_get_state(TRACE_V9FS_OPEN_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 17 "../hw/9pfs/trace-events"
            qemu_log("v9fs_open_return " "tag %u id %u qid={type %u version %u path %"PRIu64"} iounit %d" "\n", tag, id, type, version, path, iounit);
#line 371 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_LCREATE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_LCREATE) || \
    false)

static inline void trace_v9fs_lcreate(uint16_t tag, uint8_t id, int32_t dfid, int32_t flags, int32_t mode, uint32_t gid)
{
    if (trace_event_get_state(TRACE_V9FS_LCREATE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 18 "../hw/9pfs/trace-events"
            qemu_log("v9fs_lcreate " "tag %d id %d dfid %d flags %d mode %d gid %u" "\n", tag, id, dfid, flags, mode, gid);
#line 386 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_LCREATE_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_LCREATE_RETURN) || \
    false)

static inline void trace_v9fs_lcreate_return(uint16_t tag, uint8_t id, uint8_t type, uint32_t version, uint64_t path, int32_t iounit)
{
    if (trace_event_get_state(TRACE_V9FS_LCREATE_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 19 "../hw/9pfs/trace-events"
            qemu_log("v9fs_lcreate_return " "tag %u id %u qid={type %u version %u path %"PRIu64"} iounit %d" "\n", tag, id, type, version, path, iounit);
#line 401 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_FSYNC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_FSYNC) || \
    false)

static inline void trace_v9fs_fsync(uint16_t tag, uint8_t id, int32_t fid, int datasync)
{
    if (trace_event_get_state(TRACE_V9FS_FSYNC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 20 "../hw/9pfs/trace-events"
            qemu_log("v9fs_fsync " "tag %d id %d fid %d datasync %d" "\n", tag, id, fid, datasync);
#line 416 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_CLUNK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_CLUNK) || \
    false)

static inline void trace_v9fs_clunk(uint16_t tag, uint8_t id, int32_t fid)
{
    if (trace_event_get_state(TRACE_V9FS_CLUNK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 21 "../hw/9pfs/trace-events"
            qemu_log("v9fs_clunk " "tag %d id %d fid %d" "\n", tag, id, fid);
#line 431 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_READ) || \
    false)

static inline void trace_v9fs_read(uint16_t tag, uint8_t id, int32_t fid, uint64_t off, uint32_t max_count)
{
    if (trace_event_get_state(TRACE_V9FS_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 22 "../hw/9pfs/trace-events"
            qemu_log("v9fs_read " "tag %d id %d fid %d off %"PRIu64" max_count %u" "\n", tag, id, fid, off, max_count);
#line 446 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_READ_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_READ_RETURN) || \
    false)

static inline void trace_v9fs_read_return(uint16_t tag, uint8_t id, int32_t count, ssize_t err)
{
    if (trace_event_get_state(TRACE_V9FS_READ_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 23 "../hw/9pfs/trace-events"
            qemu_log("v9fs_read_return " "tag %d id %d count %d err %zd" "\n", tag, id, count, err);
#line 461 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_READDIR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_READDIR) || \
    false)

static inline void trace_v9fs_readdir(uint16_t tag, uint8_t id, int32_t fid, uint64_t offset, uint32_t max_count)
{
    if (trace_event_get_state(TRACE_V9FS_READDIR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 24 "../hw/9pfs/trace-events"
            qemu_log("v9fs_readdir " "tag %d id %d fid %d offset %"PRIu64" max_count %u" "\n", tag, id, fid, offset, max_count);
#line 476 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_READDIR_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_READDIR_RETURN) || \
    false)

static inline void trace_v9fs_readdir_return(uint16_t tag, uint8_t id, uint32_t count, ssize_t retval)
{
    if (trace_event_get_state(TRACE_V9FS_READDIR_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 25 "../hw/9pfs/trace-events"
            qemu_log("v9fs_readdir_return " "tag %d id %d count %u retval %zd" "\n", tag, id, count, retval);
#line 491 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_WRITE) || \
    false)

static inline void trace_v9fs_write(uint16_t tag, uint8_t id, int32_t fid, uint64_t off, uint32_t count, int cnt)
{
    if (trace_event_get_state(TRACE_V9FS_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 26 "../hw/9pfs/trace-events"
            qemu_log("v9fs_write " "tag %d id %d fid %d off %"PRIu64" count %u cnt %d" "\n", tag, id, fid, off, count, cnt);
#line 506 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_WRITE_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_WRITE_RETURN) || \
    false)

static inline void trace_v9fs_write_return(uint16_t tag, uint8_t id, int32_t total, ssize_t err)
{
    if (trace_event_get_state(TRACE_V9FS_WRITE_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 27 "../hw/9pfs/trace-events"
            qemu_log("v9fs_write_return " "tag %d id %d total %d err %zd" "\n", tag, id, total, err);
#line 521 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_CREATE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_CREATE) || \
    false)

static inline void trace_v9fs_create(uint16_t tag, uint8_t id, int32_t fid, char*name, int32_t perm, int8_t mode)
{
    if (trace_event_get_state(TRACE_V9FS_CREATE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 28 "../hw/9pfs/trace-events"
            qemu_log("v9fs_create " "tag %d id %d fid %d name %s perm %d mode %d" "\n", tag, id, fid, name, perm, mode);
#line 536 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_CREATE_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_CREATE_RETURN) || \
    false)

static inline void trace_v9fs_create_return(uint16_t tag, uint8_t id, uint8_t type, uint32_t version, uint64_t path, int iounit)
{
    if (trace_event_get_state(TRACE_V9FS_CREATE_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 29 "../hw/9pfs/trace-events"
            qemu_log("v9fs_create_return " "tag %u id %u qid={type %u version %u path %"PRIu64"} iounit %d" "\n", tag, id, type, version, path, iounit);
#line 551 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_SYMLINK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_SYMLINK) || \
    false)

static inline void trace_v9fs_symlink(uint16_t tag, uint8_t id, int32_t fid, char*name, char*symname, uint32_t gid)
{
    if (trace_event_get_state(TRACE_V9FS_SYMLINK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 30 "../hw/9pfs/trace-events"
            qemu_log("v9fs_symlink " "tag %d id %d fid %d name %s symname %s gid %u" "\n", tag, id, fid, name, symname, gid);
#line 566 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_SYMLINK_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_SYMLINK_RETURN) || \
    false)

static inline void trace_v9fs_symlink_return(uint16_t tag, uint8_t id, uint8_t type, uint32_t version, uint64_t path)
{
    if (trace_event_get_state(TRACE_V9FS_SYMLINK_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 31 "../hw/9pfs/trace-events"
            qemu_log("v9fs_symlink_return " "tag %u id %u qid={type %u version %u path %"PRIu64"}" "\n", tag, id, type, version, path);
#line 581 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_FLUSH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_FLUSH) || \
    false)

static inline void trace_v9fs_flush(uint16_t tag, uint8_t id, int16_t flush_tag)
{
    if (trace_event_get_state(TRACE_V9FS_FLUSH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 32 "../hw/9pfs/trace-events"
            qemu_log("v9fs_flush " "tag %d id %d flush_tag %d" "\n", tag, id, flush_tag);
#line 596 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_LINK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_LINK) || \
    false)

static inline void trace_v9fs_link(uint16_t tag, uint8_t id, int32_t dfid, int32_t oldfid, char*name)
{
    if (trace_event_get_state(TRACE_V9FS_LINK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 33 "../hw/9pfs/trace-events"
            qemu_log("v9fs_link " "tag %d id %d dfid %d oldfid %d name %s" "\n", tag, id, dfid, oldfid, name);
#line 611 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_REMOVE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_REMOVE) || \
    false)

static inline void trace_v9fs_remove(uint16_t tag, uint8_t id, int32_t fid)
{
    if (trace_event_get_state(TRACE_V9FS_REMOVE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 34 "../hw/9pfs/trace-events"
            qemu_log("v9fs_remove " "tag %d id %d fid %d" "\n", tag, id, fid);
#line 626 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_WSTAT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_WSTAT) || \
    false)

static inline void trace_v9fs_wstat(uint16_t tag, uint8_t id, int32_t fid, int32_t mode, int32_t atime, int32_t mtime)
{
    if (trace_event_get_state(TRACE_V9FS_WSTAT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 35 "../hw/9pfs/trace-events"
            qemu_log("v9fs_wstat " "tag %u id %u fid %d stat={mode %d atime %d mtime %d}" "\n", tag, id, fid, mode, atime, mtime);
#line 641 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_MKNOD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_MKNOD) || \
    false)

static inline void trace_v9fs_mknod(uint16_t tag, uint8_t id, int32_t fid, int mode, int major, int minor)
{
    if (trace_event_get_state(TRACE_V9FS_MKNOD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 36 "../hw/9pfs/trace-events"
            qemu_log("v9fs_mknod " "tag %d id %d fid %d mode %d major %d minor %d" "\n", tag, id, fid, mode, major, minor);
#line 656 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_MKNOD_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_MKNOD_RETURN) || \
    false)

static inline void trace_v9fs_mknod_return(uint16_t tag, uint8_t id, uint8_t type, uint32_t version, uint64_t path)
{
    if (trace_event_get_state(TRACE_V9FS_MKNOD_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 37 "../hw/9pfs/trace-events"
            qemu_log("v9fs_mknod_return " "tag %u id %u qid={type %u version %u path %"PRIu64"}" "\n", tag, id, type, version, path);
#line 671 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_LOCK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_LOCK) || \
    false)

static inline void trace_v9fs_lock(uint16_t tag, uint8_t id, int32_t fid, uint8_t type, uint64_t start, uint64_t length)
{
    if (trace_event_get_state(TRACE_V9FS_LOCK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 38 "../hw/9pfs/trace-events"
            qemu_log("v9fs_lock " "tag %d id %d fid %d type %d start %"PRIu64" length %"PRIu64 "\n", tag, id, fid, type, start, length);
#line 686 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_LOCK_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_LOCK_RETURN) || \
    false)

static inline void trace_v9fs_lock_return(uint16_t tag, uint8_t id, int8_t status)
{
    if (trace_event_get_state(TRACE_V9FS_LOCK_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 39 "../hw/9pfs/trace-events"
            qemu_log("v9fs_lock_return " "tag %d id %d status %d" "\n", tag, id, status);
#line 701 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_GETLOCK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_GETLOCK) || \
    false)

static inline void trace_v9fs_getlock(uint16_t tag, uint8_t id, int32_t fid, uint8_t type, uint64_t start, uint64_t length)
{
    if (trace_event_get_state(TRACE_V9FS_GETLOCK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 40 "../hw/9pfs/trace-events"
            qemu_log("v9fs_getlock " "tag %d id %d fid %d type %d start %"PRIu64" length %"PRIu64 "\n", tag, id, fid, type, start, length);
#line 716 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_GETLOCK_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_GETLOCK_RETURN) || \
    false)

static inline void trace_v9fs_getlock_return(uint16_t tag, uint8_t id, uint8_t type, uint64_t start, uint64_t length, uint32_t proc_id)
{
    if (trace_event_get_state(TRACE_V9FS_GETLOCK_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 41 "../hw/9pfs/trace-events"
            qemu_log("v9fs_getlock_return " "tag %d id %d type %d start %"PRIu64" length %"PRIu64" proc_id %u" "\n", tag, id, type, start, length, proc_id);
#line 731 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_MKDIR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_MKDIR) || \
    false)

static inline void trace_v9fs_mkdir(uint16_t tag, uint8_t id, int32_t fid, char*name, int mode, uint32_t gid)
{
    if (trace_event_get_state(TRACE_V9FS_MKDIR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 42 "../hw/9pfs/trace-events"
            qemu_log("v9fs_mkdir " "tag %u id %u fid %d name %s mode %d gid %u" "\n", tag, id, fid, name, mode, gid);
#line 746 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_MKDIR_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_MKDIR_RETURN) || \
    false)

static inline void trace_v9fs_mkdir_return(uint16_t tag, uint8_t id, uint8_t type, uint32_t version, uint64_t path, int err)
{
    if (trace_event_get_state(TRACE_V9FS_MKDIR_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 43 "../hw/9pfs/trace-events"
            qemu_log("v9fs_mkdir_return " "tag %u id %u qid={type %u version %u path %"PRIu64"} err %d" "\n", tag, id, type, version, path, err);
#line 761 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_XATTRWALK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_XATTRWALK) || \
    false)

static inline void trace_v9fs_xattrwalk(uint16_t tag, uint8_t id, int32_t fid, int32_t newfid, char*name)
{
    if (trace_event_get_state(TRACE_V9FS_XATTRWALK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 44 "../hw/9pfs/trace-events"
            qemu_log("v9fs_xattrwalk " "tag %d id %d fid %d newfid %d name %s" "\n", tag, id, fid, newfid, name);
#line 776 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_XATTRWALK_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_XATTRWALK_RETURN) || \
    false)

static inline void trace_v9fs_xattrwalk_return(uint16_t tag, uint8_t id, int64_t size)
{
    if (trace_event_get_state(TRACE_V9FS_XATTRWALK_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 45 "../hw/9pfs/trace-events"
            qemu_log("v9fs_xattrwalk_return " "tag %d id %d size %"PRId64 "\n", tag, id, size);
#line 791 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_XATTRCREATE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_XATTRCREATE) || \
    false)

static inline void trace_v9fs_xattrcreate(uint16_t tag, uint8_t id, int32_t fid, char*name, uint64_t size, int flags)
{
    if (trace_event_get_state(TRACE_V9FS_XATTRCREATE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 46 "../hw/9pfs/trace-events"
            qemu_log("v9fs_xattrcreate " "tag %d id %d fid %d name %s size %"PRIu64" flags %d" "\n", tag, id, fid, name, size, flags);
#line 806 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_READLINK_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_READLINK) || \
    false)

static inline void trace_v9fs_readlink(uint16_t tag, uint8_t id, int32_t fid)
{
    if (trace_event_get_state(TRACE_V9FS_READLINK)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 47 "../hw/9pfs/trace-events"
            qemu_log("v9fs_readlink " "tag %d id %d fid %d" "\n", tag, id, fid);
#line 821 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_READLINK_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_READLINK_RETURN) || \
    false)

static inline void trace_v9fs_readlink_return(uint16_t tag, uint8_t id, char*target)
{
    if (trace_event_get_state(TRACE_V9FS_READLINK_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 48 "../hw/9pfs/trace-events"
            qemu_log("v9fs_readlink_return " "tag %d id %d name %s" "\n", tag, id, target);
#line 836 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_SETATTR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_SETATTR) || \
    false)

static inline void trace_v9fs_setattr(uint16_t tag, uint8_t id, int32_t fid, int32_t valid, int32_t mode, int32_t uid, int32_t gid, int64_t size, int64_t atime_sec, int64_t mtime_sec)
{
    if (trace_event_get_state(TRACE_V9FS_SETATTR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 49 "../hw/9pfs/trace-events"
            qemu_log("v9fs_setattr " "tag %u id %u fid %d iattr={valid %d mode %d uid %d gid %d size %"PRId64" atime=%"PRId64" mtime=%"PRId64" }" "\n", tag, id, fid, valid, mode, uid, gid, size, atime_sec, mtime_sec);
#line 851 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_V9FS_SETATTR_RETURN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_V9FS_SETATTR_RETURN) || \
    false)

static inline void trace_v9fs_setattr_return(uint16_t tag, uint8_t id)
{
    if (trace_event_get_state(TRACE_V9FS_SETATTR_RETURN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 50 "../hw/9pfs/trace-events"
            qemu_log("v9fs_setattr_return " "tag %u id %u" "\n", tag, id);
#line 866 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_XEN_9PFS_ALLOC_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_XEN_9PFS_ALLOC) || \
    false)

static inline void trace_xen_9pfs_alloc(char *name)
{
    if (trace_event_get_state(TRACE_XEN_9PFS_ALLOC)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 53 "../hw/9pfs/trace-events"
            qemu_log("xen_9pfs_alloc " "name %s" "\n", name);
#line 881 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_XEN_9PFS_CONNECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_XEN_9PFS_CONNECT) || \
    false)

static inline void trace_xen_9pfs_connect(char *name)
{
    if (trace_event_get_state(TRACE_XEN_9PFS_CONNECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 54 "../hw/9pfs/trace-events"
            qemu_log("xen_9pfs_connect " "name %s" "\n", name);
#line 896 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_XEN_9PFS_DISCONNECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_XEN_9PFS_DISCONNECT) || \
    false)

static inline void trace_xen_9pfs_disconnect(char *name)
{
    if (trace_event_get_state(TRACE_XEN_9PFS_DISCONNECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 55 "../hw/9pfs/trace-events"
            qemu_log("xen_9pfs_disconnect " "name %s" "\n", name);
#line 911 "trace/trace-hw_9pfs.h"
        }
    }
}

#define TRACE_XEN_9PFS_FREE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_XEN_9PFS_FREE) || \
    false)

static inline void trace_xen_9pfs_free(char *name)
{
    if (trace_event_get_state(TRACE_XEN_9PFS_FREE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 56 "../hw/9pfs/trace-events"
            qemu_log("xen_9pfs_free " "name %s" "\n", name);
#line 926 "trace/trace-hw_9pfs.h"
        }
    }
}
#endif /* TRACE_HW_9PFS_GENERATED_TRACERS_H */
