18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Based on net/wireless/trace.h */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#undef TRACE_SYSTEM
58c2ecf20Sopenharmony_ci#define TRACE_SYSTEM cfg802154
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#if !defined(__RDEV_CFG802154_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ)
88c2ecf20Sopenharmony_ci#define __RDEV_CFG802154_OPS_TRACE
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <linux/tracepoint.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include <net/cfg802154.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define MAXNAME		32
158c2ecf20Sopenharmony_ci#define WPAN_PHY_ENTRY	__array(char, wpan_phy_name, MAXNAME)
168c2ecf20Sopenharmony_ci#define WPAN_PHY_ASSIGN	strlcpy(__entry->wpan_phy_name,	 \
178c2ecf20Sopenharmony_ci				wpan_phy_name(wpan_phy), \
188c2ecf20Sopenharmony_ci				MAXNAME)
198c2ecf20Sopenharmony_ci#define WPAN_PHY_PR_FMT	"%s"
208c2ecf20Sopenharmony_ci#define WPAN_PHY_PR_ARG	__entry->wpan_phy_name
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#define WPAN_DEV_ENTRY	__field(u32, identifier)
238c2ecf20Sopenharmony_ci#define WPAN_DEV_ASSIGN	(__entry->identifier) = (!IS_ERR_OR_NULL(wpan_dev) \
248c2ecf20Sopenharmony_ci					 ? wpan_dev->identifier : 0)
258c2ecf20Sopenharmony_ci#define WPAN_DEV_PR_FMT	"wpan_dev(%u)"
268c2ecf20Sopenharmony_ci#define WPAN_DEV_PR_ARG	(__entry->identifier)
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#define WPAN_CCA_ENTRY	__field(enum nl802154_cca_modes, cca_mode) \
298c2ecf20Sopenharmony_ci			__field(enum nl802154_cca_opts, cca_opt)
308c2ecf20Sopenharmony_ci#define WPAN_CCA_ASSIGN \
318c2ecf20Sopenharmony_ci	do {					 \
328c2ecf20Sopenharmony_ci		(__entry->cca_mode) = cca->mode; \
338c2ecf20Sopenharmony_ci		(__entry->cca_opt) = cca->opt;	 \
348c2ecf20Sopenharmony_ci	} while (0)
358c2ecf20Sopenharmony_ci#define WPAN_CCA_PR_FMT	"cca_mode: %d, cca_opt: %d"
368c2ecf20Sopenharmony_ci#define WPAN_CCA_PR_ARG __entry->cca_mode, __entry->cca_opt
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci#define BOOL_TO_STR(bo) (bo) ? "true" : "false"
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci/*************************************************************
418c2ecf20Sopenharmony_ci *			rdev->ops traces		     *
428c2ecf20Sopenharmony_ci *************************************************************/
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciDECLARE_EVENT_CLASS(wpan_phy_only_evt,
458c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy),
468c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy),
478c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
488c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
498c2ecf20Sopenharmony_ci	),
508c2ecf20Sopenharmony_ci	TP_fast_assign(
518c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
528c2ecf20Sopenharmony_ci	),
538c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT, WPAN_PHY_PR_ARG)
548c2ecf20Sopenharmony_ci);
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciDEFINE_EVENT(wpan_phy_only_evt, 802154_rdev_suspend,
578c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy),
588c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy)
598c2ecf20Sopenharmony_ci);
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ciDEFINE_EVENT(wpan_phy_only_evt, 802154_rdev_resume,
628c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy),
638c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy)
648c2ecf20Sopenharmony_ci);
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_add_virtual_intf,
678c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, char *name,
688c2ecf20Sopenharmony_ci		 enum nl802154_iftype type, __le64 extended_addr),
698c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, name, type, extended_addr),
708c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
718c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
728c2ecf20Sopenharmony_ci		__string(vir_intf_name, name ? name : "<noname>")
738c2ecf20Sopenharmony_ci		__field(enum nl802154_iftype, type)
748c2ecf20Sopenharmony_ci		__field(__le64, extended_addr)
758c2ecf20Sopenharmony_ci	),
768c2ecf20Sopenharmony_ci	TP_fast_assign(
778c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
788c2ecf20Sopenharmony_ci		__assign_str(vir_intf_name, name ? name : "<noname>");
798c2ecf20Sopenharmony_ci		__entry->type = type;
808c2ecf20Sopenharmony_ci		__entry->extended_addr = extended_addr;
818c2ecf20Sopenharmony_ci	),
828c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", virtual intf name: %s, type: %d, extended addr: 0x%llx",
838c2ecf20Sopenharmony_ci		  WPAN_PHY_PR_ARG, __get_str(vir_intf_name), __entry->type,
848c2ecf20Sopenharmony_ci		  __le64_to_cpu(__entry->extended_addr))
858c2ecf20Sopenharmony_ci);
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_del_virtual_intf,
888c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev),
898c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev),
908c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
918c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
928c2ecf20Sopenharmony_ci		WPAN_DEV_ENTRY
938c2ecf20Sopenharmony_ci	),
948c2ecf20Sopenharmony_ci	TP_fast_assign(
958c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
968c2ecf20Sopenharmony_ci		WPAN_DEV_ASSIGN;
978c2ecf20Sopenharmony_ci	),
988c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT, WPAN_PHY_PR_ARG,
998c2ecf20Sopenharmony_ci		  WPAN_DEV_PR_ARG)
1008c2ecf20Sopenharmony_ci);
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_channel,
1038c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, u8 page, u8 channel),
1048c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, page, channel),
1058c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
1068c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
1078c2ecf20Sopenharmony_ci		__field(u8, page)
1088c2ecf20Sopenharmony_ci		__field(u8, channel)
1098c2ecf20Sopenharmony_ci	),
1108c2ecf20Sopenharmony_ci	TP_fast_assign(
1118c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
1128c2ecf20Sopenharmony_ci		__entry->page = page;
1138c2ecf20Sopenharmony_ci		__entry->channel = channel;
1148c2ecf20Sopenharmony_ci	),
1158c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", page: %d, channel: %d", WPAN_PHY_PR_ARG,
1168c2ecf20Sopenharmony_ci		  __entry->page, __entry->channel)
1178c2ecf20Sopenharmony_ci);
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_tx_power,
1208c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, s32 power),
1218c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, power),
1228c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
1238c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
1248c2ecf20Sopenharmony_ci		__field(s32, power)
1258c2ecf20Sopenharmony_ci	),
1268c2ecf20Sopenharmony_ci	TP_fast_assign(
1278c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
1288c2ecf20Sopenharmony_ci		__entry->power = power;
1298c2ecf20Sopenharmony_ci	),
1308c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", mbm: %d", WPAN_PHY_PR_ARG,
1318c2ecf20Sopenharmony_ci		  __entry->power)
1328c2ecf20Sopenharmony_ci);
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_cca_mode,
1358c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, const struct wpan_phy_cca *cca),
1368c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, cca),
1378c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
1388c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
1398c2ecf20Sopenharmony_ci		WPAN_CCA_ENTRY
1408c2ecf20Sopenharmony_ci	),
1418c2ecf20Sopenharmony_ci	TP_fast_assign(
1428c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
1438c2ecf20Sopenharmony_ci		WPAN_CCA_ASSIGN;
1448c2ecf20Sopenharmony_ci	),
1458c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_CCA_PR_FMT, WPAN_PHY_PR_ARG,
1468c2ecf20Sopenharmony_ci		  WPAN_CCA_PR_ARG)
1478c2ecf20Sopenharmony_ci);
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_cca_ed_level,
1508c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, s32 ed_level),
1518c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, ed_level),
1528c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
1538c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
1548c2ecf20Sopenharmony_ci		__field(s32, ed_level)
1558c2ecf20Sopenharmony_ci	),
1568c2ecf20Sopenharmony_ci	TP_fast_assign(
1578c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
1588c2ecf20Sopenharmony_ci		__entry->ed_level = ed_level;
1598c2ecf20Sopenharmony_ci	),
1608c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", ed level: %d", WPAN_PHY_PR_ARG,
1618c2ecf20Sopenharmony_ci		  __entry->ed_level)
1628c2ecf20Sopenharmony_ci);
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_ciDECLARE_EVENT_CLASS(802154_le16_template,
1658c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
1668c2ecf20Sopenharmony_ci		 __le16 le16arg),
1678c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev, le16arg),
1688c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
1698c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
1708c2ecf20Sopenharmony_ci		WPAN_DEV_ENTRY
1718c2ecf20Sopenharmony_ci		__field(__le16, le16arg)
1728c2ecf20Sopenharmony_ci	),
1738c2ecf20Sopenharmony_ci	TP_fast_assign(
1748c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
1758c2ecf20Sopenharmony_ci		WPAN_DEV_ASSIGN;
1768c2ecf20Sopenharmony_ci		__entry->le16arg = le16arg;
1778c2ecf20Sopenharmony_ci	),
1788c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT ", pan id: 0x%04x",
1798c2ecf20Sopenharmony_ci		  WPAN_PHY_PR_ARG, WPAN_DEV_PR_ARG,
1808c2ecf20Sopenharmony_ci		  __le16_to_cpu(__entry->le16arg))
1818c2ecf20Sopenharmony_ci);
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ciDEFINE_EVENT(802154_le16_template, 802154_rdev_set_pan_id,
1848c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
1858c2ecf20Sopenharmony_ci		 __le16 le16arg),
1868c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev, le16arg)
1878c2ecf20Sopenharmony_ci);
1888c2ecf20Sopenharmony_ci
1898c2ecf20Sopenharmony_ciDEFINE_EVENT_PRINT(802154_le16_template, 802154_rdev_set_short_addr,
1908c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
1918c2ecf20Sopenharmony_ci		 __le16 le16arg),
1928c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev, le16arg),
1938c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT ", short addr: 0x%04x",
1948c2ecf20Sopenharmony_ci		  WPAN_PHY_PR_ARG, WPAN_DEV_PR_ARG,
1958c2ecf20Sopenharmony_ci		  __le16_to_cpu(__entry->le16arg))
1968c2ecf20Sopenharmony_ci);
1978c2ecf20Sopenharmony_ci
1988c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_backoff_exponent,
1998c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
2008c2ecf20Sopenharmony_ci		 u8 min_be, u8 max_be),
2018c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev, min_be, max_be),
2028c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
2038c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
2048c2ecf20Sopenharmony_ci		WPAN_DEV_ENTRY
2058c2ecf20Sopenharmony_ci		__field(u8, min_be)
2068c2ecf20Sopenharmony_ci		__field(u8, max_be)
2078c2ecf20Sopenharmony_ci	),
2088c2ecf20Sopenharmony_ci	TP_fast_assign(
2098c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
2108c2ecf20Sopenharmony_ci		WPAN_DEV_ASSIGN;
2118c2ecf20Sopenharmony_ci		__entry->min_be = min_be;
2128c2ecf20Sopenharmony_ci		__entry->max_be = max_be;
2138c2ecf20Sopenharmony_ci	),
2148c2ecf20Sopenharmony_ci
2158c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT
2168c2ecf20Sopenharmony_ci		  ", min be: %d, max be: %d", WPAN_PHY_PR_ARG,
2178c2ecf20Sopenharmony_ci		  WPAN_DEV_PR_ARG, __entry->min_be, __entry->max_be)
2188c2ecf20Sopenharmony_ci);
2198c2ecf20Sopenharmony_ci
2208c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_csma_backoffs,
2218c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
2228c2ecf20Sopenharmony_ci		 u8 max_csma_backoffs),
2238c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev, max_csma_backoffs),
2248c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
2258c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
2268c2ecf20Sopenharmony_ci		WPAN_DEV_ENTRY
2278c2ecf20Sopenharmony_ci		__field(u8, max_csma_backoffs)
2288c2ecf20Sopenharmony_ci	),
2298c2ecf20Sopenharmony_ci	TP_fast_assign(
2308c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
2318c2ecf20Sopenharmony_ci		WPAN_DEV_ASSIGN;
2328c2ecf20Sopenharmony_ci		__entry->max_csma_backoffs = max_csma_backoffs;
2338c2ecf20Sopenharmony_ci	),
2348c2ecf20Sopenharmony_ci
2358c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT
2368c2ecf20Sopenharmony_ci		  ", max csma backoffs: %d", WPAN_PHY_PR_ARG,
2378c2ecf20Sopenharmony_ci		  WPAN_DEV_PR_ARG, __entry->max_csma_backoffs)
2388c2ecf20Sopenharmony_ci);
2398c2ecf20Sopenharmony_ci
2408c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_max_frame_retries,
2418c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
2428c2ecf20Sopenharmony_ci		 s8 max_frame_retries),
2438c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev, max_frame_retries),
2448c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
2458c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
2468c2ecf20Sopenharmony_ci		WPAN_DEV_ENTRY
2478c2ecf20Sopenharmony_ci		__field(s8, max_frame_retries)
2488c2ecf20Sopenharmony_ci	),
2498c2ecf20Sopenharmony_ci	TP_fast_assign(
2508c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
2518c2ecf20Sopenharmony_ci		WPAN_DEV_ASSIGN;
2528c2ecf20Sopenharmony_ci		__entry->max_frame_retries = max_frame_retries;
2538c2ecf20Sopenharmony_ci	),
2548c2ecf20Sopenharmony_ci
2558c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT
2568c2ecf20Sopenharmony_ci		  ", max frame retries: %d", WPAN_PHY_PR_ARG,
2578c2ecf20Sopenharmony_ci		  WPAN_DEV_PR_ARG, __entry->max_frame_retries)
2588c2ecf20Sopenharmony_ci);
2598c2ecf20Sopenharmony_ci
2608c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_lbt_mode,
2618c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
2628c2ecf20Sopenharmony_ci		 bool mode),
2638c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev, mode),
2648c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
2658c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
2668c2ecf20Sopenharmony_ci		WPAN_DEV_ENTRY
2678c2ecf20Sopenharmony_ci		__field(bool, mode)
2688c2ecf20Sopenharmony_ci	),
2698c2ecf20Sopenharmony_ci	TP_fast_assign(
2708c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
2718c2ecf20Sopenharmony_ci		WPAN_DEV_ASSIGN;
2728c2ecf20Sopenharmony_ci		__entry->mode = mode;
2738c2ecf20Sopenharmony_ci	),
2748c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT
2758c2ecf20Sopenharmony_ci		", lbt mode: %s", WPAN_PHY_PR_ARG,
2768c2ecf20Sopenharmony_ci		WPAN_DEV_PR_ARG, BOOL_TO_STR(__entry->mode))
2778c2ecf20Sopenharmony_ci);
2788c2ecf20Sopenharmony_ci
2798c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_set_ackreq_default,
2808c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
2818c2ecf20Sopenharmony_ci		 bool ackreq),
2828c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, wpan_dev, ackreq),
2838c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
2848c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
2858c2ecf20Sopenharmony_ci		WPAN_DEV_ENTRY
2868c2ecf20Sopenharmony_ci		__field(bool, ackreq)
2878c2ecf20Sopenharmony_ci	),
2888c2ecf20Sopenharmony_ci	TP_fast_assign(
2898c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
2908c2ecf20Sopenharmony_ci		WPAN_DEV_ASSIGN;
2918c2ecf20Sopenharmony_ci		__entry->ackreq = ackreq;
2928c2ecf20Sopenharmony_ci	),
2938c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT
2948c2ecf20Sopenharmony_ci		", ackreq default: %s", WPAN_PHY_PR_ARG,
2958c2ecf20Sopenharmony_ci		WPAN_DEV_PR_ARG, BOOL_TO_STR(__entry->ackreq))
2968c2ecf20Sopenharmony_ci);
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ciTRACE_EVENT(802154_rdev_return_int,
2998c2ecf20Sopenharmony_ci	TP_PROTO(struct wpan_phy *wpan_phy, int ret),
3008c2ecf20Sopenharmony_ci	TP_ARGS(wpan_phy, ret),
3018c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
3028c2ecf20Sopenharmony_ci		WPAN_PHY_ENTRY
3038c2ecf20Sopenharmony_ci		__field(int, ret)
3048c2ecf20Sopenharmony_ci	),
3058c2ecf20Sopenharmony_ci	TP_fast_assign(
3068c2ecf20Sopenharmony_ci		WPAN_PHY_ASSIGN;
3078c2ecf20Sopenharmony_ci		__entry->ret = ret;
3088c2ecf20Sopenharmony_ci	),
3098c2ecf20Sopenharmony_ci	TP_printk(WPAN_PHY_PR_FMT ", returned: %d", WPAN_PHY_PR_ARG,
3108c2ecf20Sopenharmony_ci		  __entry->ret)
3118c2ecf20Sopenharmony_ci);
3128c2ecf20Sopenharmony_ci
3138c2ecf20Sopenharmony_ci#endif /* !__RDEV_CFG802154_OPS_TRACE || TRACE_HEADER_MULTI_READ */
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci#undef TRACE_INCLUDE_PATH
3168c2ecf20Sopenharmony_ci#define TRACE_INCLUDE_PATH .
3178c2ecf20Sopenharmony_ci#undef TRACE_INCLUDE_FILE
3188c2ecf20Sopenharmony_ci#define TRACE_INCLUDE_FILE trace
3198c2ecf20Sopenharmony_ci#include <trace/define_trace.h>
320