[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <171291620574.10875.5995937196604251484.tip-bot2@tip-bot2>
Date: Fri, 12 Apr 2024 10:03:25 -0000
From: "tip-bot2 for Kyle Huey" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Ingo Molnar <mingo@...nel.org>, Kyle Huey <khuey@...ehuey.com>,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: perf/core] perf/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from
struct perf_event members
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 14e40a9578b70cc5323e55f61292a7e021f6037c
Gitweb: https://git.kernel.org/tip/14e40a9578b70cc5323e55f61292a7e021f6037c
Author: Kyle Huey <me@...ehuey.com>
AuthorDate: Thu, 11 Apr 2024 18:50:15 -07:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Fri, 12 Apr 2024 11:49:49 +02:00
perf/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from struct perf_event members
This will allow __perf_event_overflow() (which is independent of
CONFIG_BPF_SYSCALL) to use struct perf_event's prog to decide whether to
call bpf_overflow_handler().
Suggested-by: Ingo Molnar <mingo@...nel.org>
Signed-off-by: Kyle Huey <khuey@...ehuey.com>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Link: https://lore.kernel.org/r/20240412015019.7060-4-khuey@kylehuey.com
---
include/linux/perf_event.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 3e33b36..50e01db 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -809,11 +809,9 @@ struct perf_event {
u64 (*clock)(void);
perf_overflow_handler_t overflow_handler;
void *overflow_handler_context;
-#ifdef CONFIG_BPF_SYSCALL
perf_overflow_handler_t orig_overflow_handler;
struct bpf_prog *prog;
u64 bpf_cookie;
-#endif
#ifdef CONFIG_EVENT_TRACING
struct trace_event_call *tp_event;
Powered by blists - more mailing lists