[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240411153126.16201-71-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:13:30 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 070/437] perf: convert events to read/write iterators
Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
kernel/events/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 724e6d7e128f..2c94801bef4b 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -5688,6 +5688,7 @@ perf_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
return ret;
}
+FOPS_READ_ITER_HELPER(perf_read);
static __poll_t perf_poll(struct file *file, poll_table *wait)
{
@@ -6669,7 +6670,7 @@ static int perf_fasync(int fd, struct file *filp, int on)
static const struct file_operations perf_fops = {
.llseek = no_llseek,
.release = perf_release,
- .read = perf_read,
+ .read_iter = perf_read_iter,
.poll = perf_poll,
.unlocked_ioctl = perf_ioctl,
.compat_ioctl = perf_compat_ioctl,
--
2.43.0
Powered by blists - more mailing lists