Searched refs:hashmap (Results 1 – 7 of 7) sorted by relevance
/tools/lib/bpf/ |
D | hashmap.h | 35 struct hashmap { struct 56 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, argument 58 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 61 void hashmap__clear(struct hashmap *map); 62 void hashmap__free(struct hashmap *map); 64 size_t hashmap__size(const struct hashmap *map); 65 size_t hashmap__capacity(const struct hashmap *map); 95 int hashmap__insert(struct hashmap *map, const void *key, void *value, 99 static inline int hashmap__add(struct hashmap *map, in hashmap__add() 105 static inline int hashmap__set(struct hashmap *map, in hashmap__set() [all …]
|
D | hashmap.c | 32 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() 45 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() 49 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() 57 void hashmap__clear(struct hashmap *map) in hashmap__clear() 70 void hashmap__free(struct hashmap *map) in hashmap__free() 79 size_t hashmap__size(const struct hashmap *map) in hashmap__size() 84 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity() 89 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow() 95 static int hashmap_grow(struct hashmap *map) in hashmap_grow() 125 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry() [all …]
|
D | Build | 2 netlink.o bpf_prog_linfo.o libbpf_probes.o xsk.o hashmap.o \
|
D | btf_dump.c | 80 struct hashmap *type_names; 85 struct hashmap *ident_names; 576 static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map, 1342 static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map, in btf_dump_name_dups() 1355 struct hashmap *name_map) in btf_dump_resolve_name()
|
D | btf.c | 1284 struct hashmap *dedup_table;
|
D | libbpf.c | 3016 struct hashmap *cand_cache) in bpf_core_reloc_offset() 3127 struct hashmap *cand_cache = NULL; in bpf_core_reloc_offsets()
|
/tools/testing/selftests/bpf/ |
D | test_hashmap.c | 57 struct hashmap *map; in test_hashmap_generic() 261 struct hashmap *map; in test_hashmap_multimap() 336 struct hashmap *map; in test_hashmap_empty()
|