Lines Matching defs:map
19 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type)
23 void delete_obj_refs_table(struct hashmap *map) {}
24 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) {}
25 void emit_obj_refs_json(struct hashmap *map, __u32 id, json_writer_t *json_writer) {}
31 static void add_ref(struct hashmap *map, struct pid_iter_entry *e)
39 hashmap__for_each_key_entry(map, entry, e->id) {
84 err = hashmap__append(map, e->id, refs);
98 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type)
106 *map = hashmap__new(hash_fn_for_key_as_id, equal_fn_for_key_as_id, NULL);
107 if (IS_ERR(*map)) {
166 add_ref(*map, e);
177 void delete_obj_refs_table(struct hashmap *map)
182 if (!map)
185 hashmap__for_each_entry(map, entry, bkt) {
192 hashmap__free(map);
195 void emit_obj_refs_json(struct hashmap *map, __u32 id,
200 if (hashmap__empty(map))
203 hashmap__for_each_key_entry(map, entry, id) {
228 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix)
232 if (hashmap__empty(map))
235 hashmap__for_each_key_entry(map, entry, id) {