From d6147441ba91c6d1cb2e64fa11f732b3e9f6d3e5 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 7 Jul 2020 14:07:01 -0400 Subject: [PATCH] fix: version range for overflow_callback Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: I1b8f1d59552a1723d3f4ed74780a2b57d13d0e52 --- src/lttng-context-perf-counters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.34.1