[PATCH bpf-next 0/2] selftests/bpf: fix test_progs' log_level logic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux