Disable perf build for < 2.6.33 kernels
[lttng-modules.git] / ltt-events.h
index 98cfae03017f5689ba79753864d8342487a47885..5dcfd94f664bc9281338873999b859d00ab084a1 100644 (file)
@@ -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,
This page took 0.022944 seconds and 4 git commands to generate.