brintos

brintos / linux-shallow public Read only

0
0
Text · 1.2 KiB · 19d3cf4 Raw
43 lines · c
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 trace9 * subsystem name, we'll have to define TRACE_INCLUDE_FILE at the end10 * of this file.11 */12 13#undef TRACE_SYSTEM14#define TRACE_SYSTEM e1000e_trace15 16#if !defined(_TRACE_E1000E_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)17#define _TRACE_E1000E_TRACE_H18 19#include <linux/tracepoint.h>20 21TRACE_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#endif31/* This must be outside ifdef _E1000E_TRACE_H */32/* This trace include file is not located in the .../include/trace33 * with the kernel tracepoint definitions, because we're a loadable34 * module.35 */36 37#undef TRACE_INCLUDE_PATH38#define TRACE_INCLUDE_PATH .39#undef TRACE_INCLUDE_FILE40#define TRACE_INCLUDE_FILE e1000e_trace41 42#include <trace/define_trace.h>43