/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 33 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map() 68 map.map_type = BPF_MAP_TYPE_ARRAY; in bpf_map_lookup_elem_with_ref_bit() 159 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument 165 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, 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 260 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity1() 269 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1() [all …]
|
D | test_btf.c | 108 enum bpf_map_type map_type; member 175 .map_type = BPF_MAP_TYPE_ARRAY, 230 .map_type = BPF_MAP_TYPE_ARRAY, 255 .map_type = BPF_MAP_TYPE_ARRAY, 296 .map_type = BPF_MAP_TYPE_ARRAY, 341 .map_type = BPF_MAP_TYPE_ARRAY, 363 .map_type = BPF_MAP_TYPE_ARRAY, 385 .map_type = BPF_MAP_TYPE_ARRAY, 407 .map_type = BPF_MAP_TYPE_ARRAY, 432 .map_type = BPF_MAP_TYPE_ARRAY, [all …]
|
D | test_verifier.c | 367 static bool skip_unsupported_map(enum bpf_map_type map_type) in skip_unsupported_map() argument 369 if (!bpf_probe_map_type(map_type, 0)) { in skip_unsupported_map() 370 printf("SKIP (unsupported map type %d)\n", map_type); in skip_unsupported_map() 571 .map_type = BPF_MAP_TYPE_ARRAY, in create_map_spin_lock() 594 .map_type = BPF_MAP_TYPE_SK_STORAGE, in create_sk_storage_map()
|
D | test_select_reuseport.c | 64 attr.map_type = BPF_MAP_TYPE_REUSEPORT_SOCKARRAY; in create_maps() 75 attr.map_type = BPF_MAP_TYPE_ARRAY_OF_MAPS; in create_maps()
|
/tools/lib/bpf/ |
D | bpf.h | 41 enum bpf_map_type map_type; member 56 LIBBPF_API int bpf_create_map_node(enum bpf_map_type map_type, const char *name, 59 LIBBPF_API int bpf_create_map_name(enum bpf_map_type map_type, const char *name, 62 LIBBPF_API int bpf_create_map(enum bpf_map_type map_type, int key_size, 64 LIBBPF_API int bpf_create_map_in_map_node(enum bpf_map_type map_type, 68 LIBBPF_API int bpf_create_map_in_map(enum bpf_map_type map_type,
|
D | libbpf_probes.c | 193 bool bpf_probe_map_type(enum bpf_map_type map_type, __u32 ifindex) in bpf_probe_map_type() argument 205 switch (map_type) { in bpf_probe_map_type() 257 if (map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS || in bpf_probe_map_type() 258 map_type == BPF_MAP_TYPE_HASH_OF_MAPS) { in bpf_probe_map_type() 269 fd = bpf_create_map_in_map(map_type, NULL, sizeof(__u32), in bpf_probe_map_type() 274 attr.map_type = map_type; in bpf_probe_map_type()
|
D | bpf.c | 85 attr.map_type = create_attr->map_type; in bpf_create_map_xattr() 103 int bpf_create_map_node(enum bpf_map_type map_type, const char *name, in bpf_create_map_node() argument 110 map_attr.map_type = map_type; in bpf_create_map_node() 123 int bpf_create_map(enum bpf_map_type map_type, int key_size, in bpf_create_map() argument 128 map_attr.map_type = map_type; in bpf_create_map() 137 int bpf_create_map_name(enum bpf_map_type map_type, const char *name, in bpf_create_map_name() argument 144 map_attr.map_type = map_type; in bpf_create_map_name() 153 int bpf_create_map_in_map_node(enum bpf_map_type map_type, const char *name, in bpf_create_map_in_map_node() argument 161 attr.map_type = map_type; in bpf_create_map_in_map_node() 179 int bpf_create_map_in_map(enum bpf_map_type map_type, const char *name, in bpf_create_map_in_map() argument [all …]
|
D | libbpf.h | 461 LIBBPF_API bool bpf_probe_map_type(enum bpf_map_type map_type, __u32 ifindex);
|
D | libbpf.c | 2011 map_attr.map_type = BPF_MAP_TYPE_ARRAY; in bpf_object__probe_global_data() 2166 create_attr.map_type = def->type; in bpf_object__create_maps()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sockmap_basic.c | 47 static void test_sockmap_create_update_free(enum bpf_map_type map_type) in test_sockmap_create_update_free() argument 56 map = bpf_create_map(map_type, sizeof(int), sizeof(int), 1, 0); in test_sockmap_create_update_free()
|
D | obj_name.c | 54 attr.map_type = BPF_MAP_TYPE_ARRAY; in test_obj_name()
|
/tools/bpf/bpftool/ |
D | feature.c | 498 probe_map_type(enum bpf_map_type map_type, const char *define_prefix, in probe_map_type() argument 506 res = bpf_probe_map_type(map_type, ifindex); in probe_map_type() 509 if (strlen(map_type_name[map_type]) > maxlen) { in probe_map_type() 514 sprintf(feat_name, "have_%s_map_type", map_type_name[map_type]); in probe_map_type() 515 sprintf(define_name, "%s_map_type", map_type_name[map_type]); in probe_map_type() 517 sprintf(plain_desc, "%s%s", plain_comment, map_type_name[map_type]); in probe_map_type()
|
D | map.c | 1148 if (attr.map_type) { in do_create() 1153 attr.map_type = map_type_from_str(*argv); in do_create() 1154 if ((int)attr.map_type < 0) { in do_create()
|
/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 24 .map_type = BPF_MAP_TYPE_SK_STORAGE,
|
/tools/include/uapi/linux/ |
D | bpf.h | 371 __u32 map_type; /* one of enum bpf_map_type */ member
|
/tools/perf/ |
D | builtin-trace.c | 2506 char map_type = 'd'; in trace__pgfault() local 2552 map_type = 'x'; in trace__pgfault() 2554 map_type = '?'; in trace__pgfault() 2559 fprintf(trace->output, " (%c%c)\n", map_type, al.level); in trace__pgfault()
|