X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-perf-counters.c;h=a33a3fcafa26e274b2186912f87b33599fec800a;hb=b4a626cb684d2797df0329dd80c2df95e490c621;hp=ac79d3eeb72872f998989a9296f3c246ba831d9d;hpb=0e41488f1d347fe2f4988acc4b7c63ee02fe4026;p=lttng-modules.git diff --git a/src/lttng-context-perf-counters.c b/src/lttng-context-perf-counters.c index ac79d3ee..a33a3fca 100644 --- a/src/lttng-context-perf-counters.c +++ b/src/lttng-context-perf-counters.c @@ -60,7 +60,7 @@ void perf_counter_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, chan->ops->event_write(ctx, &value, sizeof(value), lttng_alignof(value)); } -#if defined(CONFIG_PERF_EVENTS) && (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,1,0)) +#ifdef CONFIG_PERF_EVENTS static void overflow_callback(struct perf_event *event, struct perf_sample_data *data,