1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /******************************************************************************
4 * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved.
5 *****************************************************************************/
7 #if !defined(__IWLWIFI_DEVICE_TRACE_UCODE) || defined(TRACE_HEADER_MULTI_READ)
8 #define __IWLWIFI_DEVICE_TRACE_UCODE
10 #include <linux/tracepoint.h>
13 #define TRACE_SYSTEM iwlwifi_ucode
15 TRACE_EVENT(iwlwifi_dev_ucode_cont_event,
16 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
17 TP_ARGS(dev, time, data, ev),
31 TP_printk("[%s] EVT_LOGT:%010u:0x%08x:%04u",
32 __get_str(dev), __entry->time, __entry->data, __entry->ev)
35 TRACE_EVENT(iwlwifi_dev_ucode_wrap_event,
36 TP_PROTO(const struct device *dev, u32 wraps, u32 n_entry, u32 p_entry),
37 TP_ARGS(dev, wraps, n_entry, p_entry),
47 __entry->wraps = wraps;
48 __entry->n_entry = n_entry;
49 __entry->p_entry = p_entry;
51 TP_printk("[%s] wraps=#%02d n=0x%X p=0x%X",
52 __get_str(dev), __entry->wraps, __entry->n_entry,
55 #endif /* __IWLWIFI_DEVICE_TRACE_UCODE */
57 #undef TRACE_INCLUDE_PATH
58 #define TRACE_INCLUDE_PATH .
59 #undef TRACE_INCLUDE_FILE
60 #define TRACE_INCLUDE_FILE iwl-devtrace-ucode
61 #include <trace/define_trace.h>