Lines Matching refs:orc

10 int init_orc_entry(struct orc_entry *orc, struct cfi_state *cfi, struct instruction *insn)  in init_orc_entry()  argument
15 memset(orc, 0, sizeof(*orc)); in init_orc_entry()
23 orc->type = ORC_TYPE_UNDEFINED; in init_orc_entry()
29 orc->type = ORC_TYPE_UNDEFINED; in init_orc_entry()
32 orc->type = ORC_TYPE_END_OF_STACK; in init_orc_entry()
35 orc->type = ORC_TYPE_CALL; in init_orc_entry()
38 orc->type = ORC_TYPE_REGS; in init_orc_entry()
41 orc->type = ORC_TYPE_REGS_PARTIAL; in init_orc_entry()
48 orc->signal = cfi->signal; in init_orc_entry()
52 orc->sp_reg = ORC_REG_SP; in init_orc_entry()
55 orc->sp_reg = ORC_REG_FP; in init_orc_entry()
64 orc->fp_reg = ORC_REG_UNDEFINED; in init_orc_entry()
65 orc->fp_offset = 0; in init_orc_entry()
68 orc->fp_reg = ORC_REG_PREV_SP; in init_orc_entry()
69 orc->fp_offset = fp->offset; in init_orc_entry()
72 orc->fp_reg = ORC_REG_FP; in init_orc_entry()
81 orc->ra_reg = ORC_REG_UNDEFINED; in init_orc_entry()
82 orc->ra_offset = 0; in init_orc_entry()
85 orc->ra_reg = ORC_REG_PREV_SP; in init_orc_entry()
86 orc->ra_offset = ra->offset; in init_orc_entry()
89 orc->ra_reg = ORC_REG_FP; in init_orc_entry()
96 orc->sp_offset = cfi->cfa.offset; in init_orc_entry()
106 struct orc_entry *orc; in write_orc_entry() local
109 orc = (struct orc_entry *)orc_sec->data->d_buf + idx; in write_orc_entry()
110 memcpy(orc, o, sizeof(*orc)); in write_orc_entry()
157 void orc_print_dump(struct elf *dummy_elf, struct orc_entry *orc, int i) in orc_print_dump() argument
159 printf("type:%s", orc_type_name(orc[i].type)); in orc_print_dump()
162 print_reg(orc[i].sp_reg, orc[i].sp_offset); in orc_print_dump()
165 print_reg(orc[i].fp_reg, orc[i].fp_offset); in orc_print_dump()
168 print_reg(orc[i].ra_reg, orc[i].ra_offset); in orc_print_dump()
170 printf(" signal:%d\n", orc[i].signal); in orc_print_dump()