Home
last modified time | relevance | path

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

123

/linux-6.6.21/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 …]
Dhtab_reuse.c50 bpf_map_delete_elem(ctx->fd, &key); in htab_update_fn()
56 bpf_map_delete_elem(ctx->fd, &key); in htab_update_fn()
/linux-6.6.21/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()
/linux-6.6.21/samples/bpf/
Dmap_perf_test.bpf.c115 bpf_map_delete_elem(&hash_map, &key); in BPF_KSYSCALL()
133 bpf_map_delete_elem(&percpu_hash_map, &key); in BPF_KSYSCALL()
150 bpf_map_delete_elem(&hash_map_alloc, &key); in BPF_KSYSCALL()
167 bpf_map_delete_elem(&percpu_hash_map_alloc, &key); in BPF_KSYSCALL()
Doffwaketime.bpf.c91 bpf_map_delete_elem(&wokeby, &pid); in update_counts()
133 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.bpf.c32 bpf_map_delete_elem(&my_map, &ptr); in bpf_prog1()
Dspintest.bpf.c44 bpf_map_delete_elem(&my_map2, &v); \
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()
Dspintest_user.c74 bpf_map_delete_elem(map_fd, &next_key); in main()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtimer.c196 bpf_map_delete_elem(map, key); in timer_cb2()
217 bpf_map_delete_elem(map, key); in timer_cb2()
275 bpf_map_delete_elem(&hmap, &key); in BPF_PROG2()
287 bpf_map_delete_elem(&hmap_malloc, &key_malloc); in BPF_PROG2()
Dcgrp_kfunc_common.h60 bpf_map_delete_elem(&__cgrps_kfunc_map, &id); in cgrps_kfunc_map_insert()
66 bpf_map_delete_elem(&__cgrps_kfunc_map, &id); in cgrps_kfunc_map_insert()
Drecursion.c38 bpf_map_delete_elem(&hash2, &key); in BPF_PROG()
Dlru_bug.c40 bpf_map_delete_elem(&lru_map, &(int){0}); in nanosleep()
Dverifier_map_ret_val.c32 : __imm(bpf_map_delete_elem), in map_fd_for_function_call()
Dbpf_iter_sockmap.c57 ret = bpf_map_delete_elem(&dst, &tmp); in copy()
Dtask_kfunc_common.h59 bpf_map_delete_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_insert()
/linux-6.6.21/tools/perf/util/bpf_skel/
Dlock_contention.bpf.c349 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
379 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
402 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
415 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
/linux-6.6.21/Documentation/bpf/
Dmap_cpumap.rst87 bpf_map_delete_elem()
91 int bpf_map_delete_elem(int fd, const void *key);
93 CPU entries can be deleted using the ``bpf_map_delete_elem()``
Dmap_sk_storage.rst99 bpf_map_delete_elem()
104 int bpf_map_delete_elem(int map_fd, const void *key)
107 ``bpf_map_delete_elem()`` libbpf function. The storage is deleted from the
Dmap_lpm_trie.rst72 bpf_map_delete_elem()
77 long bpf_map_delete_elem(struct bpf_map *map, const void *key)
79 Prefix entries can be deleted using the ``bpf_map_delete_elem()``
Dmap_xskmap.rst119 bpf_map_delete_elem()
123 int bpf_map_delete_elem(int fd, const void *key)
125 XSK entries can be deleted using the ``bpf_map_delete_elem()``

123