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 Also available in: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/depre thanks, jirka [1] https://lore.kernel.org/bpf/CAEf4BzaiBO3_617kkXZdYJ8hS8YF--ZLgapNbgeeEJ-pY0H88g@xxxxxxxxxxxxxx/ --- Jiri Olsa (5): libbpf: Add bpf_program__set_insns function libbpf: Load prog's instructions after prog_prepare_load_fn callback perf tools: Move libbpf init in libbpf_init function perf tools: Register perfkprobe libbpf section handler perf tools: Rework prologue generation code tools/lib/bpf/libbpf.c | 10 +++++ tools/lib/bpf/libbpf.h | 12 ++++++ tools/lib/bpf/libbpf.map | 3 +- tools/perf/include/bpf/bpf.h | 2 +- tools/perf/tests/bpf-script-example.c | 2 +- tools/perf/tests/bpf-script-test-prologue.c | 2 +- tools/perf/util/bpf-loader.c | 213 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- 7 files changed, 212 insertions(+), 32 deletions(-)