/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_maps.c | 78 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && in test_hashmap() 94 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); in test_hashmap() 207 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) < 0 && in test_hashmap_percpu() 248 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == 0); in test_hashmap_percpu() 311 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == 0); in test_hashmap_walk() 392 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && in test_arraymap() 451 assert(bpf_map_update_elem(fd, &key, values, BPF_EXIST) < 0 && in test_arraymap_percpu() 577 assert(bpf_map_update_elem(fd, NULL, &vals[i], BPF_EXIST) == 0); in test_queuemap() 633 assert(bpf_map_update_elem(fd, NULL, &vals[i], BPF_EXIST) == 0); in test_stackmap() 1027 err = bpf_map_update_elem(fd, &i, &sfd[i], BPF_EXIST); in test_sockmap() [all …]
|
D | test_lru_map.c | 190 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); in test_lru_sanity0() 369 BPF_EXIST)); in test_lru_sanity2() 716 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); in test_lru_sanity7() 805 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); in test_lru_sanity8()
|
/Linux-v6.1/kernel/bpf/ |
D | queue_stack_maps.c | 194 bool replace = (flags & BPF_EXIST); in queue_stack_map_push_elem() 197 if (flags & BPF_NOEXIST || flags > BPF_EXIST) in queue_stack_map_push_elem()
|
D | reuseport_array.c | 200 if (!osk && map_flags == BPF_EXIST) in reuseport_array_update_check() 246 if (map_flags > BPF_EXIST) in bpf_fd_reuseport_array_update_elem()
|
D | bpf_local_storage.c | 285 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags() 372 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST) || in bpf_local_storage_update()
|
D | local_storage.c | 150 if (unlikely(flags & ~(BPF_F_LOCK | BPF_EXIST))) in cgroup_storage_update_elem() 219 if (map_flags != BPF_ANY && map_flags != BPF_EXIST) in bpf_percpu_cgroup_storage_update()
|
D | hashtab.c | 1060 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags() 1079 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) in htab_map_update_elem() 1181 if (unlikely(map_flags > BPF_EXIST)) in htab_lru_map_update_elem() 1249 if (unlikely(map_flags > BPF_EXIST)) in __htab_percpu_map_update_elem() 1304 if (unlikely(map_flags > BPF_EXIST)) in __htab_lru_percpu_map_update_elem() 1323 if (map_flags != BPF_EXIST) { in __htab_lru_percpu_map_update_elem()
|
D | devmap.c | 896 if (unlikely(map_flags > BPF_EXIST)) in __dev_map_update_elem() 948 if (unlikely(map_flags > BPF_EXIST || !val.ifindex)) in __dev_map_hash_update_elem()
|
D | lpm_trie.c | 315 if (unlikely(flags > BPF_EXIST)) in trie_update_elem()
|
D | offload.c | 453 if (unlikely(flags > BPF_EXIST)) in bpf_map_offload_update_elem()
|
D | cpumap.c | 568 if (unlikely(map_flags > BPF_EXIST)) in cpu_map_update_elem()
|
D | arraymap.c | 325 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) in array_map_update_elem() 366 if (unlikely(map_flags > BPF_EXIST)) in bpf_percpu_array_update()
|
/Linux-v6.1/net/xdp/ |
D | xskmap.c | 164 if (unlikely(map_flags > BPF_EXIST)) in xsk_map_update_elem() 195 } else if (!old_xs && map_flags == BPF_EXIST) { in xsk_map_update_elem()
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | test_tc_edt.c | 58 if (bpf_map_update_elem(&flow_map, &key, &next_tstamp, BPF_EXIST)) in throttle_flow()
|
/Linux-v6.1/samples/bpf/ |
D | test_lru_dist.c | 152 bpf_map_update_elem(lru->map_fd, &node->key, &null_node, BPF_EXIST); in pfect_lru_lookup_or_insert() 160 assert(!bpf_map_update_elem(lru->map_fd, &key, &node, BPF_EXIST)); in pfect_lru_lookup_or_insert()
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | bloom_filter_map.c | 43 err = bpf_map_update_elem(fd, NULL, &value, BPF_EXIST); in test_fail_cases()
|
D | sockmap_listen.c | 545 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()
|
/Linux-v6.1/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 495 BPF_EXIST | BPF_F_LOCK); in test_sk_storage_map_basic() 508 err = bpf_map_update_elem(map_fd, &sk_fd, &value, BPF_EXIST); in test_sk_storage_map_basic()
|
/Linux-v6.1/net/core/ |
D | sock_map.c | 476 if (unlikely(flags > BPF_EXIST)) in sock_map_update_common() 497 } else if (!osk && flags == BPF_EXIST) { in sock_map_update_common() 979 if (unlikely(flags > BPF_EXIST)) in sock_hash_update_common() 1001 } else if (!elem && flags == BPF_EXIST) { in sock_hash_update_common()
|
/Linux-v6.1/Documentation/bpf/ |
D | map_hash.rst | 47 - ``BPF_EXIST`` will update an existing element
|
/Linux-v6.1/drivers/net/netdevsim/ |
D | bpf.c | 427 if (idx < 0 && flags == BPF_EXIST) { in nsim_map_update_elem()
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | bpf.h | 1214 BPF_EXIST = 2, /* update existing element */ enumerator
|
/Linux-v6.1/tools/bpf/bpftool/ |
D | map.c | 433 *flags = BPF_EXIST; in parse_elem()
|
/Linux-v6.1/include/uapi/linux/ |
D | bpf.h | 1214 BPF_EXIST = 2, /* update existing element */ enumerator
|
/Linux-v6.1/tools/perf/ |
D | builtin-trace.c | 3369 err = bpf_map_update_elem(fd, &key, &value, BPF_EXIST);
|