/Linux-v5.15/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 | strset.c | 19 struct hashmap *strs_hash; 42 struct hashmap *hash; in strset__new()
|
D | Build | 2 netlink.o bpf_prog_linfo.o libbpf_probes.o xsk.o hashmap.o \
|
D | btf_dump.c | 109 struct hashmap *type_names; 114 struct hashmap *ident_names; 627 static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map, 1457 static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map, in btf_dump_name_dups() 1470 struct hashmap *name_map) in btf_dump_resolve_name()
|
D | btf.c | 2979 struct hashmap *dedup_table;
|
D | libbpf.c | 5116 struct hashmap *cand_cache) in bpf_core_apply_relo() 5180 struct hashmap *cand_cache = NULL; in bpf_object__relocate_core()
|
/Linux-v5.15/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 | python-ext-sources | 39 util/hashmap.c
|
D | Build | 152 hashmap := 1 155 hashmap := 1 158 ifdef hashmap 159 perf-y += hashmap.o
|
D | evsel.h | 22 struct hashmap; 120 struct hashmap *per_pkg_mask;
|
D | stat.c | 299 struct hashmap *mask = counter->per_pkg_mask; in check_per_pkg()
|
/Linux-v5.15/tools/perf/ |
D | check-headers.sh | 165 check_2 tools/perf/util/hashmap.h tools/lib/bpf/hashmap.h 166 check_2 tools/perf/util/hashmap.c tools/lib/bpf/hashmap.c
|
/Linux-v5.15/tools/testing/selftests/bpf/progs/ |
D | for_each_hash_map_elem.c | 13 } hashmap SEC(".maps"); 71 bpf_for_each_map_elem(&hashmap, check_hash_elem, &data, 0); in check_percpu_elem() 89 hashmap_elems = bpf_for_each_map_elem(&hashmap, check_hash_elem, &data, 0); in test_pkt_access()
|
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | for_each.c | 22 hashmap_fd = bpf_map__fd(skel->maps.hashmap); in test_hash_map() 23 max_entries = bpf_map__max_entries(skel->maps.hashmap); in test_hash_map()
|
D | hashmap.c | 48 struct hashmap *map; in test_hashmap_generic() 263 struct hashmap *map; in test_hashmap_multimap() 335 struct hashmap *map; in test_hashmap_empty()
|
/Linux-v5.15/tools/perf/Documentation/ |
D | perf-stat.txt | 105 information about shared BPF programs and maps via a pinned hashmap. 106 Use "--bpf-attr-map" to specify the path of this pinned hashmap.
|