[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <171312763167.10875.45937385096988617.tip-bot2@tip-bot2>
Date: Sun, 14 Apr 2024 20:47:11 -0000
From: "tip-bot2 for Kyle Huey" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Kyle Huey <khuey@...ehuey.com>, Ingo Molnar <mingo@...nel.org>,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: perf/core] perf: Move perf_event_fasync() to perf_event.h
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 4a013980666857c1eb2df6a2137817caa21d38a6
Gitweb: https://git.kernel.org/tip/4a013980666857c1eb2df6a2137817caa21d38a6
Author: Kyle Huey <me@...ehuey.com>
AuthorDate: Sat, 13 Apr 2024 07:16:16 -07:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Sun, 14 Apr 2024 22:26:32 +02:00
perf: Move perf_event_fasync() to perf_event.h
This will allow it to be called from perf_output_wakeup().
Signed-off-by: Kyle Huey <khuey@...ehuey.com>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Link: https://lore.kernel.org/r/20240413141618.4160-2-khuey@kylehuey.com
---
include/linux/perf_event.h | 8 ++++++++
kernel/events/core.c | 8 --------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index d5ff0c1..a5304ae 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -1686,6 +1686,14 @@ perf_event_addr_filters(struct perf_event *event)
return ifh;
}
+static inline struct fasync_struct **perf_event_fasync(struct perf_event *event)
+{
+ /* Only the parent has fasync state */
+ if (event->parent)
+ event = event->parent;
+ return &event->fasync;
+}
+
extern void perf_event_addr_filters_sync(struct perf_event *event);
extern void perf_report_aux_output_id(struct perf_event *event, u64 hw_id);
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 6708c11..da9d9a1 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -6703,14 +6703,6 @@ static const struct file_operations perf_fops = {
* to user-space before waking everybody up.
*/
-static inline struct fasync_struct **perf_event_fasync(struct perf_event *event)
-{
- /* only the parent has fasync state */
- if (event->parent)
- event = event->parent;
- return &event->fasync;
-}
-
void perf_event_wakeup(struct perf_event *event)
{
ring_buffer_wakeup(event);
Powered by blists - more mailing lists