selftests/bpf: convert lirc_mode2 to prog_tests and extend coverage - #8841
selftests/bpf: convert lirc_mode2 to prog_tests and extend coverage#8841kernel-patches-daemon-bpf-rc[bot] wants to merge 1 commit into
Conversation
|
Upstream branch: d19862d |
681fb2f to
209cb87
Compare
|
Upstream branch: 4191e49 |
48ec62e to
2a52438
Compare
209cb87 to
1187f2e
Compare
|
Upstream branch: 4954de7 |
2a52438 to
486b0c9
Compare
1187f2e to
129fef6
Compare
|
Upstream branch: e40f61a |
486b0c9 to
ee1c0e4
Compare
129fef6 to
0841678
Compare
|
Upstream branch: 669e4fa |
ee1c0e4 to
aa23a16
Compare
0841678 to
fe422a2
Compare
|
Upstream branch: a284ed4 |
aa23a16 to
5749436
Compare
fe422a2 to
8483dd1
Compare
|
Upstream branch: 5e289c5 |
5749436 to
f7b1876
Compare
8483dd1 to
9069116
Compare
|
Upstream branch: 5e289c5 |
f7b1876 to
1ba9d22
Compare
9069116 to
9872b10
Compare
|
Upstream branch: d83fba2 |
1ba9d22 to
b4ca3e1
Compare
9872b10 to
738fefc
Compare
|
Upstream branch: ce36e38 |
b4ca3e1 to
480e91e
Compare
738fefc to
29b4b7e
Compare
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
|
Upstream branch: 05ea1b6 |
480e91e to
70a40f1
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