Thread (9 messages) flat view 9 messages, 4 authors, 2021-11-10

Re: [PATCH bpf 2/2] selftests/bpf: Add tests for allowed helpers

From: Alexei Starovoitov <hidden>
Date: 2021-11-10 16:52:58
Also in: bpf

On Tue, Nov 9, 2021 at 11:32 PM Dmitrii Banshchikov [off-list ref] wrote:
quoted
Won't hurt, probably. But I wonder if it will be much easier to add
all those programs as C code and test from test_progs? Instead of all
this assembly.

You can put all of them into a single file and have loop that disabled
all but one program at a time (using bpf_program__set_autoload()) and
loading it and validating that the load failed. WDYT?
Will give it a try, thanks.
Please keep asm tests as well. They're useful too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help