Fix the ability to request verbose (log_level=1) or very verbose (log_level=2) logs with test_progs's -vv or -vvv parameters. This ability regressed during recent bpf_prog_load() API refactoring. Also add bpf_program__set_extra_flags() API to allow setting extra testing flags (BPF_F_TEST_RND_HI32), which was also dropped during recent changes. Andrii Nakryiko (2): libbpf: add ability to get/set per-program load flags selftests/bpf: fix bpf_prog_test_load() logic to pass extra log level tools/lib/bpf/libbpf.c | 14 ++++++++++++++ tools/lib/bpf/libbpf.h | 3 +++ tools/lib/bpf/libbpf.map | 2 ++ tools/testing/selftests/bpf/testing_helpers.c | 7 ++++++- 4 files changed, 25 insertions(+), 1 deletion(-) -- 2.30.2