Home
last modified time | relevance | path

Searched refs:map_flags (Results 1 – 25 of 94) sorted by relevance

1234

/tools/testing/selftests/bpf/
Dtest_lru_map.c28 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/
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);
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);
Dtest_mmap.c12 __uint(map_flags, BPF_F_MMAPABLE | BPF_F_RDONLY_PROG);
19 __uint(map_flags, BPF_F_MMAPABLE);
Dtest_queue_stack_map.h14 __uint(map_flags, 0);
22 __uint(map_flags, 0);
Dtask_ls_recursion.c18 __uint(map_flags, BPF_F_NO_PREALLOC);
25 __uint(map_flags, BPF_F_NO_PREALLOC);
Dnetns_cookie_prog.c11 __uint(map_flags, BPF_F_NO_PREALLOC);
18 __uint(map_flags, BPF_F_NO_PREALLOC);
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);
Dtest_map_in_map.c11 __uint(map_flags, 0);
19 __uint(map_flags, 0);
Dbench_local_storage_create.c20 __uint(map_flags, BPF_F_NO_PREALLOC);
27 __uint(map_flags, BPF_F_NO_PREALLOC);
Dcgrp_ls_recursion.c12 __uint(map_flags, BPF_F_NO_PREALLOC);
19 __uint(map_flags, BPF_F_NO_PREALLOC);
Dtest_sk_storage_tracing.c17 __uint(map_flags, BPF_F_NO_PREALLOC);
25 __uint(map_flags, BPF_F_NO_PREALLOC);
Dhtab_reuse.c18 __uint(map_flags, BPF_F_NO_PREALLOC);
Dcgrp_ls_tp_btf.c12 __uint(map_flags, BPF_F_NO_PREALLOC);
19 __uint(map_flags, BPF_F_NO_PREALLOC);
Dtest_sk_storage_trace_itself.c10 __uint(map_flags, BPF_F_NO_PREALLOC);
Dcgrp_ls_negative.c12 __uint(map_flags, BPF_F_NO_PREALLOC);
Dbprm_opts.c16 __uint(map_flags, BPF_F_NO_PREALLOC);
Dread_bpf_task_storage_busy.c17 __uint(map_flags, BPF_F_NO_PREALLOC);
Dtask_local_storage_exit_creds.c12 __uint(map_flags, BPF_F_NO_PREALLOC);
Drcu_tasks_trace_gp.c8 __uint(map_flags, BPF_F_NO_PREALLOC);
Dnested_trust_failure.c15 __uint(map_flags, BPF_F_NO_PREALLOC);
Dmap_kptr.c45 __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);
Dtest_pe_preserve_elems.c19 __uint(map_flags, BPF_F_PRESERVE_ELEMS);
/tools/testing/selftests/bpf/map_tests/
Dmap_percpu_stats.c289 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/
Dbench_bpf_hashmap_lookup.c22 __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()

1234