#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)
#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>
#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)
#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)
#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)
#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)
}
#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
}
#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
}
#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
}
#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
}
#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
}
#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