Home
last modified time | relevance | path

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

12

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Drecursion.c23 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash1), &key); in test_recursion()
25 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash1), &key); in test_recursion()
29 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash2), &key); in test_recursion()
31 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash2), &key); in test_recursion()
Dtailcalls.c65 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()
128 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_1()
201 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()
286 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_count()
392 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_4()
482 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_5()
554 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_bpf2bpf_1()
566 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_bpf2bpf_1()
[all …]
Dtest_local_storage.c84 err = bpf_map_delete_elem(map_fd, &obj_fd); in check_syscall_operations()
Dmap_init.c143 err = bpf_map_delete_elem(map_fd, &key); in test_pcpu_map_init()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_maps.c103 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
118 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap()
120 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap()
121 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
224 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap_percpu()
252 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap_percpu()
254 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap_percpu()
255 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap_percpu()
410 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL); in test_arraymap()
469 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL); in test_arraymap_percpu()
[all …]
Dtest_lpm_map.c289 r = bpf_map_delete_elem(map, key); in test_lpm_map()
478 assert(bpf_map_delete_elem(map_fd, key) == -ENOENT); in test_lpm_delete()
482 assert(bpf_map_delete_elem(map_fd, key) == -ENOENT); in test_lpm_delete()
493 assert(bpf_map_delete_elem(map_fd, key) == 0); in test_lpm_delete()
503 assert(bpf_map_delete_elem(map_fd, key) == 0); in test_lpm_delete()
513 assert(bpf_map_delete_elem(map_fd, key) == 0); in test_lpm_delete()
523 assert(bpf_map_delete_elem(map_fd, key) == 0); in test_lpm_delete()
713 ret = bpf_map_delete_elem(info->map_fd, key_p); in lpm_test_command()
Dtest_lru_map.c223 assert(!bpf_map_delete_elem(expected_map_fd, &key)); in test_lru_sanity0()
366 assert(!bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity2()
525 assert(!bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity4()
526 assert(bpf_map_delete_elem(lru_map_fd, &key)); in test_lru_sanity4()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtimer.c188 bpf_map_delete_elem(map, key); in timer_cb2()
209 bpf_map_delete_elem(map, key); in timer_cb2()
267 bpf_map_delete_elem(&hmap, &key); in BPF_PROG2()
279 bpf_map_delete_elem(&hmap_malloc, &key_malloc); in BPF_PROG2()
Drecursion.c38 bpf_map_delete_elem(&hash2, &key); in BPF_PROG()
Dlru_bug.c40 bpf_map_delete_elem(&lru_map, &(int){0}); in nanosleep()
Dbpf_iter_sockmap.c57 ret = bpf_map_delete_elem(&dst, &tmp); in copy()
Dbpf_iter_bpf_hash_map.c74 ret = bpf_map_delete_elem(&hashmap1, &tmp_key); in dump_bpf_hash_map()
Dfor_each_hash_map_elem.c45 bpf_map_delete_elem(map, key); in check_hash_elem()
/linux-6.1.9/samples/bpf/
Dmap_perf_test_kern.c117 bpf_map_delete_elem(&hash_map, &key); in SYSCALL()
135 bpf_map_delete_elem(&percpu_hash_map, &key); in SYSCALL()
152 bpf_map_delete_elem(&hash_map_alloc, &key); in SYSCALL()
169 bpf_map_delete_elem(&percpu_hash_map_alloc, &key); in SYSCALL()
Doffwaketime_kern.c98 bpf_map_delete_elem(&wokeby, &pid); in update_counts()
150 bpf_map_delete_elem(&start, &pid);
Dtest_map_in_map_user.c109 bpf_map_delete_elem(REG_RESULT_H, &result_key); in test_map_in_map()
110 bpf_map_delete_elem(INLINE_RESULT_H, &result_key); in test_map_in_map()
Dtracex6_user.c66 assert(bpf_map_delete_elem(map_fd[0], &cpu) == 0 || error); in check_on_cpu()
69 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.c82 bpf_map_delete_elem(map_fd, &next_key); in main()
Dxdp_router_ipv4_user.c176 assert(bpf_map_delete_elem(exact_match_map_fd, in read_route()
206 assert(bpf_map_delete_elem(lpm_map_fd, in read_route()
373 assert(bpf_map_delete_elem(arp_table_map_fd, in read_arp()
/linux-6.1.9/tools/perf/util/bpf_skel/
Dfunc_latency.bpf.c97 bpf_map_delete_elem(&functime, &tid); in BPF_PROG()
/linux-6.1.9/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c312 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()

12