Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dtailcalls.c71 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_1()
124 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_1()
134 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_1()
207 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_2()
216 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_2()
376 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_count()
648 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_bpf2bpf_1()
660 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_bpf2bpf_1()
740 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_bpf2bpf_2()
810 err = bpf_map_delete_elem(map_fd, &i); in test_tailcall_bpf2bpf_3()
[all …]
H A 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/tools/testing/selftests/bpf/
H A Dtest_maps.c118 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap()
120 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap()
252 assert(bpf_map_delete_elem(fd, &key) == 0); in test_hashmap_percpu()
1035 err = bpf_map_delete_elem(fd, &i); in test_sockmap()
1082 bpf_map_delete_elem(map_fd_tx, &i); in test_sockmap()
1083 bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()
1123 bpf_map_delete_elem(map_fd_tx, &i); in test_sockmap()
1124 bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()
1141 bpf_map_delete_elem(map_fd_tx, &i); in test_sockmap()
1143 bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()
[all …]
H A 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/samples/bpf/
H A 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()
H A Doffwaketime.bpf.c91 bpf_map_delete_elem(&wokeby, &pid); in update_counts()
133 bpf_map_delete_elem(&start, &pid);
H A 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()
H A 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()
H A Dtracex4.bpf.c32 bpf_map_delete_elem(&my_map, &ptr); in bpf_prog1()
H A Dspintest.bpf.c44 bpf_map_delete_elem(&my_map2, &v); \
H A 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()
H A Dspintest_user.c74 bpf_map_delete_elem(map_fd, &next_key); in main()
/linux/tools/testing/selftests/bpf/progs/
H A 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()
H A Dtimer.c200 bpf_map_delete_elem(map, key); in timer_cb2()
221 bpf_map_delete_elem(map, key); in timer_cb2()
279 bpf_map_delete_elem(&hmap, &key); in BPF_PROG2()
291 bpf_map_delete_elem(&hmap_malloc, &key_malloc); in BPF_PROG2()
H A Dverifier_sockmap_mutate.c42 bpf_map_delete_elem(&sockmap, &zero); in test_sockmap_delete()
43 bpf_map_delete_elem(&sockhash, &zero); in test_sockmap_delete()
H A Drecursion.c38 bpf_map_delete_elem(&hash2, &key); in BPF_PROG()
H A Dlru_bug.c40 bpf_map_delete_elem(&lru_map, &(int){0}); in nanosleep()
H A Dverifier_map_ret_val.c32 : __imm(bpf_map_delete_elem), in map_fd_for_function_call()
H A Dbpf_iter_sockmap.c57 ret = bpf_map_delete_elem(&dst, &tmp); in copy()
H A Dtask_kfunc_common.h59 bpf_map_delete_elem(&__tasks_kfunc_map, &pid); in tasks_kfunc_map_insert()
/linux/Documentation/bpf/
H A 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()``
H A 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
H A 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()``
H A 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