diff options
| author | Sean Young <sean@mess.org> | 2026-08-20 22:43:29 +0100 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-08-30 12:59:47 +0200 |
| commit | d761934c9483ecde93fe99d8705282f716dfee50 (patch) | |
| tree | f7e00c45d71e1cd3896342c843075c7e8d08814f /tools/lib/python | |
| parent | fbc547151dbcd9b5eee54d6b29e924c760039638 (diff) | |
| download | linux-next-d761934c9483ecde93fe99d8705282f716dfee50.tar.gz linux-next-d761934c9483ecde93fe99d8705282f716dfee50.zip | |
selftests/bpf: Convert lirc_mode2 to prog_tests and extend coverage
While porting, extend coverage of the BPF_LIRC_MODE2 attach/detach/
query API:
- bpf_prog_attach() with invalid flags is rejected with -EINVAL
and does not attach the program
- bpf_prog_query() with invalid flags is rejected with -EINVAL
without disturbing existing attachments
- bpf_prog_query() reports the correct program id, not just count,
at each step, via bpf_prog_get_info_by_fd()
- a lirc chardev can hold more than one attached program: load a
second, independent instance, attach it alongside the first,
confirm both are reported by bpf_prog_query(), then detach it
without disturbing the first program's attachment
- detaching an already-detached program consistently fails with
-ENOENT, for both the first and second program
Signed-off-by: Sean Young <sean@mess.org>
Assisted-by: Claude:claude-sonnet-5
Link: https://lore.kernel.org/bpf/20260820214332.89030-1-sean@mess.org
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
