instrumentation: napi: remove compatibility code
[lttng-modules.git] / instrumentation / events / lttng-module / napi.h
... / ...
CommitLineData
1/* SPDX-License-Identifier: GPL-2.0-only */
2#undef TRACE_SYSTEM
3#define TRACE_SYSTEM napi
4
5#if !defined(LTTNG_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
6#define LTTNG_TRACE_NAPI_H
7
8#include <probes/lttng-tracepoint-event.h>
9#include <linux/netdevice.h>
10#include <linux/ftrace.h>
11
12#define NO_DEV "(no_device)"
13
14LTTNG_TRACEPOINT_EVENT(napi_poll,
15
16 TP_PROTO(struct napi_struct *napi, int work, int budget),
17
18 TP_ARGS(napi, work, budget),
19
20 TP_FIELDS(
21 ctf_integer_hex(struct napi_struct *, napi, napi)
22 ctf_string(dev_name, napi->dev ? napi->dev->name : NO_DEV)
23 ctf_integer(int, work, work)
24 ctf_integer(int, budget, budget)
25 )
26)
27
28#undef NO_DEV
29
30#endif /* LTTNG_TRACE_NAPI_H */
31
32/* This part must be outside protection */
33#include <probes/define_trace.h>
This page took 0.022063 seconds and 4 git commands to generate.