linux/drivers/net/wireless/mediatek/mt76/mt7615/mt7615_trace.h

/* SPDX-License-Identifier: ISC */
/*
 * Copyright (C) 2019 Lorenzo Bianconi <[email protected]>
 */

#if !defined(__MT7615_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
#define __MT7615_TRACE_H

#include <linux/tracepoint.h>
#include "mt7615.h"

#undef TRACE_SYSTEM
#define TRACE_SYSTEM

#define MAXNAME
#define DEV_ENTRY
#define DEV_ASSIGN
#define DEV_PR_FMT
#define DEV_PR_ARG

#define TOKEN_ENTRY
#define TOKEN_ASSIGN
#define TOKEN_PR_FMT
#define TOKEN_PR_ARG

DECLARE_EVENT_CLASS(dev_token,
	TP_PROTO(struct mt7615_dev *dev, u16 token),
	TP_ARGS(dev, token),
	TP_STRUCT__entry(
		DEV_ENTRY
		TOKEN_ENTRY
	),
	TP_fast_assign(
		DEV_ASSIGN;
		TOKEN_ASSIGN;
	),
	TP_printk(
		DEV_PR_FMT TOKEN_PR_FMT,
		DEV_PR_ARG, TOKEN_PR_ARG
	)
);

DEFINE_EVENT(dev_token, mac_tx_free,
	TP_PROTO(struct mt7615_dev *dev, u16 token),
	TP_ARGS(dev, token)
);

#endif

#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE

#include <trace/define_trace.h>