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