From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 21:05:31 +0000 (-0400) Subject: perf counters context: remove compatibility code X-Git-Tag: for-upstreaming-review-1~17 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=e2c05b25e4710e08ee72c2c18fa46790c9e7c22f perf counters context: remove compatibility code --- diff --git a/lttng-context-perf-counters.c b/lttng-context-perf-counters.c index 096189e1..dff53295 100644 --- a/lttng-context-perf-counters.c +++ b/lttng-context-perf-counters.c @@ -58,21 +58,12 @@ 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)) static void overflow_callback(struct perf_event *event, struct perf_sample_data *data, struct pt_regs *regs) { } -#else -static -void overflow_callback(struct perf_event *event, int nmi, - struct perf_sample_data *data, - struct pt_regs *regs) -{ -} -#endif static void lttng_destroy_perf_counter_field(struct lttng_ctx_field *field)