[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231027085706.25718-1-shung-hsi.yu@suse.com>
Date: Fri, 27 Oct 2023 16:57:04 +0800
From: Shung-Hsi Yu <shung-hsi.yu@...e.com>
To: netdev@...r.kernel.org
Cc: Shung-Hsi Yu <shung-hsi.yu@...e.com>,
Stephen Hemminger <stephen@...workplumber.org>,
David Ahern <dsahern@...nel.org>,
Toke Høiland-Jørgensen <toke@...hat.com>
Subject: [PATCH iproute2-next v2 0/2] Increase BPF verifier verbosity when in verbose mode
When debugging BPF verifier issue, it is useful get as much information
out of the verifier as possible to help diagnostic, but right now that
is not possible because load_bpf_object() does not set the
kernel_log_level in struct bpf_object_open_opts, which is addressed in
patch 1.
Patch 2 further allows increasing the log level in verbose mode, so even
more information can be retrieved out of the verifier, and most
importantly, show verifier log even on successful BPF program load.
v1 -> v2:
- move setting of .kernel_log_level outside of DECLARE_LIBBPF_OPTS in
patch 1 as per David's comment
Shung-Hsi Yu (2):
libbpf: set kernel_log_level when available
bpf: increase verifier verbosity when in verbose mode
include/bpf_util.h | 4 ++--
ip/ipvrf.c | 3 ++-
lib/bpf_legacy.c | 10 ++++++----
lib/bpf_libbpf.c | 6 ++++++
4 files changed, 16 insertions(+), 7 deletions(-)
base-commit: d233ff0f984a1f9d0b166701b19e1897b05812d6
--
2.42.0
Powered by blists - more mailing lists