Home
last modified time | relevance | path

Searched refs:BPF_NOEXIST (Results 1 – 17 of 17) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_lru_map.c184 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0()
186 BPF_NOEXIST)); in test_lru_sanity0()
189 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -1 in test_lru_sanity0()
208 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0()
225 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0()
227 BPF_NOEXIST)); in test_lru_sanity0()
281 BPF_NOEXIST)); in test_lru_sanity1()
288 BPF_NOEXIST)); in test_lru_sanity1()
299 BPF_NOEXIST)); in test_lru_sanity1()
301 BPF_NOEXIST)); in test_lru_sanity1()
[all …]
Dtest_maps.c56 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap()
77 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == 0); in test_hashmap()
83 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap()
92 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_hashmap()
172 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == -1 && in test_hashmap_percpu()
198 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == 0); in test_hashmap_percpu()
205 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == -1 && in test_hashmap_percpu()
265 ret = bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST); in helper_fill_hashmap()
363 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == -1 && in test_arraymap()
421 assert(bpf_map_update_elem(fd, &key, values, BPF_NOEXIST) == -1 && in test_arraymap_percpu()
[all …]
Dtest_tcp_hdr_options.h144 bpf_map_update_elem(&lport_linum_map, &__lport, &__linum_err, BPF_NOEXIST); \
/tools/testing/selftests/bpf/prog_tests/
Dsockmap_listen.c331 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid()
336 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid()
353 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_opened()
380 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_bound()
399 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert()
415 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_delete_after_insert()
432 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_delete_after_close()
456 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_lookup_after_insert()
483 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_lookup_after_delete()
512 xbpf_map_update_elem(mapfd, &key, &value32, BPF_NOEXIST); in test_lookup_32_bit_value()
[all …]
Dsockmap_basic.c98 err = bpf_map_update_elem(map, &zero, &s, BPF_NOEXIST); in test_sockmap_create_update_free()
163 err = bpf_map_update_elem(src, &zero, &sk, BPF_NOEXIST); in test_sockmap_update()
237 err = bpf_map_update_elem(src_fd, &i, &sock_fd[i], BPF_NOEXIST); in test_sockmap_copy()
Dmap_init.c30 err = bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST); in map_populate()
Dsock_fields.c261 BPF_NOEXIST); in init_sk_storage()
267 BPF_NOEXIST); in init_sk_storage()
Dbpf_tcp_ca.c133 &expected_stg, BPF_NOEXIST); in do_test()
Dselect_reuseport.c651 BPF_NOEXIST); in prepare_sk_fds()
Dbpf_iter.c943 BPF_NOEXIST); in test_bpf_sk_storage_map()
Dsk_lookup.c507 err = bpf_map_update_elem(map_fd, &index, &value, BPF_NOEXIST); in update_lookup_map()
/tools/perf/include/bpf/
Dpid_filter.h13 return bpf_map_update_elem(pids, &pid, &value, BPF_NOEXIST); in pid_filter__add()
/tools/testing/selftests/bpf/progs/
Dtest_map_init.c28 bpf_map_update_elem(&hashmap1, &inKey, &inValue, BPF_NOEXIST); in sysenter_getpgid()
Dtest_sockmap_kern.h205 BPF_NOEXIST); in bpf_sockmap()
208 BPF_NOEXIST); in bpf_sockmap()
220 BPF_NOEXIST); in bpf_sockmap()
223 BPF_NOEXIST); in bpf_sockmap()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c194 BPF_NOEXIST); in insert_close_thread()
485 BPF_NOEXIST | BPF_F_LOCK); in test_sk_storage_map_basic()
523 BPF_NOEXIST | BPF_F_LOCK); in test_sk_storage_map_basic()
527 err = bpf_map_update_elem(map_fd, &sk_fd, &value, BPF_NOEXIST); in test_sk_storage_map_basic()
/tools/include/uapi/linux/
Dbpf.h398 BPF_NOEXIST = 1, /* create new element if it didn't exist */ enumerator
/tools/bpf/bpftool/
Dmap.c456 *flags = BPF_NOEXIST; in parse_elem()