From: Christy Lee <christylee@fb.com>
To: <andrii@kernel.org>, <acme@kernel.org>
Cc: <christyc.y.lee@gmail.com>, <bpf@vger.kernel.org>,
<kernel-team@fb.com>, <linux-perf-users@vger.kernel.org>,
Christy Lee <christylee@fb.com>
Subject: [PATCH bpf-next v2 0/5] libbpf 1.0: deprecate bpf_map__def() API
Date: Fri, 7 Jan 2022 16:42:13 -0800 [thread overview]
Message-ID: <20220108004218.355761-1-christylee@fb.com> (raw)
bpf_map__def() is rarely used and non-extensible. bpf_map_def fields
can be accessed with appropriate map getters and setters instead.
Deprecate bpf_map__def() API and replace use cases with getters and
setters.
Changelog:
----------
v1 -> v2:
https://lore.kernel.org/all/20220105230057.853163-1-christylee@fb.com/
* Fixed commit messages to match commit titles
* Fixed indentation
* Removed bpf_map__def() usage that was missed in v1
Christy Lee (5):
samples/bpf: stop using bpf_map__def() API
bpftool: stop using bpf_map__def() API
perf: stop using bpf_map__def() API
selftests/bpf: stop using bpf_map__def() API
libbpf: deprecate bpf_map__def() API
samples/bpf/xdp_rxq_info_user.c | 10 +--
tools/bpf/bpftool/gen.c | 12 ++--
tools/bpf/bpftool/struct_ops.c | 4 +-
tools/lib/bpf/libbpf.h | 3 +-
tools/perf/util/bpf-loader.c | 64 ++++++++-----------
tools/perf/util/bpf_map.c | 28 ++++----
.../selftests/bpf/prog_tests/flow_dissector.c | 2 +-
.../selftests/bpf/prog_tests/global_data.c | 2 +-
.../bpf/prog_tests/global_data_init.c | 2 +-
.../selftests/bpf/prog_tests/sockmap_listen.c | 12 ++--
.../selftests/bpf/prog_tests/tailcalls.c | 36 +++++------
11 files changed, 81 insertions(+), 94 deletions(-)
--
2.30.2
next reply other threads:[~2022-01-08 0:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-08 0:42 Christy Lee [this message]
2022-01-08 0:42 ` [PATCH bpf-next v2 1/5] samples/bpf: stop using bpf_map__def() API Christy Lee
2022-01-08 0:42 ` [PATCH bpf-next v2 2/5] bpftool: " Christy Lee
2022-01-08 0:42 ` [PATCH bpf-next v2 3/5] perf: " Christy Lee
2022-01-08 0:42 ` [PATCH bpf-next v2 4/5] selftests/bpf: " Christy Lee
2022-01-08 0:42 ` [PATCH bpf-next v2 5/5] libbpf: deprecate " Christy Lee
2022-01-10 2:10 ` [PATCH bpf-next v2 0/5] libbpf 1.0: " patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220108004218.355761-1-christylee@fb.com \
--to=christylee@fb.com \
--cc=acme@kernel.org \
--cc=andrii@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=christyc.y.lee@gmail.com \
--cc=kernel-team@fb.com \
--cc=linux-perf-users@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.