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)
105 *map = hashmap__new(hash_fn_for_key_as_id, equal_fn_for_key_as_id, NULL);
106 if (IS_ERR(*map)) {
171 add_ref(*map, e);
182 void delete_obj_refs_table(struct hashmap *map)
187 if (!map)
190 hashmap__for_each_entry(map, entry, bkt) {
197 hashmap__free(map);
200 void emit_obj_refs_json(struct hashmap *map, __u32 id,
205 if (hashmap__empty(map))
208 hashmap__for_each_key_entry(map, entry, id) {
233 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix)
237 if (hashmap__empty(map))
240 hashmap__for_each_key_entry(map, entry, id) {