[PATCH 070/437] perf: convert events to read/write iterators

From: Jens Axboe
Date: Thu Apr 11 2024 - 11:54:44 EST


Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
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