Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/
Dtest_maps.c72 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == -1 && in test_hashmap()
88 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); in test_hashmap()
192 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == -1 && in test_hashmap_percpu()
233 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == 0); in test_hashmap_percpu()
295 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); in test_hashmap_walk()
377 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == -1 && in test_arraymap()
436 assert(bpf_map_update_elem(fd, &key, values, BPF_EXIST) == -1 && in test_arraymap_percpu()
566 assert(bpf_map_update_elem(fd, NULL, &vals[i], BPF_EXIST) == 0); in test_queuemap()
624 assert(bpf_map_update_elem(fd, NULL, &vals[i], BPF_EXIST) == 0); in test_stackmap()
1017 err = bpf_map_update_elem(fd, &i, &sfd[i], BPF_EXIST); in test_sockmap()
[all …]
Dtest_lru_map.c204 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && in test_lru_sanity0()
378 BPF_EXIST)); in test_lru_sanity2()
729 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && in test_lru_sanity7()
823 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -1 && in test_lru_sanity8()
/tools/testing/selftests/bpf/progs/
Dtest_tc_edt.c58 if (bpf_map_update_elem(&flow_map, &key, &next_tstamp, BPF_EXIST)) in throttle_flow()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c498 BPF_EXIST | BPF_F_LOCK); in test_sk_storage_map_basic()
510 err = bpf_map_update_elem(map_fd, &sk_fd, &value, BPF_EXIST); in test_sk_storage_map_basic()
/tools/testing/selftests/bpf/prog_tests/
Dsockmap_listen.c543 xbpf_map_update_elem(mapfd, &key, &value, BPF_EXIST); in test_update_existing()
1295 err = xbpf_map_update_elem(sock_map, &key, &value, BPF_EXIST); in test_reuseport_select_connected()
/tools/include/uapi/linux/
Dbpf.h399 BPF_EXIST = 2, /* update existing element */ enumerator
/tools/bpf/bpftool/
Dmap.c458 *flags = BPF_EXIST; in parse_elem()
/tools/perf/
Dbuiltin-trace.c3333 err = bpf_map_update_elem(fd, &key, &value, BPF_EXIST);