Commit | Line | Data |
---|---|---|
b283666f PW |
1 | #undef TRACE_SYSTEM |
2 | #define TRACE_SYSTEM napi | |
3 | ||
3bc29f0a MD |
4 | #if !defined(LTTNG_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ) |
5 | #define LTTNG_TRACE_NAPI_H | |
b283666f | 6 | |
3bc29f0a | 7 | #include "../../../probes/lttng-tracepoint-event.h" |
b283666f | 8 | #include <linux/netdevice.h> |
b283666f PW |
9 | #include <linux/ftrace.h> |
10 | ||
11 | #define NO_DEV "(no_device)" | |
12 | ||
3bc29f0a | 13 | LTTNG_TRACEPOINT_EVENT(napi_poll, |
b283666f PW |
14 | |
15 | TP_PROTO(struct napi_struct *napi), | |
16 | ||
17 | TP_ARGS(napi), | |
18 | ||
f127e61e | 19 | TP_FIELDS( |
95a5790e | 20 | ctf_integer_hex(struct napi_struct *, napi, napi) |
f127e61e MD |
21 | ctf_string(dev_name, napi->dev ? napi->dev->name : NO_DEV) |
22 | ) | |
b283666f PW |
23 | ) |
24 | ||
25 | #undef NO_DEV | |
26 | ||
3bc29f0a | 27 | #endif /* LTTNG_TRACE_NAPI_H */ |
b283666f PW |
28 | |
29 | /* This part must be outside protection */ | |
30 | #include "../../../probes/define_trace.h" |