perf bpf: Stop using deprecated bpf_load_program() API
authorChristy Lee <christylee@fb.com>
Sat, 12 Feb 2022 07:30:53 +0000 (23:30 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Feb 2022 18:49:34 +0000 (15:49 -0300)
commit710f6c38bc5f49323b2d1e80ccb683f149477e51
tree45dc2ce65c5d9435d59d8c8b39b63365ada70360
parentbcaf0a97858de7ab21e2bb877e5ac25a7e050525
perf bpf: Stop using deprecated bpf_load_program() API

bpf_load_program() API is deprecated, remove perf's usage of the
deprecated function. Add a __weak function declaration for libbpf
version compatibility.

Signed-off-by: Christy Lee <christylee@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: bpf@vger.kernel.org
Cc: kernel-team@fb.com
Link: https://lore.kernel.org/bpf/20220212073054.1052880-2-andrii@kernel.org
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/bpf.c
tools/perf/util/bpf-event.c