From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 20:17:12 +0000 (-0400) Subject: instrumentation: module: remove compatibility code X-Git-Tag: for-upstreaming-review-1~57 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=inline;h=3cb4322863d147ebbddfda8e36dc3cd5968a5a49;p=lttng-modules.git instrumentation: module: remove compatibility code --- diff --git a/instrumentation/events/lttng-module/module.h b/instrumentation/events/lttng-module/module.h index 1dae9ad1..5299e17f 100644 --- a/instrumentation/events/lttng-module/module.h +++ b/instrumentation/events/lttng-module/module.h @@ -16,7 +16,6 @@ #define LTTNG_TRACE_MODULE_H #include -#include #ifdef CONFIG_MODULES @@ -60,11 +59,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(module_refcnt, TP_FIELDS( ctf_integer_hex(unsigned long, ip, ip) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)) ctf_integer(int, refcnt, atomic_read(&mod->refcnt)) -#else - ctf_integer(int, refcnt, __this_cpu_read(mod->refptr->incs) + __this_cpu_read(mod->refptr->decs)) -#endif ctf_string(name, mod->name) ) )