]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Mute libbpf API deprecations temporarily
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 3 Dec 2021 00:46:40 +0000 (16:46 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 3 Dec 2021 19:54:51 +0000 (11:54 -0800)
commit134a74696fe41186c0581d1192871cf6db3f3626
treef88926f98640bec22c876939bd9c92370bb72787
parent75ef39e78a90825bbfc38970dcd049e7c3d9aad2
perf: Mute libbpf API deprecations temporarily

Libbpf development version was bumped to 0.7 in d7b653b1e352
("libbpf: Deprecate bpf_prog_load_xattr() API"), activating a bunch of
previously scheduled deprecations. Most APIs are pretty straightforward
to replace with newer APIs, but perf has a complicated mixed setup with
libbpf used both as static and shared configurations, which makes it
non-trivial to migrate the APIs.

Further, bpf_program__set_prep() needs more involved refactoring, which
will require help from Arnaldo and/or Jiri.

So for now, mute deprecation warnings and work on migrating perf off of
deprecated APIs separately with the input from owners of the perf tool.

Fixes: d7b653b1e352 ("libbpf: Deprecate bpf_prog_load_xattr() API")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211203004640.2455717-1-andrii@kernel.org
tools/perf/tests/bpf.c
tools/perf/util/bpf-loader.c