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
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
),
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",
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
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>