Skip to content

perf tools: Fix prologue generation

Jiri Olsa bpf linux-perf-users netdev 3 versions – Applied

Status from this message: This patch was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest1 patch 3 repliesApplied 1/1
  2. v42 patches 10 repliesSuperseded
  3. v32 patches 2 repliesSuperseded

Changes in v5 from the cover letter

- squashed patches together so we don't break bisection [Arnaldo]

Patches in v5 All 1 applied

#Subject and filesSizeRepliesApplied
1/1perf tools: Rework prologue generation codetools/perf/util/bpf-loader.c+175 -293 repliesApplied

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchArnaldo Carvalho de Melo
1/1T-b A-b

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

Read the v5 thread

Cover letter [PATCHv5 bpf-next 0/1] perf tools: Fix prologue generation

hi,
sending change we discussed some time ago [1] to get rid of some deprecated functions we use in perf prologue code.

Despite the gloomy discussion I think the final code does not look that bad ;-)

This patchset removes following libbpf functions from perf:
bpf_program__set_prep
bpf_program__nth_fd
struct bpf_prog_prep_result

v5 changes:
- squashed patches together so we don't break bisection [Arnaldo]

v4 changes:
- fix typo [Andrii]

v3 changes:
- removed R0/R1 zero init in libbpf_prog_prepare_load_fn, because it's not needed [Andrii]
- rebased/post on top of bpf-next/master which now has all the needed perf/core changes

v2 changes:
- use fallback section prog handler, so we don't need to use section prefix [Andrii]
- realloc prog->insns array in bpf_program__set_insns [Andrii]
- squash patch 1 from previous version with bpf_program__set_insns change [Daniel]
- patch 3 already merged [Arnaldo]
- added more comments

thanks,
jirka

[1] https://lore.kernel.org/bpf/CAEf4BzaiBO3_617kkXZdYJ8hS8YF--ZLgapNbgeeEJ-pY0H88g@mail.gmail.com/
---
Jiri Olsa (1):
perf tools: Rework prologue generation code

 tools/perf/util/bpf-loader.c | 204 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 175 insertions(+), 29 deletions(-)