diff options
| author | Song Liu <[email protected]> | 2021-12-07 23:23:40 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-12-08 19:55:45 +0000 |
| commit | 8d0f9e73efe7f0ff4b1d0d013044e8ef91782689 (patch) | |
| tree | 6f0357ac11d1631292f3d652a2f54013b2f4dc0d /tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c | |
| parent | Merge branch 'samples: bpf: fix build issues with Clang/LLVM' (diff) | |
| download | kernel-8d0f9e73efe7f0ff4b1d0d013044e8ef91782689.tar.gz kernel-8d0f9e73efe7f0ff4b1d0d013044e8ef91782689.zip | |
perf/bpf_counter: Use bpf_map_create instead of bpf_create_map
bpf_create_map is deprecated. Replace it with bpf_map_create. Also add a
__weak bpf_map_create() so that when older version of libbpf is linked as
a shared library, it falls back to bpf_create_map().
Fixes: 992c4225419a ("libbpf: Unify low-level map creation APIs w/ new bpf_map_create()")
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c')
0 files changed, 0 insertions, 0 deletions
