namespace contexts: remove compatibility code
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 20:44:43 +0000 (16:44 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 20:44:43 +0000 (16:44 -0400)
lttng-context-ipc-ns.c
lttng-context-mnt-ns.c
lttng-context-net-ns.c
lttng-context-pid-ns.c
lttng-context-user-ns.c
lttng-context-uts-ns.c
lttng-events.h

index 4e9a60ee77769b0e30476f0f966d950d3a09e12e..f4080788c6620d9f6554382f948a7faefa6405da 100644 (file)
@@ -17,8 +17,7 @@
 #include <wrapper/ringbuffer/frontend_types.h>
 #include <lttng-tracer.h>
 
-#if defined(CONFIG_IPC_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_IPC_NS)
 
 static
 size_t ipc_ns_get_size(size_t offset)
index 154517bd0d5f8ae7bd609cc6f06a29cda39bf86b..c6b7dbe017de976e7f09d3fe96b4a6d2ced910c4 100644 (file)
@@ -17,8 +17,7 @@
 #include <wrapper/ringbuffer/frontend_types.h>
 #include <lttng-tracer.h>
 
-#if !defined(LTTNG_MNT_NS_MISSING_HEADER) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if !defined(LTTNG_MNT_NS_MISSING_HEADER)
 
 #include <../fs/mount.h>
 
index 459aa379da01decf067469a1622edc71240edaf2..b96afee8bc869074bb56c8af8d39d9f5079aec63 100644 (file)
@@ -18,8 +18,7 @@
 #include <wrapper/ringbuffer/frontend_types.h>
 #include <lttng-tracer.h>
 
-#if defined(CONFIG_NET_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_NET_NS)
 
 static
 size_t net_ns_get_size(size_t offset)
index 1e95d6b33bbb19e83a734df18a7f45b299ad6fa6..894789b88f616b912433c6e121bab1cea4d52df4 100644 (file)
@@ -17,8 +17,7 @@
 #include <wrapper/ringbuffer/frontend_types.h>
 #include <lttng-tracer.h>
 
-#if defined(CONFIG_PID_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_PID_NS)
 
 static
 size_t pid_ns_get_size(size_t offset)
index 1530638922ccabc5aeffa83885be3a1319fa5d25..04a2c3ee26ad82e7cccb1abdcafdc2393fff516e 100644 (file)
@@ -17,8 +17,7 @@
 #include <wrapper/ringbuffer/frontend_types.h>
 #include <lttng-tracer.h>
 
-#if defined(CONFIG_USER_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_USER_NS)
 
 static
 size_t user_ns_get_size(size_t offset)
index cb8c60f172d899a14b3049f607a4ad955a28e604..a6dbddf04275f433362fe74b6393978b867b0577 100644 (file)
@@ -17,8 +17,7 @@
 #include <wrapper/ringbuffer/frontend_types.h>
 #include <lttng-tracer.h>
 
-#if defined(CONFIG_UTS_NS) && \
-       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_UTS_NS)
 
 static
 size_t uts_ns_get_size(size_t offset)
index 05309174ab67635adaf94d47dab93b50aa8b17fd..52402198b48c4b932de1008a35e15aeaed43d1e5 100644 (file)
@@ -731,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
@@ -742,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
@@ -753,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
@@ -764,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
@@ -775,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
@@ -786,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.028658 seconds and 4 git commands to generate.