Lines Matching defs:table
16 int build_obj_refs_table(struct obj_refs_table *table, enum bpf_obj_type type)
20 void delete_obj_refs_table(struct obj_refs_table *table) {}
21 void emit_obj_refs_plain(struct obj_refs_table *table, __u32 id, const char *prefix) {}
22 void emit_obj_refs_json(struct obj_refs_table *table, __u32 id, json_writer_t *json_writer) {}
28 static void add_ref(struct obj_refs_table *table, struct pid_iter_entry *e)
35 hash_for_each_possible(table->table, refs, node, e->id) {
79 hash_add(table->table, &refs->node, e->id);
90 int build_obj_refs_table(struct obj_refs_table *table, enum bpf_obj_type type)
98 hash_init(table->table);
154 add_ref(table, e);
165 void delete_obj_refs_table(struct obj_refs_table *table)
171 hash_for_each_safe(table->table, bkt, tmp, refs, node) {
178 void emit_obj_refs_json(struct obj_refs_table *table, __u32 id,
185 if (hash_empty(table->table))
188 hash_for_each_possible(table->table, refs, node, id) {
208 void emit_obj_refs_plain(struct obj_refs_table *table, __u32 id, const char *prefix)
214 if (hash_empty(table->table))
217 hash_for_each_possible(table->table, refs, node, id) {