netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2-next 0/2] Increase BPF verifier verbosity when in verbose mode
@ 2023-10-18  6:22 Shung-Hsi Yu
  2023-10-18  6:22 ` [PATCH iproute2-next 1/2] libbpf: set kernel_log_level when available Shung-Hsi Yu
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Shung-Hsi Yu @ 2023-10-18  6:22 UTC (permalink / raw)
  To: netdev
  Cc: Shung-Hsi Yu, Stephen Hemminger, David Ahern,
	Toke Høiland-Jørgensen

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 bpf_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
importlantly, show verifier log even on successful BPF program load.


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: 575322b09c3c6bc1806f2faa31edcfb64df302bb
-- 
2.42.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-10-20 12:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-18  6:22 [PATCH iproute2-next 0/2] Increase BPF verifier verbosity when in verbose mode Shung-Hsi Yu
2023-10-18  6:22 ` [PATCH iproute2-next 1/2] libbpf: set kernel_log_level when available Shung-Hsi Yu
2023-10-18  6:22 ` [PATCH iproute2-next 2/2] bpf: increase verifier verbosity when in verbose mode Shung-Hsi Yu
2023-10-18 14:35   ` David Ahern
2023-10-19  1:18     ` Shung-Hsi Yu
2023-10-19 19:44       ` David Ahern
2023-10-20 12:09         ` Shung-Hsi Yu
2023-10-18 13:59 ` [PATCH iproute2-next 0/2] Increase BPF " Shung-Hsi Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).