Merge branch 'perf tools: Fix prologue generation'
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 24 Jun 2022 20:36:23 +0000 (13:36 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 24 Jun 2022 20:36:23 +0000 (13:36 -0700)
commit780d3d5a24bbdd48cb43f35afb6f5b7544cdf45a
tree14d0e7a5b0961fa7efe772c670e881ab3e1261ce
parent41188e9e9defa1678abbf860ad7f6dd1ba48ad1c
parentb168852eb8eff57b63e72e3bc584bda3d2cb9577
Merge branch 'perf tools: Fix prologue generation'

Jiri Olsa says:

====================

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/
====================

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>