Skip to content

perf: stop using deprecated bpf APIs

Andrii Nakryiko bpf linux-perf-users 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 3 repliesIn review
  2. v52 patches 5 repliesSuperseded

Changes in v6 from the cover letter

- rebase onto perf/core tree (Arnaldo);

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf: Stop using deprecated bpf_load_program() APItools/perf/tests/bpf.c tools/perf/util/bpf-event.c+17 -100 replies
2/2perf: Stop using deprecated bpf_object__next() APItools/perf/util/bpf-loader.c+79 -190 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSong Liu
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 perf/core 0/2] perf: stop using deprecated bpf APIs

libbpf's bpf_prog_load() and bpf__object_next() APIs are deprecated. remove perf's usage of these deprecated functions. After this patch set, the only remaining libbpf deprecated APIs in perf would be bpf_program__set_prep() and bpf_program__nth_fd().

v5 -> v6:
- rebase onto perf/core tree (Arnaldo);
v4 -> v5:
- add bpf_perf_object__add() and use it where appropriate (Jiri);
- use __maybe_unused in first patch;
v3 -> v4:
- Fixed commit title
- Added weak definition for deprecated function
v2 -> v3:
- Fixed commit message to use upstream perf
v1 -> v2:
- Added missing commit message
- Added more details to commit message and added steps to reproduce original test case.

Christy Lee (2):
perf: Stop using deprecated bpf_load_program() API
perf: Stop using deprecated bpf_object__next() API

 tools/perf/tests/bpf.c       | 14 ++----
 tools/perf/util/bpf-event.c  | 13 +++++
 tools/perf/util/bpf-loader.c | 98 +++++++++++++++++++++++++++++-------
 3 files changed, 96 insertions(+), 29 deletions(-)
Signature · 1 line
2.30.2