Drop support for kernels < 4.4 from perf counters context
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 18 Nov 2022 22:18:26 +0000 (17:18 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Nov 2022 20:04:13 +0000 (15:04 -0500)
Change-Id: I6b839954b0d9bacc81e4d943bfe1d32471ba9962
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lttng-context-perf-counters.c

index ac79d3eeb72872f998989a9296f3c246ba831d9d..a33a3fcafa26e274b2186912f87b33599fec800a 100644 (file)
@@ -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,
This page took 0.026366 seconds and 4 git commands to generate.