| /tools/testing/selftests/bpf/ |
| D | test_lru_map.c | 28 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument 30 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = map_flags); in create_map() 161 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument 168 map_flags); in test_lru_sanity0() 172 if (map_flags & BPF_F_NO_COMMON_LRU) in test_lru_sanity0() 173 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0() 175 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0() 252 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity1() argument 260 if (map_flags & BPF_F_NO_COMMON_LRU) in test_lru_sanity1() 265 map_flags); in test_lru_sanity1() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| 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);
|
| 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);
|
| D | test_mmap.c | 12 __uint(map_flags, BPF_F_MMAPABLE | BPF_F_RDONLY_PROG); 19 __uint(map_flags, BPF_F_MMAPABLE);
|
| D | test_queue_stack_map.h | 14 __uint(map_flags, 0); 22 __uint(map_flags, 0);
|
| D | task_ls_recursion.c | 18 __uint(map_flags, BPF_F_NO_PREALLOC); 25 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | netns_cookie_prog.c | 11 __uint(map_flags, BPF_F_NO_PREALLOC); 18 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| 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);
|
| D | test_map_in_map.c | 11 __uint(map_flags, 0); 19 __uint(map_flags, 0);
|
| D | bench_local_storage_create.c | 20 __uint(map_flags, BPF_F_NO_PREALLOC); 27 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | cgrp_ls_recursion.c | 12 __uint(map_flags, BPF_F_NO_PREALLOC); 19 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | test_sk_storage_tracing.c | 17 __uint(map_flags, BPF_F_NO_PREALLOC); 25 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | htab_reuse.c | 18 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | cgrp_ls_tp_btf.c | 12 __uint(map_flags, BPF_F_NO_PREALLOC); 19 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | test_sk_storage_trace_itself.c | 10 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | cgrp_ls_negative.c | 12 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | bprm_opts.c | 16 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | read_bpf_task_storage_busy.c | 17 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | task_local_storage_exit_creds.c | 12 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | rcu_tasks_trace_gp.c | 8 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | nested_trust_failure.c | 15 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | map_kptr.c | 45 __uint(map_flags, BPF_F_NO_PREALLOC); 53 __uint(map_flags, BPF_F_NO_PREALLOC); 72 __uint(map_flags, BPF_F_NO_PREALLOC); 79 __uint(map_flags, BPF_F_NO_PREALLOC); 86 __uint(map_flags, BPF_F_NO_PREALLOC); 93 __uint(map_flags, BPF_F_NO_PREALLOC);
|
| D | test_pe_preserve_elems.c | 19 __uint(map_flags, BPF_F_PRESERVE_ELEMS);
|
| /tools/testing/selftests/bpf/map_tests/ |
| D | map_percpu_stats.c | 289 n_iter, n_real, map_type_to_s(info->type), info->map_flags); in check_expected_number_elements() 316 opts.retry_for_nomem = is_percpu(opts.map_type) && (info.map_flags & BPF_F_NO_PREALLOC); in __test() 363 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = BPF_F_NO_PREALLOC); in create_hash() 370 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = BPF_F_NO_PREALLOC); in create_percpu_hash() 385 static int create_lru_hash(__u32 type, __u32 map_flags) in create_lru_hash() argument 387 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = map_flags); in create_lru_hash() 395 .map_flags = BPF_F_NO_PREALLOC, in create_hash_of_maps()
|
| /tools/testing/selftests/bpf/benchs/ |
| D | bench_bpf_hashmap_lookup.c | 22 __u32 map_flags; member 28 .map_flags = 0, 75 args.map_flags = ret; in parse_arg() 169 bpf_map__set_map_flags(ctx.skel->maps.hash_map_bench, args.map_flags); in setup()
|