perf: Stop using bpf_map__def() API
authorChristy Lee <christylee@fb.com>
Sat, 8 Jan 2022 00:42:16 +0000 (16:42 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 13 Jan 2022 01:01:38 +0000 (17:01 -0800)
commit924b1cd61148ddd32254c933c6440b3f74d40996
treed7c81ea0f244af6d0c5b7d0ed1fd6bae1e444c02
parent3c28919f0652a1952333b88e1af5ce408fafe238
perf: Stop using bpf_map__def() API

libbpf bpf_map__def() API is being deprecated, replace perf's
usage with the appropriate getters and setters.

Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220108004218.355761-4-christylee@fb.com
tools/perf/util/bpf-loader.c
tools/perf/util/bpf_map.c