Searched refs:nr_maps (Results 1 – 9 of 9) sorted by relevance
/tools/bpf/bpftool/ |
D | struct_ops.c | 25 unsigned int nr_maps; member 174 if (res->nr_errs || (!res->nr_maps && must_have_one_map)) in cmd_retval() 205 res.nr_maps++; in do_search() 217 if (!wtr && name && !res.nr_errs && !res.nr_maps) in do_search() 279 res.nr_maps++; in do_one_id() 486 int nr_errs = 0, nr_maps = 0; in do_register() local 526 nr_maps++; in do_register() 550 if (!nr_maps) { in do_register()
|
D | prog.c | 168 int nr_maps; in find_metadata() local 187 nr_maps = prog_info.nr_map_ids; in find_metadata() 189 prog_info.nr_map_ids = nr_maps; in find_metadata()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | metadata.c | 23 int nr_maps; in prog_holds_map() local 41 nr_maps = prog_info.nr_map_ids; in prog_holds_map() 43 prog_info.nr_map_ids = nr_maps; in prog_holds_map()
|
/tools/lib/bpf/ |
D | bpf_gen_internal.h | 20 __u32 nr_maps; member
|
D | gen_loader.c | 319 sizeof(struct bpf_map_desc) * gen->nr_maps + in bpf_gen__finish() 323 for (i = 0; i < gen->nr_maps; i++) in bpf_gen__finish() 461 } else if (map_idx != gen->nr_maps) { in bpf_gen__map_create() 467 gen->nr_maps++; in bpf_gen__map_create()
|
D | libbpf.c | 443 size_t nr_maps; member 991 for (i = 0; i < obj->nr_maps; i++) { in bpf_object__init_kern_struct_ops_maps() 1366 if (obj->nr_maps < obj->maps_cap) in bpf_object__add_map() 1367 return &obj->maps[obj->nr_maps++]; in bpf_object__add_map() 1380 memset(obj->maps + obj->nr_maps, 0, in bpf_object__add_map() 1381 (obj->maps_cap - obj->nr_maps) * sizeof(*obj->maps)); in bpf_object__add_map() 1386 for (i = obj->nr_maps; i < obj->maps_cap; i++) { in bpf_object__add_map() 1391 return &obj->maps[obj->nr_maps++]; in bpf_object__add_map() 1498 obj->rodata_map_idx = obj->nr_maps - 1; in bpf_object__init_global_data_maps() 1806 obj->kconfig_map_idx = obj->nr_maps - 1; in bpf_object__init_kconfig_map() [all …]
|
/tools/perf/util/ |
D | map.c | 533 maps->nr_maps = 0; in maps__init() 551 ++maps->nr_maps; in maps__insert() 568 if (maps->nr_maps > maps->nr_maps_allocated) { in maps__insert() 569 int nr_allocate = maps->nr_maps * 2; in maps__insert() 581 maps->maps_by_name[maps->nr_maps - 1] = map; in maps__insert() 600 --maps->nr_maps; in maps__remove()
|
D | maps.h | 35 unsigned int nr_maps; member
|
D | symbol.c | 1979 qsort(maps->maps_by_name, maps->nr_maps, sizeof(struct map *), map__strcmp); in __maps__sort_by_name() 1985 struct map **maps_by_name = realloc(maps->maps_by_name, maps->nr_maps * sizeof(map)); in map__groups__sort_by_name_from_rbtree() 1992 maps->nr_maps_allocated = maps->nr_maps; in map__groups__sort_by_name_from_rbtree() 2009 mapp = bsearch(name, maps->maps_by_name, maps->nr_maps, sizeof(*mapp), map__strcmp_name); in __maps__find_by_name()
|