From 41c3c24ed4ce0b84676fe15235186481bfd34990 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 16 Sep 2011 16:07:27 -0400 Subject: [PATCH 1/1] Disable perf build for < 2.6.33 kernels Signed-off-by: Mathieu Desnoyers --- ltt-events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ltt-events.h b/ltt-events.h index 98cfae03..5dcfd94f 100644 --- a/ltt-events.h +++ b/ltt-events.h @@ -311,7 +311,7 @@ int lttng_add_tid_to_ctx(struct lttng_ctx **ctx); int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx); int lttng_add_ppid_to_ctx(struct lttng_ctx **ctx); int lttng_add_vppid_to_ctx(struct lttng_ctx **ctx); -#ifdef CONFIG_PERF_EVENTS +#if defined(CONFIG_PERF_EVENTS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) int lttng_add_perf_counter_to_ctx(uint32_t type, uint64_t config, const char *name, -- 2.34.1