Skip to content

perf: stop using deprecated bpf APIs

Christy Lee bpf linux-perf-users 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 13 repliesIn review
  2. v32 patches 1 replySuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches15 repliesSuperseded

Changes in v4 from the cover letter

* Fixed commit title
* Added weak definition for deprecated function

Patches in v4 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+20 -103 replies
2/2perf: stop using deprecated bpf_object__next() APItools/perf/util/bpf-loader.c tools/perf/util/bpf-loader.h+55 -186 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrii NakryikoSong Liu
1/2A-b
2/2A-b A-b

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

Read the v4 thread

Cover letter [PATCH bpf-next v4 0/2] perf: stop using deprecated bpf APIs

libbpf's bpf_load_program() 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().

Changelog:
----------
v3 -> v4:
* Fixed commit title
* Added weak definition for deprecated function

v2 -> v3:
https://lore.kernel.org/all/[email protected]/

Patch 2/2:
Fixed commit message to use upstream perf

v1 -> v2:
https://lore.kernel.org/all/[email protected]/

Patch 1/2:
Added missing commit message

Patch 2/2:
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  | 16 ++++++++
 tools/perf/util/bpf-loader.c | 72 +++++++++++++++++++++++++++---------
 tools/perf/util/bpf-loader.h |  1 +
 4 files changed, 75 insertions(+), 28 deletions(-)

--
2.30.2