/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 176 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() 350 BPF_NOEXIST)); in test_lru_sanity2() 366 BPF_NOEXIST)); in test_lru_sanity2() 381 BPF_NOEXIST)); in test_lru_sanity2() 704 BPF_NOEXIST)); in test_lru_sanity7() [all …]
|
H A D | test_maps.c | 55 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) == 0); in test_hashmap() 89 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 98 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 183 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) == 0); in test_hashmap_percpu() 187 assert(bpf_map_update_elem(fd, &key, value, BPF_NOEXIST) < 0 && in test_hashmap_percpu() 281 ret = bpf_map_update_elem(fd, &key, value, BPF_NOEXIST); in helper_fill_hashmap() 1015 err = bpf_map_update_elem(fd, &i, &sfd[i], BPF_NOEXIST); in test_sockmap() 1063 err = bpf_map_update_elem(fd, &i, &sfd[i], BPF_NOEXIST); in test_sockmap() 1772 BPF_NOEXIST); in test_reuseport_array() [all …]
|
H A D | test_tcp_hdr_options.h | 145 bpf_map_update_elem(&lport_linum_map, &__lport, &__linum_err, BPF_NOEXIST); \
|
/openbmc/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 | 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 | 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 | 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 | 44 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()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_listen.c | 40 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid() 45 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid() 113 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert() 130 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_delete_after_insert() 148 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_delete_after_close() 173 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_lookup_after_insert() 201 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_lookup_after_delete() 260 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_update_existing() 291 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in do_destroy_orphan_child() 353 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_clone_after_delete() [all …]
|
H A D | sockmap_basic.c | 102 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() 230 err = bpf_map_update_elem(src_fd, &i, &sock_fd[i], BPF_NOEXIST); in test_sockmap_copy() 386 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_shutdown() 451 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_fionread() 503 err = bpf_map_update_elem(map, &zero, &c1, BPF_NOEXIST); in test_sockmap_skb_verdict_peek()
|
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()
|
H A D | sockmap_helpers.h | 306 err = xbpf_map_update_elem(sock_mapfd, &key, &value, BPF_NOEXIST); in add_to_sockmap() 312 return xbpf_map_update_elem(sock_mapfd, &key, &value, BPF_NOEXIST); in add_to_sockmap()
|
/openbmc/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 | 207 BPF_NOEXIST); in bpf_sockmap() 210 BPF_NOEXIST); in bpf_sockmap() 222 BPF_NOEXIST); in bpf_sockmap() 225 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 | 53 bpf_sock_map_update(ctx, &sock_map, &key, BPF_NOEXIST); in get_netns_cookie_sockops()
|
H A D | task_kfunc_common.h | 53 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()
|
/openbmc/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()
|