From: Michael Jeanson Date: Tue, 7 Jul 2020 18:07:01 +0000 (-0400) Subject: fix: version range for overflow_callback X-Git-Tag: v2.13.0-rc1~192 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=d6147441ba91c6d1cb2e64fa11f732b3e9f6d3e5 fix: version range for overflow_callback Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: I1b8f1d59552a1723d3f4ed74780a2b57d13d0e52 --- diff --git a/src/lttng-context-perf-counters.c b/src/lttng-context-perf-counters.c index 5784f75e..bc860e67 100644 --- a/src/lttng-context-perf-counters.c +++ b/src/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,