X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-context-perf-counters.c;h=9887c6d208a27917d6f467ec3234811722d8cba1;hb=3780dda998147e51885d861b1e458dee3f783ff6;hp=6b04d12342f061c0a0b9187ec536524d98095a14;hpb=ea53823c42a70a80566a340834e2b00e650406b9;p=lttng-modules.git diff --git a/lttng-context-perf-counters.c b/lttng-context-perf-counters.c index 6b04d123..9887c6d2 100644 --- a/lttng-context-perf-counters.c +++ b/lttng-context-perf-counters.c @@ -59,7 +59,7 @@ void perf_counter_record(struct lttng_ctx_field *field, chan->ops->event_write(ctx, &value, sizeof(value)); } -#if defined(CONFIG_PERF_EVENTS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,99)) +#if defined(CONFIG_PERF_EVENTS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0)) static void overflow_callback(struct perf_event *event, struct perf_sample_data *data,