Commit | Line | Data |
---|---|---|
b7cdc182 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
b283666f PW |
2 | #undef TRACE_SYSTEM |
3 | #define TRACE_SYSTEM napi | |
4 | ||
3bc29f0a MD |
5 | #if !defined(LTTNG_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ) |
6 | #define LTTNG_TRACE_NAPI_H | |
b283666f | 7 | |
6ec43db8 | 8 | #include <probes/lttng-tracepoint-event.h> |
b283666f | 9 | #include <linux/netdevice.h> |
b283666f PW |
10 | #include <linux/ftrace.h> |
11 | ||
12 | #define NO_DEV "(no_device)" | |
13 | ||
9e869177 MD |
14 | LTTNG_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 | ||
b283666f PW |
28 | #undef NO_DEV |
29 | ||
3bc29f0a | 30 | #endif /* LTTNG_TRACE_NAPI_H */ |
b283666f PW |
31 | |
32 | /* This part must be outside protection */ | |
6ec43db8 | 33 | #include <probes/define_trace.h> |