X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttng-context-perf-counters.c;h=a33a3fcafa26e274b2186912f87b33599fec800a;hb=d608ab8e7e14e172e82d4c08a0be43e639018705;hp=ac79d3eeb72872f998989a9296f3c246ba831d9d;hpb=455d6bcc7c93a75c555c340fd8ab6c00edf68551;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,