Searched refs:map_flags (Results 1 - 25 of 134) sorted by relevance

123456

/linux-master/samples/bpf/
H A Dtest_lru_dist.c202 static int create_map(int map_type, int map_flags, unsigned int size) argument
205 .map_flags = map_flags,
307 static void test_parallel_lru_dist(int map_type, int map_flags, argument
313 printf("%s (map_type:%d map_flags:0x%X):\n", __func__, map_type,
314 map_flags);
316 if (map_flags & BPF_F_NO_COMMON_LRU)
317 lru_map_fd = create_map(map_type, map_flags,
320 lru_map_fd = create_map(map_type, map_flags,
332 static void test_lru_loss0(int map_type, int map_flags) argument
386 test_lru_loss1(int map_type, int map_flags) argument
465 test_parallel_lru_loss(int map_type, int map_flags, int nr_tasks) argument
489 int map_flags[] = {0, BPF_F_NO_COMMON_LRU}; local
[all...]
H A Dtcp_dumpstats_kern.c17 __u32 map_flags; member in struct:__anon2008
22 .map_flags = BPF_F_NO_PREALLOC,
/linux-master/tools/testing/selftests/bpf/progs/
H A Dhtab_reuse.c18 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dtest_mmap.c12 __uint(map_flags, BPF_F_MMAPABLE | BPF_F_RDONLY_PROG);
19 __uint(map_flags, BPF_F_MMAPABLE);
H A Dtest_sk_storage_trace_itself.c10 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dbprm_opts.c16 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dcgrp_ls_negative.c12 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dread_bpf_task_storage_busy.c17 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dsockopt_inherit.c20 __uint(map_flags, BPF_F_NO_PREALLOC | BPF_F_CLONE);
27 __uint(map_flags, BPF_F_NO_PREALLOC | BPF_F_CLONE);
34 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dtest_pe_preserve_elems.c19 __uint(map_flags, BPF_F_PRESERVE_ELEMS);
H A Dtask_local_storage_exit_creds.c12 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Drcu_tasks_trace_gp.c8 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dnested_trust_success.c15 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dnetns_cookie_prog.c11 __uint(map_flags, BPF_F_NO_PREALLOC);
18 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dtest_queue_stack_map.h14 __uint(map_flags, 0);
22 __uint(map_flags, 0);
H A Dbench_local_storage_create.c20 __uint(map_flags, BPF_F_NO_PREALLOC);
27 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dtask_ls_recursion.c18 __uint(map_flags, BPF_F_NO_PREALLOC);
25 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dtest_map_in_map.c11 __uint(map_flags, 0);
19 __uint(map_flags, 0);
H A Dlocal_storage.c28 __uint(map_flags, BPF_F_NO_PREALLOC);
35 __uint(map_flags, BPF_F_NO_PREALLOC | BPF_F_CLONE);
42 __uint(map_flags, BPF_F_NO_PREALLOC | BPF_F_CLONE);
49 __uint(map_flags, BPF_F_NO_PREALLOC);
56 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dtest_btf_map_in_map.c46 __uint(map_flags, BPF_F_INNER_MAP);
55 __uint(map_flags, BPF_F_INNER_MAP);
68 __uint(map_flags, BPF_F_INNER_MAP);
H A Dbpf_iter_bpf_sk_storage_helpers.c11 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dtask_local_storage.c12 __uint(map_flags, BPF_F_NO_PREALLOC);
H A Dlocal_storage_rcu_tasks_trace_bench.c10 __uint(map_flags, BPF_F_NO_PREALLOC);
/linux-master/tools/testing/selftests/bpf/
H A Dtest_lru_map.c28 static int create_map(int map_type, int map_flags, unsigned int size) argument
30 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = map_flags);
148 static void test_lru_sanity0(int map_type, int map_flags) argument
154 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type,
155 map_flags);
159 if (map_flags & BPF_F_NO_COMMON_LRU)
160 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus);
162 lru_map_fd = create_map(map_type, map_flags, 2);
239 static void test_lru_sanity1(int map_type, int map_flags, unsigne argument
315 test_lru_sanity2(int map_type, int map_flags, unsigned int tgt_free) argument
422 test_lru_sanity3(int map_type, int map_flags, unsigned int tgt_free) argument
486 test_lru_sanity4(int map_type, int map_flags, unsigned int tgt_free) argument
562 test_lru_sanity5(int map_type, int map_flags) argument
609 test_lru_sanity6(int map_type, int map_flags, int tgt_free) argument
676 test_lru_sanity7(int map_type, int map_flags) argument
767 test_lru_sanity8(int map_type, int map_flags) argument
853 int map_flags[] = {0, BPF_F_NO_COMMON_LRU}; local
[all...]
/linux-master/kernel/bpf/
H A Dreuseport_array.c192 u32 map_flags)
194 if (osk && map_flags == BPF_NOEXIST)
197 if (!osk && map_flags == BPF_EXIST)
233 void *value, u64 map_flags)
243 if (map_flags > BPF_EXIST)
273 map_flags);
289 err = reuseport_array_update_check(array, nsk, osk, reuse, map_flags);
188 reuseport_array_update_check(const struct reuseport_array *array, const struct sock *nsk, const struct sock *osk, const struct sock_reuseport *nsk_reuse, u32 map_flags) argument
232 bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key, void *value, u64 map_flags) argument

Completed in 185 milliseconds

123456