Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/samples/bpf/
Dmap_perf_test_kern.c115 bpf_map_delete_elem(&hash_map, &key); in SYSCALL()
130 bpf_map_delete_elem(&percpu_hash_map, &key); in SYSCALL()
144 bpf_map_delete_elem(&hash_map_alloc, &key); in SYSCALL()
158 bpf_map_delete_elem(&percpu_hash_map_alloc, &key); in SYSCALL()
Doffwaketime_kern.c97 bpf_map_delete_elem(&wokeby, &pid); in update_counts()
149 bpf_map_delete_elem(&start, &pid);
Dtest_map_in_map_user.c108 bpf_map_delete_elem(REG_RESULT_H, &result_key); in test_map_in_map()
109 bpf_map_delete_elem(INLINE_RESULT_H, &result_key); in test_map_in_map()
Dtracex6_user.c67 assert(bpf_map_delete_elem(map_fd[0], &cpu) == 0 || error); in check_on_cpu()
70 assert(bpf_map_delete_elem(map_fd[1], &cpu) == 0 || error); in check_on_cpu()
Dtracex4_kern.c33 bpf_map_delete_elem(&my_map, &ptr); in bpf_prog1()
Dtrace_event_user.c111 bpf_map_delete_elem(fd, &next_key); in print_stacks()
122 bpf_map_delete_elem(stack_map, &next_id); in print_stacks()
Dtracex3_kern.c66 bpf_map_delete_elem(&my_map, &rq); in bpf_prog2()
Dspintest_kern.c43 bpf_map_delete_elem(&my_map2, &v); \
Dspintest_user.c89 bpf_map_delete_elem(map_fd, &next_key); in main()
Dxdp_router_ipv4_user.c222 assert(bpf_map_delete_elem(exact_match_map_fd, in read_route()
267 assert(bpf_map_delete_elem(lpm_map_fd, in read_route()
437 assert(bpf_map_delete_elem(arp_table_map_fd, in read_arp()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/bpf/runqslower/
Drunqslower.bpf.c94 bpf_map_delete_elem(&start, &pid); in handle__sched_switch()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.map28 bpf_map_delete_elem;
Dbpf.h127 LIBBPF_API int bpf_map_delete_elem(int fd, const void *key);
/kernel/linux/linux-5.10/kernel/bpf/
Dhelpers.c63 BPF_CALL_2(bpf_map_delete_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2() argument
70 .func = bpf_map_delete_elem,

12