From: Michael Jeanson Date: Fri, 18 Nov 2022 22:18:26 +0000 (-0500) Subject: Drop support for kernels < 4.4 from perf counters context X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d608ab8e7e14e172e82d4c08a0be43e639018705;p=lttng-modules.git Drop support for kernels < 4.4 from perf counters context Change-Id: I6b839954b0d9bacc81e4d943bfe1d32471ba9962 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- 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,