selftests/bpf: convert lirc_mode2 to prog_tests and extend coverage - #13389
selftests/bpf: convert lirc_mode2 to prog_tests and extend coverage#13389kernel-patches-daemon-bpf[bot] wants to merge 1 commit into
Conversation
|
Upstream branch: d19862d |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: |
|
Forwarding comment 5362844678 via email |
914a3df to
c8ffd25
Compare
|
Upstream branch: 4191e49 |
13acc02 to
924c19c
Compare
c8ffd25 to
6a714eb
Compare
|
Upstream branch: 4954de7 |
924c19c to
9d1657e
Compare
6a714eb to
27a2ebd
Compare
|
Upstream branch: e40f61a |
9d1657e to
1a11132
Compare
27a2ebd to
7b6ba88
Compare
|
Upstream branch: 669e4fa |
1a11132 to
927c2f4
Compare
7b6ba88 to
d696d45
Compare
|
Upstream branch: a284ed4 |
927c2f4 to
3d5eb9b
Compare
d696d45 to
b8b6131
Compare
|
Upstream branch: 5e289c5 |
3d5eb9b to
664751a
Compare
b8b6131 to
71e031f
Compare
|
Upstream branch: 5e289c5 |
664751a to
f6e991a
Compare
71e031f to
909ca3a
Compare
|
Upstream branch: d83fba2 |
f6e991a to
1e64bcd
Compare
909ca3a to
b010507
Compare
|
Upstream branch: ce36e38 |
1e64bcd to
1459fc8
Compare
b010507 to
975b11a
Compare
|
Upstream branch: 05ea1b6 |
1459fc8 to
ecb5934
Compare
975b11a to
f8c8078
Compare
|
Upstream branch: 1555de3 |
ecb5934 to
b9bb748
Compare
f8c8078 to
be2aea4
Compare
|
Upstream branch: 48b69cc |
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
b9bb748 to
f7a6da1
Compare
Pull request for series with
subject: selftests/bpf: convert lirc_mode2 to prog_tests and extend coverage
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1149350