bpf: allow to specify log level and reduce it for test_verifier
For the test_verifier case, it's quite hard to parse log level 2 to figure out what's causing an issue when used to log level 1. We do want to use bpf_verify_program() in order to simulate some of the tests with strict alignment. So just add an argument to pass the level and put it to 1 for test_verifier. Signed-off-by:Daniel Borkmann <daniel@iogearbox.net> Acked-by:
Alexei Starovoitov <ast@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- tools/lib/bpf/bpf.c 2 additions, 2 deletionstools/lib/bpf/bpf.c
- tools/lib/bpf/bpf.h 1 addition, 1 deletiontools/lib/bpf/bpf.h
- tools/testing/selftests/bpf/test_align.c 1 addition, 1 deletiontools/testing/selftests/bpf/test_align.c
- tools/testing/selftests/bpf/test_verifier.c 1 addition, 1 deletiontools/testing/selftests/bpf/test_verifier.c
Loading
Please register or sign in to comment