X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt-events.h;fp=ltt-events.h;h=5dcfd94f664bc9281338873999b859d00ab084a1;hb=41c3c24ed4ce0b84676fe15235186481bfd34990;hp=98cfae03017f5689ba79753864d8342487a47885;hpb=054f2ed356b2616742a8e507f679d499c7e2bafa;p=lttng-modules.git 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,