Lines Matching defs:decl_stack
105 __u32 *decl_stack;
255 free(d->decl_stack);
648 struct id_stack *decl_stack,
1217 new_stack = libbpf_reallocarray(d->decl_stack, new_cap, sizeof(new_stack[0]));
1220 d->decl_stack = new_stack;
1224 d->decl_stack[d->decl_stack_cnt++] = id;
1294 struct id_stack decl_stack;
1353 * portions of shared btf_dump->decl_stack. To make it a bit nicer to
1358 decl_stack.ids = d->decl_stack + stack_start;
1359 decl_stack.cnt = d->decl_stack_cnt - stack_start;
1360 btf_dump_emit_type_chain(d, &decl_stack, fname, lvl);
1362 * emit_type_chain() guarantees that it will pop its entire decl_stack
1364 * decl_stack, so it doesn't actually pop anything from the
1365 * perspective of shared btf_dump->decl_stack, per se. We need to
1366 * reset decl_stack state to how it was before us to avoid it growing
1372 static void btf_dump_emit_mods(struct btf_dump *d, struct id_stack *decl_stack)
1377 while (decl_stack->cnt) {
1378 id = decl_stack->ids[decl_stack->cnt - 1];
1394 decl_stack->cnt--;
1398 static void btf_dump_drop_mods(struct btf_dump *d, struct id_stack *decl_stack)
1403 while (decl_stack->cnt) {
1404 id = decl_stack->ids[decl_stack->cnt - 1];
1408 decl_stack->cnt--;