| 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". |
| 5 |
* |
| 6 |
* This file is named e1000e_trace.h. |
| 7 |
* |
| 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. |
| 11 |
*/ |
| 12 |
|
| 13 |
#undef TRACE_SYSTEM |
| 14 |
#define TRACE_SYSTEM e1000e_trace |
| 15 |
|
| 16 |
#if !defined(_TRACE_E1000E_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) |
| 17 |
#define _TRACE_E1000E_TRACE_H |
| 18 |
|
| 19 |
#include <linux/tracepoint.h> |
| 20 |
|
| 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) |
| 28 |
); |
| 29 |
|
| 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. |
| 35 |
*/ |
| 36 |
|
| 37 |
#undef TRACE_INCLUDE_PATH |
| 38 |
#define TRACE_INCLUDE_PATH . |
| 39 |
#undef TRACE_INCLUDE_FILE |
| 40 |
#define TRACE_INCLUDE_FILE e1000e_trace |
| 41 |
|
| 42 |
#include <trace/define_trace.h> |