From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 20:17:44 +0000 (-0400) Subject: instrumentation: napi: remove compatibility code X-Git-Tag: for-upstreaming-review-1~56 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=fa7ef831bfb4ec6a5dd7047b45efce768791bc5e instrumentation: napi: remove compatibility code --- diff --git a/instrumentation/events/lttng-module/napi.h b/instrumentation/events/lttng-module/napi.h index 8509f7d1..4bb76f7f 100644 --- a/instrumentation/events/lttng-module/napi.h +++ b/instrumentation/events/lttng-module/napi.h @@ -11,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), @@ -27,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 */