drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / drivers / net / ethernet / intel / e1000e / e1000e_trace.h
blob19d3cf4d924e5709887cc1c39ca1d3a7ddecb888
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2022, Intel Corporation. */
3 /* Modeled on trace-events-sample.h */
4 /* The trace subsystem name for e1000e will be "e1000e_trace".
6 * This file is named e1000e_trace.h.
8 * Since this include file's name is different from the trace
9 * subsystem name, we'll have to define TRACE_INCLUDE_FILE at the end
10 * of this file.
13 #undef TRACE_SYSTEM
14 #define TRACE_SYSTEM e1000e_trace
16 #if !defined(_TRACE_E1000E_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
17 #define _TRACE_E1000E_TRACE_H
19 #include <linux/tracepoint.h>
21 TRACE_EVENT(e1000e_trace_mac_register,
22 TP_PROTO(uint32_t reg),
23 TP_ARGS(reg),
24 TP_STRUCT__entry(__field(uint32_t, reg)),
25 TP_fast_assign(__entry->reg = reg;),
26 TP_printk("event: TraceHub e1000e mac register: 0x%08x",
27 __entry->reg)
30 #endif
31 /* This must be outside ifdef _E1000E_TRACE_H */
32 /* This trace include file is not located in the .../include/trace
33 * with the kernel tracepoint definitions, because we're a loadable
34 * module.
37 #undef TRACE_INCLUDE_PATH
38 #define TRACE_INCLUDE_PATH .
39 #undef TRACE_INCLUDE_FILE
40 #define TRACE_INCLUDE_FILE e1000e_trace
42 #include <trace/define_trace.h>