diff options
author | Tao Chen <chen.dylane@linux.dev> | 2025-03-14 06:00:36 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-17 10:31:04 +0300 |
commit | c96fff391c095c11dc87dab35be72dee7d217cde (patch) | |
tree | 7845a7c7136143328e959824cb69ecc0e6a2092b /tools/perf/scripts/python/gecko.py | |
parent | f4b07fd62d4d11d57a15cb4ae01b3833282eb8f6 (diff) | |
download | linux-c96fff391c095c11dc87dab35be72dee7d217cde.tar.xz |
perf/ring_buffer: Allow the EPOLLRDNORM flag for poll
The poll man page says POLLRDNORM is equivalent to POLLIN. For poll(),
it seems that if user sets pollfd with POLLRDNORM in userspace, perf_poll
will not return until timeout even if perf_output_wakeup called,
whereas POLLIN returns.
Fixes: 76369139ceb9 ("perf: Split up buffer handling from core code")
Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250314030036.2543180-1-chen.dylane@linux.dev
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions