Home
last modified time | relevance | path

Searched refs:hashmap (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.15/tools/lib/bpf/
Dhashmap.h52 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 …]
Dhashmap.c38 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 …]
Dstrset.c19 struct hashmap *strs_hash;
42 struct hashmap *hash; in strset__new()
DBuild2 netlink.o bpf_prog_linfo.o libbpf_probes.o xsk.o hashmap.o \
Dbtf_dump.c109 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()
Dbtf.c2979 struct hashmap *dedup_table;
Dlibbpf.c5116 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/
Dhashmap.h52 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 …]
Dhashmap.c38 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 …]
Dexpr.h22 struct hashmap ids;
Dpython-ext-sources39 util/hashmap.c
DBuild152 hashmap := 1
155 hashmap := 1
158 ifdef hashmap
159 perf-y += hashmap.o
Devsel.h22 struct hashmap;
120 struct hashmap *per_pkg_mask;
Dstat.c299 struct hashmap *mask = counter->per_pkg_mask; in check_per_pkg()
/Linux-v5.15/tools/perf/
Dcheck-headers.sh165 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/
Dfor_each_hash_map_elem.c13 } 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/
Dfor_each.c22 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()
Dhashmap.c48 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/
Dperf-stat.txt105 information about shared BPF programs and maps via a pinned hashmap.
106 Use "--bpf-attr-map" to specify the path of this pinned hashmap.