From: Michael Jeanson Date: Tue, 7 Jul 2020 18:07:01 +0000 (-0400) Subject: fix: version range for overflow_callback X-Git-Tag: v2.11.5~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=036fdb51dd368df6bc5fb34356bc78c7be263410;p=lttng-modules.git fix: version range for overflow_callback Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: I1b8f1d59552a1723d3f4ed74780a2b57d13d0e52 --- 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,