Skip to content

perf/bpf: Replace deprecated code

Jiri Olsa bpf linux-perf-users lkml 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesApplied
  2. v23 patches 16 repliesSuperseded

Changes in v3 from the cover letter

- sending priv related changes, because they can be already merged, the rest will need more discussion and work

- this version gets rid of and adds workaround (and keeps the current functionality) for following deprecated libbpf functions:

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2perf tools: Remove bpf_program__set_priv/bpf_program__priv usagetools/perf/util/bpf-loader.c+82 -160 replies
2/2perf tools: Remove bpf_map__set_priv/bpf_map__priv usagetools/perf/util/bpf-loader.c+59 -72 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndrii Nakryiko
SeriesA-b
1/2
2/2

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

Read the v3 thread

Cover letter [PATCHv3 0/2] perf/bpf: Replace deprecated code

hi,
the original patchset [1] removed the whole perf functionality with the hope nobody's using that. But it turned out there's actually bpf script using prologue functionality, so there might be users of this.

v3 changes:
- sending priv related changes, because they can be already merged, the rest will need more discussion and work

- this version gets rid of and adds workaround (and keeps the current functionality) for following deprecated libbpf functions:

bpf_program__set_priv
bpf_program__priv
bpf_map__set_priv
bpf_map__priv

Basically it implements workarounds suggested by Andrii in [2].

Also available in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
bpf/depre

thanks,
jirka

[1] https://lore.kernel.org/linux-perf-users/YgoPxhE3OEEmZqla@krava/T/#t
[2] https://lore.kernel.org/linux-perf-users/YgoPxhE3OEEmZqla@krava/T/#md3ccab9fe70a4583e94603b1a562e369bd67b17d
---
Jiri Olsa (2):
perf tools: Remove bpf_program__set_priv/bpf_program__priv usage
perf tools: Remove bpf_map__set_priv/bpf_map__priv usage

 tools/perf/util/bpf-loader.c | 164 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 141 insertions(+), 23 deletions(-)