summaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/skel_internal.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-11-24 20:32:31 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2021-11-25 23:35:46 +0100
commita9606f405f2c8f24751b0a7326655a657a63ad60 (patch)
treeeca94caf86ffd9ac5a41c6ab2f01e1e0677992df /tools/lib/bpf/skel_internal.h
parentlibbpf: Unify low-level map creation APIs w/ new bpf_map_create() (diff)
downloadlinux-a9606f405f2c8f24751b0a7326655a657a63ad60.tar.xz
linux-a9606f405f2c8f24751b0a7326655a657a63ad60.zip
libbpf: Use bpf_map_create() consistently internally
Remove all the remaining uses of to-be-deprecated bpf_create_map*() APIs. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20211124193233.3115996-3-andrii@kernel.org
Diffstat (limited to 'tools/lib/bpf/skel_internal.h')
-rw-r--r--tools/lib/bpf/skel_internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/lib/bpf/skel_internal.h b/tools/lib/bpf/skel_internal.h
index 9cf66702fa8d..b206532704ce 100644
--- a/tools/lib/bpf/skel_internal.h
+++ b/tools/lib/bpf/skel_internal.h
@@ -65,8 +65,7 @@ static inline int bpf_load_and_run(struct bpf_load_and_run_opts *opts)
int map_fd = -1, prog_fd = -1, key = 0, err;
union bpf_attr attr;
- map_fd = bpf_create_map_name(BPF_MAP_TYPE_ARRAY, "__loader.map", 4,
- opts->data_sz, 1, 0);
+ map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "__loader.map", 4, opts->data_sz, 1, NULL);
if (map_fd < 0) {
opts->errstr = "failed to create loader map";
err = -errno;