Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/bpf/
H A Dtest_lru_map.c174 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 Dtest_maps.c51 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 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 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 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 Dsampleip_kern.c34 bpf_map_update_elem(&ip_map, &ip, &init_val, BPF_NOEXIST); in do_sample()
H A Dsyscall_tp_kern.c55 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()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c42 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 Dsockmap_helpers.h77 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 Dsockmap_basic.c103 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 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()
/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.h204 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 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.c55 bpf_sock_map_update(ctx, &sock_map, &key, BPF_NOEXIST); in get_netns_cookie_sockops()
H A Dtask_kfunc_common.h54 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()
/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()
/linux/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c235 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()

123