diff options
| author | David Woodhouse <[email protected]> | 2020-10-27 13:55:21 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-11-15 09:49:10 -0500 |
| commit | 28f1326710555bbe666f64452d08f2d7dd657cae (patch) | |
| tree | 0500d5c7ff66eda5051b0221b04c73b28c8d8942 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | e8dbf19508a112d125190df77ee0464b7ba56192 (diff) | |
eventfd: Export eventfd_ctx_do_read()
Where events are consumed in the kernel, for example by KVM's
irqfd_wakeup() and VFIO's virqfd_wakeup(), they currently lack a
mechanism to drain the eventfd's counter.
Since the wait queue is already locked while the wakeup functions are
invoked, all they really need to do is call eventfd_ctx_do_read().
Add a check for the lock, and export it for them.
Signed-off-by: David Woodhouse <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions