Home
last modified time | relevance | path

Searched refs:bpf_map_delete_elem (Results 1 – 23 of 23) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_maps.c97 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
112 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap()
114 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap()
115 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
209 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap_percpu()
237 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap_percpu()
239 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap_percpu()
240 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap_percpu()
395 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); in test_arraymap()
454 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); in test_arraymap_percpu()
[all …]
Dtest_lpm_map.c288 r = bpf_map_delete_elem(map, key); in test_lpm_map()
479 assert(bpf_map_delete_elem(map_fd, key) == -1 && in test_lpm_delete()
484 assert(bpf_map_delete_elem(map_fd, key) == -1 && in test_lpm_delete()
496 assert(bpf_map_delete_elem(map_fd, key) == 0); in test_lpm_delete()
506 assert(bpf_map_delete_elem(map_fd, key) == 0); in test_lpm_delete()
516 assert(bpf_map_delete_elem(map_fd, key) == 0); in test_lpm_delete()
526 assert(bpf_map_delete_elem(map_fd, key) == 0); in test_lpm_delete()
723 ret = bpf_map_delete_elem(info->map_fd, key_p); in lpm_test_command()
Dxdping.c68 bpf_map_delete_elem(fd, &raddr); in get_stats()
Dtest_lru_map.c375 assert(!bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity2()
535 assert(!bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity4()
536 assert(bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity4()
/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c62 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_1()
118 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_1()
129 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_1()
200 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_2()
210 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_2()
287 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_3()
375 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_4()
463 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_5()
533 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_bpf2bpf_1()
546 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_bpf2bpf_1()
[all …]
Dsockmap_ktls.c79 err = bpf_map_delete_elem(map, &zero); in test_sockmap_ktls_disconnect_after_delete()
Dmap_init.c143 err = bpf_map_delete_elem(map_fd, &key); in test_pcpu_map_init()
Dsockmap_listen.c141 int __ret = bpf_map_delete_elem((fd), (key)); \
437 err = bpf_map_delete_elem(mapfd, &key); in test_delete_after_close()
881 err = bpf_map_delete_elem(mapfd, &zero); in test_race_insert_listen()
1431 err = bpf_map_delete_elem(mapfd, &key); in test_ops_cleanup()
Dtcp_hdr_options.c326 bpf_map_delete_elem(lport_linum_map_fd, &lport); in reset_test()
Dflow_dissector.c511 err = bpf_map_delete_elem(keys_fd, &key); in run_tests_skb_less()
Dselect_reuseport.c722 err = bpf_map_delete_elem(outer_map, &index_zero); in cleanup_per_test()
/tools/testing/selftests/bpf/progs/
Dbpf_iter_sockmap.c57 ret = bpf_map_delete_elem(&dst, &tmp); in copy()
Dbpf_iter_bpf_hash_map.c75 ret = bpf_map_delete_elem(&hashmap1, &tmp_key); in dump_bpf_hash_map()
Dprofiler.inc.h676 bpf_map_delete_elem(&var_tpid_to_data, &tpid); in raw_tracepoint__sched_process_exit()
/tools/bpf/runqslower/
Drunqslower.bpf.c94 bpf_map_delete_elem(&start, &pid); in handle__sched_switch()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c316 err = bpf_map_delete_elem(map_fd, &sk_fd); in delete_thread()
551 err = bpf_map_delete_elem(map_fd, &sk_fd); in test_sk_storage_map_basic()
559 err = bpf_map_delete_elem(map_fd, &sk_fd); in test_sk_storage_map_basic()
/tools/lib/bpf/
Dlibbpf.map28 bpf_map_delete_elem;
Dbpf.h127 LIBBPF_API int bpf_map_delete_elem(int fd, const void *key);
Dxsk.c502 bpf_map_delete_elem(ctx->xsks_map_fd, &ctx->queue_id); in xsk_delete_bpf_maps()
Dbpf.c421 int bpf_map_delete_elem(int fd, const void *key) in bpf_map_delete_elem() function
Dlibbpf.c9851 if (bpf_map_delete_elem(link->fd, &zero)) in bpf_link__detach_struct_ops()
10015 bpf_map_delete_elem(pb->map_fd, &cpu_buf->map_key); in perf_buffer__free()
/tools/bpf/bpftool/
Dstruct_ops.c449 if (bpf_map_delete_elem(fd, &zero)) { in __do_unregister()
Dmap.c1226 err = bpf_map_delete_elem(fd, key); in do_delete()