/linux/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 174 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 176 BPF_NOEXIST)); in test_lru_sanity0() 179 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -EEXIST); in test_lru_sanity0() 194 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 210 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 212 BPF_NOEXIST)); in test_lru_sanity0() 273 BPF_NOEXIST)); in test_lru_sanity1() 280 BPF_NOEXIST)); in test_lru_sanity1() 291 BPF_NOEXIST)); in test_lru_sanity1() 293 BPF_NOEXIST)); in test_lru_sanity1() [all …]
|
H A D | test_maps.c | 51 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 79 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == 0); in test_hashmap() 85 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 94 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 179 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == 0); in test_hashmap_percpu() 183 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) < 0 && in test_hashmap_percpu() 209 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == 0); in test_hashmap_percpu() 216 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) < 0 && in test_hashmap_percpu() 277 ret = bpf_map_update_elem(fd, &key, value, BPF_NOEXIST); in helper_fill_hashmap() 374 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_arraymap() [all …]
|
/linux/samples/bpf/ |
H A D | ibumad_kern.c | 87 bpf_map_update_elem(&read_count, &class, &zero, BPF_NOEXIST); in on_ib_umad_read_recv() 107 bpf_map_update_elem(&read_count, &class, &zero, BPF_NOEXIST); in on_ib_umad_read_send() 127 bpf_map_update_elem(&write_count, &class, &zero, BPF_NOEXIST); in on_ib_umad_write()
|
H A D | test_map_in_map_user.c | 57 BPF_NOEXIST); in populate_map() 64 ret = bpf_map_update_elem(H_OF_PORT_A, &port_key, &PORT_A, BPF_NOEXIST); in populate_map() 68 ret = bpf_map_update_elem(H_OF_PORT_H, &port_key, &PORT_H, BPF_NOEXIST); in populate_map()
|
H A D | test_lru_dist.c | 158 assert(!bpf_map_update_elem(lru->map_fd, &key, &node, BPF_NOEXIST)); in pfect_lru_lookup_or_insert() 287 if (bpf_map_update_elem(lru_map_fd, &key, &value, BPF_NOEXIST)) { in do_test_lru_dist() 357 assert(bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST) == 0); in test_lru_loss0() 407 assert(!bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST)); in test_lru_loss1() 436 BPF_NOEXIST) == 0); in do_test_parallel_lru_loss() 450 BPF_NOEXIST); in do_test_parallel_lru_loss()
|
H A D | tracex6.bpf.c | 44 bpf_map_update_elem(&values, &key, &count, BPF_NOEXIST); in bpf_prog1() 75 bpf_map_update_elem(&values2, &key, &buf, BPF_NOEXIST); in BPF_KPROBE()
|
H A D | sampleip_kern.c | 34 bpf_map_update_elem(&ip_map, &ip, &init_val, BPF_NOEXIST); in do_sample()
|
H A D | syscall_tp_kern.c | 55 bpf_map_update_elem(map, &key, &init_val, BPF_NOEXIST); in count()
|
H A D | trace_event_kern.c | 75 bpf_map_update_elem(&counts, &key, &one, BPF_NOEXIST); in bpf_prog1()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_listen.c | 42 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid() 47 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid() 65 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_opened() 95 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_bound() 115 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert() 132 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_delete_after_insert() 150 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_delete_after_close() 175 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_lookup_after_insert() 203 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_lookup_after_delete() 233 xbpf_map_update_elem(mapfd, &key, &value32, BPF_NOEXIST); in test_lookup_32_bit_value() [all …]
|
H A D | sockmap_helpers.h | 77 err = xbpf_map_update_elem(sock_mapfd, &key, &value, BPF_NOEXIST); in add_to_sockmap() 83 return xbpf_map_update_elem(sock_mapfd, &key, &value, BPF_NOEXIST); in add_to_sockmap()
|
H A D | sockmap_basic.c | 103 err = bpf_map_update_elem(map, &zero, &s, BPF_NOEXIST); in test_sockmap_create_update_free() 128 err = bpf_map_update_elem(map, &zero, &c, BPF_NOEXIST); in test_sockmap_vsock_delete_on_close() 133 err = bpf_map_update_elem(map, &zero, &p, BPF_NOEXIST); in test_sockmap_vsock_delete_on_close() 252 err = bpf_map_update_elem(src, &zero, &sk, BPF_NOEXIST); in test_sockmap_update() 319 err = bpf_map_update_elem(src_fd, &i, &sock_fd[i], BPF_NOEXIST); in test_sockmap_copy() 506 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_shutdown() 562 err = bpf_map_update_elem(map, &zero, &p, BPF_NOEXIST); in test_sockmap_stream_pass() 620 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_fionread() 667 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_change_tail() 705 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_peek_helper()
|
H A D | lookup_and_delete.c | 19 err = bpf_map_update_elem(map_fd, &key, &value, BPF_NOEXIST); in fill_values() 36 err = bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST); in fill_values_percpu()
|
H A D | test_bprm_opts.c | 24 ret = bpf_map_update_elem(map_fd, &task_fd, &secureexec, BPF_NOEXIST); in update_storage()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_map_ops.c | 46 err = bpf_map_update_elem(&hash_map, &key, &val, BPF_NOEXIST); in map_update() 126 const u64 flags = BPF_NOEXIST; in map_for_each_fail()
|
H A D | test_sockmap_kern.h | 204 BPF_NOEXIST); in bpf_sockmap() 207 BPF_NOEXIST); in bpf_sockmap() 219 BPF_NOEXIST); in bpf_sockmap() 222 BPF_NOEXIST); in bpf_sockmap()
|
H A D | cgroup_hierarchical_stats.c | 53 &pcpu_init, BPF_NOEXIST); in create_percpu_attach_counter() 61 &init, BPF_NOEXIST); in create_attach_counter()
|
H A D | test_lookup_and_delete.c | 21 bpf_map_update_elem(&hash_map, &set_key, &set_value, BPF_NOEXIST); in bpf_lookup_and_delete_test()
|
H A D | test_map_init.c | 28 bpf_map_update_elem(&hashmap1, &inKey, &inValue, BPF_NOEXIST); in sysenter_getpgid()
|
H A D | netns_cookie_prog.c | 55 bpf_sock_map_update(ctx, &sock_map, &key, BPF_NOEXIST); in get_netns_cookie_sockops()
|
H A D | task_kfunc_common.h | 54 status = bpf_map_update_elem(&__tasks_kfunc_map, &pid, &local, BPF_NOEXIST); in tasks_kfunc_map_insert()
|
H A D | cgrp_kfunc_common.h | 54 status = bpf_map_update_elem(&__cgrps_kfunc_map, &id, &local, BPF_NOEXIST); in cgrps_kfunc_map_insert()
|
H A D | htab_mem_bench.c | 44 return write_htab(i, ctx, BPF_NOEXIST); in newwrite_htab()
|
/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 190 BPF_NOEXIST); in insert_close_thread() 481 BPF_NOEXIST | BPF_F_LOCK); in test_sk_storage_map_basic() 522 BPF_NOEXIST | BPF_F_LOCK); in test_sk_storage_map_basic() 526 err = bpf_map_update_elem(map_fd, &sk_fd, &value, BPF_NOEXIST); in test_sk_storage_map_basic()
|
/linux/tools/perf/util/bpf_skel/ |
H A D | lock_contention.bpf.c | 235 if (bpf_map_update_elem(&task_data, &pid, &data, BPF_NOEXIST) == -E2BIG) in update_task_data() 346 if (bpf_map_update_elem(&tstamp, &pid, &zero, BPF_NOEXIST) < 0) { in get_tstamp_elem() 493 err = bpf_map_update_elem(&lock_stat, &key, &first, BPF_NOEXIST); in contention_end()
|