instrumentation: napi: remove compatibility code
[lttng-modules.git] / instrumentation / events / lttng-module / napi.h
index 7b5ecfc468df2832c49f4456514529df8ad45490..4bb76f7f89060d38ad642ea4cdadb9765e1070d2 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM napi
 
@@ -10,8 +11,6 @@
 
 #define NO_DEV "(no_device)"
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
-
 LTTNG_TRACEPOINT_EVENT(napi_poll,
 
        TP_PROTO(struct napi_struct *napi, int work, int budget),
@@ -26,22 +25,6 @@ LTTNG_TRACEPOINT_EVENT(napi_poll,
        )
 )
 
-#else
-
-LTTNG_TRACEPOINT_EVENT(napi_poll,
-
-       TP_PROTO(struct napi_struct *napi),
-
-       TP_ARGS(napi),
-
-       TP_FIELDS(
-               ctf_integer_hex(struct napi_struct *, napi, napi)
-               ctf_string(dev_name, napi->dev ? napi->dev->name : NO_DEV)
-       )
-)
-
-#endif
-
 #undef NO_DEV
 
 #endif /* LTTNG_TRACE_NAPI_H */
This page took 0.024788 seconds and 4 git commands to generate.