[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210313210920.1959628-1-andrii@kernel.org>
Date: Sat, 13 Mar 2021 13:09:16 -0800
From: Andrii Nakryiko <andrii@...nel.org>
To: <bpf@...r.kernel.org>, <netdev@...r.kernel.org>, <ast@...com>,
<daniel@...earbox.net>
CC: <andrii@...nel.org>, <kernel-team@...com>
Subject: [PATCH v2 bpf-next 0/4] Build BPF selftests and its libbpf, bpftool in debug mode
Build BPF selftests and libbpf and bpftool, that are used as part of
selftests, in debug mode (specifically, -Og). This makes it much simpler and
nicer to do development and/or bug fixing. See patch #4 for some unscientific
measurements.
This patch set fixes new maybe-unitialized warnings produced in -Og build
mode. Patch #1 fixes the blocker which was causing some XDP selftests failures
due to non-zero padding in bpf_xdp_set_link_opts, which only happened in debug
mode.
Andrii Nakryiko (4):
libbpf: add explicit padding to bpf_xdp_set_link_opts
bpftool: fix maybe-uninitialized warnings
selftests/bpf: fix maybe-uninitialized warning in xdpxceiver test
selftests/bpf: build everything in debug mode
tools/bpf/bpftool/btf.c | 3 +++
tools/bpf/bpftool/main.c | 3 +--
tools/bpf/bpftool/map.c | 2 +-
tools/lib/bpf/libbpf.h | 1 +
tools/testing/selftests/bpf/Makefile | 7 +++++--
tools/testing/selftests/bpf/xdpxceiver.c | 4 ++--
6 files changed, 13 insertions(+), 7 deletions(-)
--
2.24.1
Powered by blists - more mailing lists