Lines Matching defs:decl_stack
104 __u32 *decl_stack;
251 free(d->decl_stack);
644 struct id_stack *decl_stack,
1213 new_stack = libbpf_reallocarray(d->decl_stack, new_cap, sizeof(new_stack[0]));
1216 d->decl_stack = new_stack;
1220 d->decl_stack[d->decl_stack_cnt++] = id;
1290 struct id_stack decl_stack;
1349 * portions of shared btf_dump->decl_stack. To make it a bit nicer to
1354 decl_stack.ids = d->decl_stack + stack_start;
1355 decl_stack.cnt = d->decl_stack_cnt - stack_start;
1356 btf_dump_emit_type_chain(d, &decl_stack, fname, lvl);
1358 * emit_type_chain() guarantees that it will pop its entire decl_stack
1360 * decl_stack, so it doesn't actually pop anything from the
1361 * perspective of shared btf_dump->decl_stack, per se. We need to
1362 * reset decl_stack state to how it was before us to avoid it growing
1368 static void btf_dump_emit_mods(struct btf_dump *d, struct id_stack *decl_stack)
1373 while (decl_stack->cnt) {
1374 id = decl_stack->ids[decl_stack->cnt - 1];
1390 decl_stack->cnt--;
1394 static void btf_dump_drop_mods(struct btf_dump *d, struct id_stack *decl_stack)
1399 while (decl_stack->cnt) {
1400 id = decl_stack->ids[decl_stack->cnt - 1];
1404 decl_stack->cnt--;