[lttng-dev] [RFC PATCH lttng-modules v2 11/30] Drop support for kernels < 3.0 from lttng-events.h
Michael Jeanson
mjeanson at efficios.com
Thu Nov 8 16:45:16 EST 2018
Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
lttng-events.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lttng-events.h b/lttng-events.h
index f62e0cb..1903706 100644
--- a/lttng-events.h
+++ b/lttng-events.h
@@ -716,7 +716,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_PERF_EVENTS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#if defined(CONFIG_PERF_EVENTS)
int lttng_add_perf_counter_to_ctx(uint32_t type,
uint64_t config,
const char *name,
@@ -891,8 +891,6 @@ int lttng_calibrate(struct lttng_kernel_calibrate *calibrate);
extern const struct file_operations lttng_tracepoint_list_fops;
extern const struct file_operations lttng_syscall_list_fops;
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
#define TRACEPOINT_HAS_DATA_ARG
-#endif
#endif /* _LTTNG_EVENTS_H */
--
2.17.1
More information about the lttng-dev
mailing list