1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /******************************************************************************
4 * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved.
7 * Intel Linux Wireless <linuxwifi@intel.com>
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
10 *****************************************************************************/
12 #if !defined(__IWLWIFI_DEVICE_TRACE_UCODE) || defined(TRACE_HEADER_MULTI_READ)
13 #define __IWLWIFI_DEVICE_TRACE_UCODE
15 #include <linux/tracepoint.h>
18 #define TRACE_SYSTEM iwlwifi_ucode
20 TRACE_EVENT(iwlwifi_dev_ucode_cont_event
,
21 TP_PROTO(const struct device
*dev
, u32 time
, u32 data
, u32 ev
),
22 TP_ARGS(dev
, time
, data
, ev
),
36 TP_printk("[%s] EVT_LOGT:%010u:0x%08x:%04u",
37 __get_str(dev
), __entry
->time
, __entry
->data
, __entry
->ev
)
40 TRACE_EVENT(iwlwifi_dev_ucode_wrap_event
,
41 TP_PROTO(const struct device
*dev
, u32 wraps
, u32 n_entry
, u32 p_entry
),
42 TP_ARGS(dev
, wraps
, n_entry
, p_entry
),
52 __entry
->wraps
= wraps
;
53 __entry
->n_entry
= n_entry
;
54 __entry
->p_entry
= p_entry
;
56 TP_printk("[%s] wraps=#%02d n=0x%X p=0x%X",
57 __get_str(dev
), __entry
->wraps
, __entry
->n_entry
,
60 #endif /* __IWLWIFI_DEVICE_TRACE_UCODE */
62 #undef TRACE_INCLUDE_PATH
63 #define TRACE_INCLUDE_PATH .
64 #undef TRACE_INCLUDE_FILE
65 #define TRACE_INCLUDE_FILE iwl-devtrace-ucode
66 #include <trace/define_trace.h>