/linux-master/samples/bpf/ |
H A D | test_lru_dist.c | 202 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 D | tcp_dumpstats_kern.c | 17 __u32 map_flags; member in struct:__anon2008 22 .map_flags = BPF_F_NO_PREALLOC,
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | htab_reuse.c | 18 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | test_mmap.c | 12 __uint(map_flags, BPF_F_MMAPABLE | BPF_F_RDONLY_PROG); 19 __uint(map_flags, BPF_F_MMAPABLE);
|
H A D | test_sk_storage_trace_itself.c | 10 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | bprm_opts.c | 16 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | cgrp_ls_negative.c | 12 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | read_bpf_task_storage_busy.c | 17 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | sockopt_inherit.c | 20 __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 D | test_pe_preserve_elems.c | 19 __uint(map_flags, BPF_F_PRESERVE_ELEMS);
|
H A D | task_local_storage_exit_creds.c | 12 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | rcu_tasks_trace_gp.c | 8 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | nested_trust_success.c | 15 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | netns_cookie_prog.c | 11 __uint(map_flags, BPF_F_NO_PREALLOC); 18 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | test_queue_stack_map.h | 14 __uint(map_flags, 0); 22 __uint(map_flags, 0);
|
H A D | bench_local_storage_create.c | 20 __uint(map_flags, BPF_F_NO_PREALLOC); 27 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | task_ls_recursion.c | 18 __uint(map_flags, BPF_F_NO_PREALLOC); 25 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | test_map_in_map.c | 11 __uint(map_flags, 0); 19 __uint(map_flags, 0);
|
H A D | local_storage.c | 28 __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 D | test_btf_map_in_map.c | 46 __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 D | bpf_iter_bpf_sk_storage_helpers.c | 11 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | task_local_storage.c | 12 __uint(map_flags, BPF_F_NO_PREALLOC);
|
H A D | local_storage_rcu_tasks_trace_bench.c | 10 __uint(map_flags, BPF_F_NO_PREALLOC);
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 28 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 D | reuseport_array.c | 192 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
|