diff options
| author | Kui-Feng Lee <thinker.li@gmail.com> | 2024-05-29 23:59:41 -0700 |
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2024-05-30 15:34:13 -0700 |
| commit | 1adddc97aa44c8783f9f0276ea70854d56f9f6df (patch) | |
| tree | 9bf857f946cbe8a3c1cdb08f759f981bb11d8f09 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 6fb2544ea1493f52e50b753604791c01bd2cf897 (diff) | |
bpf: support epoll from bpf struct_ops links.
Add epoll support to bpf struct_ops links to trigger EPOLLHUP event upon
detachment.
This patch implements the "poll" of the "struct file_operations" for BPF
links and introduces a new "poll" operator in the "struct bpf_link_ops". By
implementing "poll" of "struct bpf_link_ops" for the links of struct_ops,
the file descriptor of a struct_ops link can be added to an epoll file
descriptor to receive EPOLLHUP events.
Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/20240530065946.979330-4-thinker.li@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
