summaryrefslogtreecommitdiff
path: root/samples/bpf/test_cgrp2_array_pin.c
diff options
context:
space:
mode:
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 70e86f7be69d..8a1b8b5d8def 100644
--- a/samples/bpf/test_cgrp2_array_pin.c
+++ b/samples/bpf/test_cgrp2_array_pin.c
@@ -85,9 +85,9 @@ int main(int argc, char **argv)
}
}
- ret = bpf_update_elem(array_fd, &array_key, &cg2_fd, 0);
+ ret = bpf_map_update_elem(array_fd, &array_key, &cg2_fd, 0);
if (ret) {
- perror("bpf_update_elem");
+ perror("bpf_map_update_elem");
goto out;
}