1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM napi
5 #if !defined(LTTNG_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_NAPI_H
8 #include <probes/lttng-tracepoint-event.h>
9 #include <linux/netdevice.h>
10 #include <linux/ftrace.h>
12 #define NO_DEV "(no_device)"
14 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
16 LTTNG_TRACEPOINT_EVENT(napi_poll
,
18 TP_PROTO(struct napi_struct
*napi
, int work
, int budget
),
20 TP_ARGS(napi
, work
, budget
),
23 ctf_integer_hex(struct napi_struct
*, napi
, napi
)
24 ctf_string(dev_name
, napi
->dev
? napi
->dev
->name
: NO_DEV
)
25 ctf_integer(int, work
, work
)
26 ctf_integer(int, budget
, budget
)
32 LTTNG_TRACEPOINT_EVENT(napi_poll
,
34 TP_PROTO(struct napi_struct
*napi
),
39 ctf_integer_hex(struct napi_struct
*, napi
, napi
)
40 ctf_string(dev_name
, napi
->dev
? napi
->dev
->name
: NO_DEV
)
48 #endif /* LTTNG_TRACE_NAPI_H */
50 /* This part must be outside protection */
51 #include <probes/define_trace.h>
This page took 0.029836 seconds and 4 git commands to generate.