From: "tip-bot2 for Kyle Huey" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Kyle Huey <khuey@kylehuey.com>, Ingo Molnar <mingo@kernel.org>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: perf/core] perf/bpf: Create bpf_overflow_handler() stub for !CONFIG_BPF_SYSCALL
Date: Fri, 12 Apr 2024 10:03:26 -0000 [thread overview]
Message-ID: <171291620648.10875.1841975768856503179.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20240412015019.7060-3-khuey@kylehuey.com>
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 924d934393f98fa6a41d6ea27352faf79c2bbaf6
Gitweb: https://git.kernel.org/tip/924d934393f98fa6a41d6ea27352faf79c2bbaf6
Author: Kyle Huey <me@kylehuey.com>
AuthorDate: Thu, 11 Apr 2024 18:50:14 -07:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Fri, 12 Apr 2024 11:49:48 +02:00
perf/bpf: Create bpf_overflow_handler() stub for !CONFIG_BPF_SYSCALL
This will allow __perf_event_overflow() (which is independent of
CONFIG_BPF_SYSCALL) to call bpf_overflow_handler().
Signed-off-by: Kyle Huey <khuey@kylehuey.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240412015019.7060-3-khuey@kylehuey.com
---
kernel/events/core.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index ca0a906..d3f3f55 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -9643,6 +9643,12 @@ static void perf_event_free_bpf_handler(struct perf_event *event)
bpf_prog_put(prog);
}
#else
+static void bpf_overflow_handler(struct perf_event *event,
+ struct perf_sample_data *data,
+ struct pt_regs *regs)
+{
+}
+
static int perf_event_set_bpf_handler(struct perf_event *event,
struct bpf_prog *prog,
u64 bpf_cookie)
next prev parent reply other threads:[~2024-04-12 10:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-12 1:50 [PATCH v6 0/7] Combine perf and bpf for fast eval of hw breakpoint conditions Kyle Huey
2024-04-12 1:50 ` [PATCH v6 1/7] perf/bpf: Reorder bpf_overflow_handler() ahead of __perf_event_overflow() Kyle Huey
2024-04-12 10:03 ` [tip: perf/core] " tip-bot2 for Kyle Huey
2024-04-12 1:50 ` [PATCH v6 2/7] perf/bpf: Create bpf_overflow_handler() stub for !CONFIG_BPF_SYSCALL Kyle Huey
2024-04-12 10:03 ` tip-bot2 for Kyle Huey [this message]
2024-04-12 1:50 ` [PATCH v6 3/7] perf/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from struct perf_event members Kyle Huey
2024-04-12 10:03 ` [tip: perf/core] " tip-bot2 for Kyle Huey
2024-04-12 1:50 ` [PATCH v6 4/7] perf/bpf: Call bpf handler directly, not through overflow machinery Kyle Huey
2024-04-12 10:03 ` [tip: perf/core] perf/bpf: Call BPF " tip-bot2 for Kyle Huey
2024-04-12 1:50 ` [PATCH v6 5/7] perf/bpf: Remove unneeded uses_default_overflow_handler() Kyle Huey
2024-04-12 10:03 ` [tip: perf/core] " tip-bot2 for Kyle Huey
2024-04-12 1:50 ` [PATCH v6 6/7] perf/bpf: Allow a bpf program to suppress all sample side effects Kyle Huey
2024-04-12 10:03 ` [tip: perf/core] perf/bpf: Allow a BPF " tip-bot2 for Kyle Huey
2024-04-12 1:50 ` [PATCH v6 7/7] selftest/bpf: Test a perf bpf program that suppresses " Kyle Huey
2024-04-12 10:03 ` [tip: perf/core] selftest/bpf: Test a perf BPF " tip-bot2 for Kyle Huey
2024-04-12 9:55 ` [PATCH 8/7] perf/bpf: Change the !CONFIG_BPF_SYSCALL stubs to static inlines Ingo Molnar
2024-04-12 10:03 ` [tip: perf/core] " tip-bot2 for Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=171291620648.10875.1841975768856503179.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=khuey@kylehuey.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®