perf counters context: remove compatibility code
[lttng-modules.git] / lttng-events.h
index dc1bd0e6b094b322b79ab43010018339f114051f..52402198b48c4b932de1008a35e15aeaed43d1e5 100644 (file)
@@ -721,9 +721,7 @@ int lttng_add_migratable_to_ctx(struct lttng_ctx **ctx)
 
 int lttng_add_callstack_to_ctx(struct lttng_ctx **ctx, int type);
 
-#if defined(CONFIG_CGROUPS) && \
-       ((LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) || \
-        LTTNG_UBUNTU_KERNEL_RANGE(4,4,0,0, 4,5,0,0))
+#if defined(CONFIG_CGROUPS)
 int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx);
 #else
 static inline
@@ -733,8 +731,7 @@ int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx)
 }
 #endif
 
-#if defined(CONFIG_IPC_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_IPC_NS)
 int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx);
 #else
 static inline
@@ -744,8 +741,7 @@ int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx)
 }
 #endif
 
-#if !defined(LTTNG_MNT_NS_MISSING_HEADER) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if !defined(LTTNG_MNT_NS_MISSING_HEADER)
 int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx);
 #else
 static inline
@@ -755,8 +751,7 @@ int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx)
 }
 #endif
 
-#if defined(CONFIG_NET_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_NET_NS)
 int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx);
 #else
 static inline
@@ -766,8 +761,7 @@ int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx)
 }
 #endif
 
-#if defined(CONFIG_PID_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_PID_NS)
 int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx);
 #else
 static inline
@@ -777,8 +771,7 @@ int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx)
 }
 #endif
 
-#if defined(CONFIG_USER_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_USER_NS)
 int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx);
 #else
 static inline
@@ -788,8 +781,7 @@ int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx)
 }
 #endif
 
-#if defined(CONFIG_UTS_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_UTS_NS)
 int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx);
 #else
 static inline
This page took 0.023148 seconds and 4 git commands to generate.