Home
last modified time | relevance | path

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

123

/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_lru_map.c176 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 Dtest_maps.c55 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 Dtest_tcp_hdr_options.h145 bpf_map_update_elem(&lport_linum_map, &__lport, &__linum_err, BPF_NOEXIST); \
/openbmc/linux/samples/bpf/
H A Dibumad_kern.c87 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 Dtest_map_in_map_user.c57 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 Dtracex6.bpf.c44 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 Dtest_lru_dist.c158 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 Dsampleip_kern.c34 bpf_map_update_elem(&ip_map, &ip, &init_val, BPF_NOEXIST); in do_sample()
H A Dsyscall_tp_kern.c44 bpf_map_update_elem(map, &key, &init_val, BPF_NOEXIST); in count()
H A Dtrace_event_kern.c75 bpf_map_update_elem(&counts, &key, &one, BPF_NOEXIST); in bpf_prog1()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c40 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 Dsockmap_basic.c102 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 Dlookup_and_delete.c19 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 Dtest_bprm_opts.c24 ret = bpf_map_update_elem(map_fd, &task_fd, &secureexec, BPF_NOEXIST); in update_storage()
H A Dsockmap_helpers.h306 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 Dtest_map_ops.c46 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 Dtest_sockmap_kern.h207 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 Dcgroup_hierarchical_stats.c53 &pcpu_init, BPF_NOEXIST); in create_percpu_attach_counter()
61 &init, BPF_NOEXIST); in create_attach_counter()
H A Dtest_lookup_and_delete.c21 bpf_map_update_elem(&hash_map, &set_key, &set_value, BPF_NOEXIST); in bpf_lookup_and_delete_test()
H A Dtest_map_init.c28 bpf_map_update_elem(&hashmap1, &inKey, &inValue, BPF_NOEXIST); in sysenter_getpgid()
H A Dnetns_cookie_prog.c53 bpf_sock_map_update(ctx, &sock_map, &key, BPF_NOEXIST); in get_netns_cookie_sockops()
H A Dtask_kfunc_common.h53 status = bpf_map_update_elem(&__tasks_kfunc_map, &pid, &local, BPF_NOEXIST); in tasks_kfunc_map_insert()
H A Dcgrp_kfunc_common.h54 status = bpf_map_update_elem(&__cgrps_kfunc_map, &id, &local, BPF_NOEXIST); in cgrps_kfunc_map_insert()
H A Dhtab_mem_bench.c44 return write_htab(i, ctx, BPF_NOEXIST); in newwrite_htab()
/openbmc/linux/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c190 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()

123