Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/
Dtest_lru_map.c29 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument
34 sizeof(unsigned long long), size, map_flags); in create_map()
159 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument
166 map_flags); in test_lru_sanity0()
170 if (map_flags & BPF_F_NO_COMMON_LRU) in test_lru_sanity0()
171 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0()
173 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0()
248 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity1() argument
256 if (map_flags & BPF_F_NO_COMMON_LRU) in test_lru_sanity1()
261 map_flags); in test_lru_sanity1()
[all …]
Dtest_queue_stack_map.h16 __uint(map_flags, 0);
24 __uint(map_flags, 0);
Dtest_maps.c35 static int map_flags; variable
43 2, map_flags); in test_hashmap()
134 2, map_flags); in test_hashmap_sizes()
156 sizeof(bpf_percpu(value, 0)), 2, map_flags); in test_hashmap_percpu()
258 max_entries, map_flags); in helper_fill_hashmap()
261 "err: %s, flags: 0x%x\n", strerror(errno), map_flags); in helper_fill_hashmap()
317 old_flags = map_flags; in test_hashmap_zero_seed()
318 map_flags |= BPF_F_ZERO_SEED; in test_hashmap_zero_seed()
340 map_flags = old_flags; in test_hashmap_zero_seed()
538 map_flags); in test_queuemap()
[all …]
Dbpf_helpers.h256 unsigned int map_flags; member
Dtest_verifier.c598 .map_flags = BPF_F_NO_PREALLOC, in create_sk_storage_map()
/tools/lib/bpf/
Dbpf.h42 __u32 map_flags; member
58 int max_entries, __u32 map_flags, int node);
61 int max_entries, __u32 map_flags);
63 int value_size, int max_entries, __u32 map_flags);
67 __u32 map_flags, int node);
71 __u32 map_flags);
Dbpf.c89 attr.map_flags = create_attr->map_flags; in bpf_create_map_xattr()
105 __u32 map_flags, int node) in bpf_create_map_node() argument
111 map_attr.map_flags = map_flags; in bpf_create_map_node()
117 map_attr.map_flags |= BPF_F_NUMA_NODE; in bpf_create_map_node()
124 int value_size, int max_entries, __u32 map_flags) in bpf_create_map() argument
129 map_attr.map_flags = map_flags; in bpf_create_map()
139 __u32 map_flags) in bpf_create_map_name() argument
145 map_attr.map_flags = map_flags; in bpf_create_map_name()
155 __u32 map_flags, int node) in bpf_create_map_in_map_node() argument
166 attr.map_flags = map_flags; in bpf_create_map_in_map_node()
[all …]
Dlibbpf_probes.c195 int key_size, value_size, max_entries, map_flags; in bpf_probe_map_type() local
203 map_flags = 0; in bpf_probe_map_type()
212 map_flags = BPF_F_NO_PREALLOC; in bpf_probe_map_type()
229 map_flags = BPF_F_NO_PREALLOC; in bpf_probe_map_type()
278 attr.map_flags = map_flags; in bpf_probe_map_type()
Dlibbpf.h291 unsigned int map_flags; member
Dlibbpf.c842 def->map_flags = type == LIBBPF_MAP_RODATA ? BPF_F_RDONLY_PROG : 0; in bpf_object__init_internal_map()
1161 &map->def.map_flags)) in bpf_object__init_user_btf_map()
1164 map_name, map->def.map_flags); in bpf_object__init_user_btf_map()
1929 map->def.map_flags = info.map_flags; in bpf_map__reuse_fd()
2167 create_attr.map_flags = def->map_flags; in bpf_object__create_maps()
/tools/testing/selftests/bpf/progs/
Dsockopt_inherit.c19 __uint(map_flags, BPF_F_NO_PREALLOC | BPF_F_CLONE);
26 __uint(map_flags, BPF_F_NO_PREALLOC | BPF_F_CLONE);
33 __uint(map_flags, BPF_F_NO_PREALLOC);
Dtest_map_in_map.c11 __uint(map_flags, 0);
20 __uint(map_flags, 0);
Dsocket_cookie_prog.c17 __uint(map_flags, BPF_F_NO_PREALLOC);
Dtcp_rtt.c20 .map_flags = BPF_F_NO_PREALLOC,
Dtest_stacktrace_build_id.c30 __uint(map_flags, BPF_F_STACK_BUILD_ID);
Dsockopt_sk.c21 .map_flags = BPF_F_NO_PREALLOC,
Dtest_sock_fields_kern.c65 __uint(map_flags, BPF_F_NO_PREALLOC);
72 __uint(map_flags, BPF_F_NO_PREALLOC);
Dtest_xdp_noinline.c177 __uint(map_flags, 1U << 1);
/tools/perf/include/bpf/
Dbpf.h16 unsigned int map_flags; member
/tools/testing/selftests/bpf/prog_tests/
Dobj_name.c58 attr.map_flags = 0; in test_obj_name()
Dbpf_obj_id.c73 map_infos[i].map_flags != 0 || in test_bpf_obj_id()
84 map_infos[i].map_flags, in test_bpf_obj_id()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c25 .map_flags = BPF_F_NO_PREALLOC,
582 bad_xattr.map_flags = 0; in test_sk_storage_map_basic()
/tools/bpf/bpftool/
Dmap.c503 jsonw_printf(json_wtr, "%d", info->map_flags); in show_map_close_json()
581 printf("flags 0x%x", info->map_flags); in show_map_close_plain()
1175 if (parse_u32_arg(&argc, &argv, &attr.map_flags, in do_create()
/tools/include/uapi/linux/
Dbpf.h375 __u32 map_flags; /* BPF_MAP_CREATE related member
3291 __u32 map_flags; member
/tools/perf/bench/
Dnuma.c367 static u8 *alloc_data(ssize_t bytes0, int map_flags, in alloc_data() argument
388 buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0); in alloc_data()
391 if (map_flags == MAP_PRIVATE) { in alloc_data()