From: Mathieu Desnoyers Date: Fri, 16 Sep 2011 20:07:27 +0000 (-0400) Subject: Disable perf build for < 2.6.33 kernels X-Git-Tag: v2.0-pre9~57 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=41c3c24ed4ce0b84676fe15235186481bfd34990;p=lttng-modules.git Disable perf build for < 2.6.33 kernels Signed-off-by: Mathieu Desnoyers --- 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,