Searched refs:hashmap (Results 1 – 12 of 12) sorted by relevance
/Linux-v5.10/tools/lib/bpf/ |
D | hashmap.h | 52 struct hashmap { struct 73 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, argument 75 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 78 void hashmap__clear(struct hashmap *map); 79 void hashmap__free(struct hashmap *map); 81 size_t hashmap__size(const struct hashmap *map); 82 size_t hashmap__capacity(const struct hashmap *map); 112 int hashmap__insert(struct hashmap *map, const void *key, void *value, 116 static inline int hashmap__add(struct hashmap *map, in hashmap__add() 122 static inline int hashmap__set(struct hashmap *map, in hashmap__set() [all …]
|
D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() 51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() 55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() 63 void hashmap__clear(struct hashmap *map) in hashmap__clear() 76 void hashmap__free(struct hashmap *map) in hashmap__free() 85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() 90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity() 95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow() 101 static int hashmap_grow(struct hashmap *map) in hashmap_grow() 130 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 | 86 struct hashmap *type_names; 91 struct hashmap *ident_names; 598 static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map, 1392 static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map, in btf_dump_name_dups() 1405 struct hashmap *name_map) in btf_dump_resolve_name()
|
D | btf.c | 90 struct hashmap *strs_hash; 1400 struct hashmap *hash = NULL; in btf_ensure_modifiable() 2854 struct hashmap *dedup_table;
|
D | libbpf.c | 5668 struct hashmap *cand_cache) in bpf_core_apply_relo() 5838 struct hashmap *cand_cache = NULL; in bpf_object__relocate_core()
|
/Linux-v5.10/tools/perf/util/ |
D | hashmap.h | 52 struct hashmap { struct 73 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, argument 75 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 78 void hashmap__clear(struct hashmap *map); 79 void hashmap__free(struct hashmap *map); 81 size_t hashmap__size(const struct hashmap *map); 82 size_t hashmap__capacity(const struct hashmap *map); 112 int hashmap__insert(struct hashmap *map, const void *key, void *value, 116 static inline int hashmap__add(struct hashmap *map, in hashmap__add() 122 static inline int hashmap__set(struct hashmap *map, in hashmap__set() [all …]
|
D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() 51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() 55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() 63 void hashmap__clear(struct hashmap *map) in hashmap__clear() 76 void hashmap__free(struct hashmap *map) in hashmap__free() 85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() 90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity() 95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow() 101 static int hashmap_grow(struct hashmap *map) in hashmap_grow() 130 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry() [all …]
|
D | expr.h | 22 struct hashmap ids;
|
D | Build | 144 perf-y += hashmap.o
|
/Linux-v5.10/tools/perf/ |
D | check-headers.sh | 153 check_2 tools/perf/util/hashmap.h tools/lib/bpf/hashmap.h 154 check_2 tools/perf/util/hashmap.c tools/lib/bpf/hashmap.c
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | hashmap.c | 48 struct hashmap *map; in test_hashmap_generic() 264 struct hashmap *map; in test_hashmap_multimap() 337 struct hashmap *map; in test_hashmap_empty()
|