WIP FPC-III support
[linux/fpc-iii.git] / drivers / net / wireless / intel / iwlwifi / iwl-devtrace-ucode.h
blob2228faefffbca3379f42b67bd0f7f8df4c8532d6
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /******************************************************************************
4 * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved.
6 * Contact Information:
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>
17 #undef TRACE_SYSTEM
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),
23 TP_STRUCT__entry(
24 DEV_ENTRY
26 __field(u32, time)
27 __field(u32, data)
28 __field(u32, ev)
30 TP_fast_assign(
31 DEV_ASSIGN;
32 __entry->time = time;
33 __entry->data = data;
34 __entry->ev = 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),
43 TP_STRUCT__entry(
44 DEV_ENTRY
46 __field(u32, wraps)
47 __field(u32, n_entry)
48 __field(u32, p_entry)
50 TP_fast_assign(
51 DEV_ASSIGN;
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,
58 __entry->p_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>