/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 29 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 …]
|
D | test_queue_stack_map.h | 16 __uint(map_flags, 0); 24 __uint(map_flags, 0);
|
D | test_maps.c | 35 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 …]
|
D | bpf_helpers.h | 256 unsigned int map_flags; member
|
D | test_verifier.c | 598 .map_flags = BPF_F_NO_PREALLOC, in create_sk_storage_map()
|
/tools/lib/bpf/ |
D | bpf.h | 42 __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);
|
D | bpf.c | 89 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 …]
|
D | libbpf_probes.c | 195 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()
|
D | libbpf.h | 291 unsigned int map_flags; member
|
D | libbpf.c | 842 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/ |
D | sockopt_inherit.c | 19 __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);
|
D | test_map_in_map.c | 11 __uint(map_flags, 0); 20 __uint(map_flags, 0);
|
D | socket_cookie_prog.c | 17 __uint(map_flags, BPF_F_NO_PREALLOC);
|
D | tcp_rtt.c | 20 .map_flags = BPF_F_NO_PREALLOC,
|
D | test_stacktrace_build_id.c | 30 __uint(map_flags, BPF_F_STACK_BUILD_ID);
|
D | sockopt_sk.c | 21 .map_flags = BPF_F_NO_PREALLOC,
|
D | test_sock_fields_kern.c | 65 __uint(map_flags, BPF_F_NO_PREALLOC); 72 __uint(map_flags, BPF_F_NO_PREALLOC);
|
D | test_xdp_noinline.c | 177 __uint(map_flags, 1U << 1);
|
/tools/perf/include/bpf/ |
D | bpf.h | 16 unsigned int map_flags; member
|
/tools/testing/selftests/bpf/prog_tests/ |
D | obj_name.c | 58 attr.map_flags = 0; in test_obj_name()
|
D | bpf_obj_id.c | 73 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/ |
D | sk_storage_map.c | 25 .map_flags = BPF_F_NO_PREALLOC, 582 bad_xattr.map_flags = 0; in test_sk_storage_map_basic()
|
/tools/bpf/bpftool/ |
D | map.c | 503 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/ |
D | bpf.h | 375 __u32 map_flags; /* BPF_MAP_CREATE related member 3291 __u32 map_flags; member
|
/tools/perf/bench/ |
D | numa.c | 367 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()
|