aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/test_cgrp2_array_pin.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2021-12-02 15:08:37 -0800
committerAlexei Starovoitov <ast@kernel.org>2021-12-02 15:23:41 -0800
commit080a70b21f476b39ad66524c0ce0729972c61a10 (patch)
treedad6591838a9b35d8414ed4e80d0763b02ff2287 /samples/bpf/test_cgrp2_array_pin.c
parentselftests/bpf: Update test names for xchg and cmpxchg (diff)
parentlibbpf: Deprecate bpf_prog_load_xattr() API (diff)
downloadlinux-dev-080a70b21f476b39ad66524c0ce0729972c61a10.tar.xz
linux-dev-080a70b21f476b39ad66524c0ce0729972c61a10.zip
Merge branch 'Deprecate bpf_prog_load_xattr() API'
Andrii Nakryiko says: ==================== Few lines in the last patch to mark bpf_prog_load_xattr() deprecated required a decent amount of clean ups in all the other patches. samples/bpf is big part of the clean up. This patch set also bumps libbpf version to 0.7, as libbpf v0.6 release will be cut shortly. ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/test_cgrp2_array_pin.c')
-rw-r--r--samples/bpf/test_cgrp2_array_pin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/bpf/test_cgrp2_array_pin.c b/samples/bpf/test_cgrp2_array_pin.c
index 6d564aa75447..05e88aa63009 100644
--- a/samples/bpf/test_cgrp2_array_pin.c
+++ b/samples/bpf/test_cgrp2_array_pin.c
@@ -64,9 +64,9 @@ int main(int argc, char **argv)
}
if (create_array) {
- array_fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_ARRAY,
+ array_fd = bpf_map_create(BPF_MAP_TYPE_CGROUP_ARRAY, NULL,
sizeof(uint32_t), sizeof(uint32_t),
- 1, 0);
+ 1, NULL);
if (array_fd < 0) {
fprintf(stderr,
"bpf_create_map(BPF_MAP_TYPE_CGROUP_ARRAY,...): %s(%d)\n",