aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndrii Nakryiko2021-11-10 21:17:58 -0800
committerAlexei Starovoitov2021-11-11 16:44:26 -0800
commit50dee7078b66d881c62f6177844d625f7ead6003 (patch)
treea68832f2e9ee4a4c890764fc9d4bb87b11b9b31a /drivers
parenta6ca71583137300f207343d5d950cb1c365ab911 (diff)
selftests/bpf: Fix bpf_prog_test_load() logic to pass extra log level
After recent refactoring bpf_prog_test_load(), used across multiple selftests, lost ability to specify extra log_level 1 or 2 (for -vv and -vvv, respectively). Fix that problem by using bpf_object__load_xattr() API that supports extra log_level flags. Also restore BPF_F_TEST_RND_HI32 prog_flags by utilizing new bpf_program__set_extra_flags() API. Fixes: f87c1930ac29 ("selftests/bpf: Merge test_stub.c into testing_helpers.c") Reported-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211111051758.92283-3-andrii@kernel.org
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions