Home
last modified time | relevance | path

Searched refs:bpf_update_elem (Results 1 – 8 of 8) sorted by relevance

/linux-4.4.14/samples/bpf/
Dtest_maps.c35 assert(bpf_update_elem(map_fd, &key, &value, BPF_ANY) == 0); in test_hashmap_sanity()
39 assert(bpf_update_elem(map_fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap_sanity()
43 assert(bpf_update_elem(map_fd, &key, &value, -1) == -1 && errno == EINVAL); in test_hashmap_sanity()
53 assert(bpf_update_elem(map_fd, &key, &value, BPF_EXIST) == -1 && in test_hashmap_sanity()
58 assert(bpf_update_elem(map_fd, &key, &value, BPF_NOEXIST) == 0); in test_hashmap_sanity()
64 assert(bpf_update_elem(map_fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap_sanity()
106 assert(bpf_update_elem(map_fd, &key, &value, BPF_ANY) == 0); in test_arraymap_sanity()
109 assert(bpf_update_elem(map_fd, &key, &value, BPF_NOEXIST) == -1 && in test_arraymap_sanity()
124 assert(bpf_update_elem(map_fd, &key, &value, BPF_EXIST) == -1 && in test_arraymap_sanity()
166 assert(bpf_update_elem(map_fd, &key, &value, BPF_NOEXIST) == 0); in test_map_large()
[all …]
Dtracex6_user.c39 bpf_update_elem(map_fd[0], &i, &pmu_fd[i], BPF_ANY); in test_bpf_perf_event()
Dtracex3_user.c27 bpf_update_elem(fd, &key, &value, BPF_ANY); in clear_stats()
Dlibbpf.c34 int bpf_update_elem(int fd, void *key, void *value, unsigned long long flags) in bpf_update_elem() function
Dfds_example.c86 ret = bpf_update_elem(fd, &key, &value, 0); in bpf_do_map()
Dtrace_output_user.c165 assert(bpf_update_elem(map_fd[0], &key, &pmu_fd, BPF_ANY) == 0); in test_bpf_perf_event()
Dlibbpf.h9 int bpf_update_elem(int fd, void *key, void *value, unsigned long long flags);
Dbpf_load.c39 err = bpf_update_elem(prog_array_fd, &ind, &prog_fd, BPF_ANY); in populate_prog_array()