Lines Matching refs:code
184 kprobe_opcode_t *code; in NOKPROBE_SYMBOL() local
192 code = get_optinsn_slot(); in NOKPROBE_SYMBOL()
193 if (!code) in NOKPROBE_SYMBOL()
221 rel_chk = (unsigned long)((long)code - in NOKPROBE_SYMBOL()
230 free_optinsn_slot(code, 0); in NOKPROBE_SYMBOL()
235 memcpy(code, (unsigned long *)optprobe_template_entry, in NOKPROBE_SYMBOL()
247 code[TMPL_SUB_SP] = __opcode_to_mem_arm(0xe24dd000 | stack_protect); in NOKPROBE_SYMBOL()
249 code[TMPL_ADD_SP] = __opcode_to_mem_arm(0xe28d3000 | stack_protect); in NOKPROBE_SYMBOL()
253 code[TMPL_VAL_IDX] = val; in NOKPROBE_SYMBOL()
257 code[TMPL_CALL_IDX] = val; in NOKPROBE_SYMBOL()
263 (unsigned long)(&code[TMPL_RESTORE_END]), in NOKPROBE_SYMBOL()
270 code[TMPL_RESTORE_BEGIN] = __opcode_to_mem_arm(0xe89d7fff); in NOKPROBE_SYMBOL()
273 code[TMPL_RESTORE_ORIGN_INSN] = __opcode_to_mem_arm(orig->opcode); in NOKPROBE_SYMBOL()
276 code[TMPL_RESTORE_END] = __opcode_to_mem_arm(final_branch); in NOKPROBE_SYMBOL()
281 flush_icache_range((unsigned long)code, in NOKPROBE_SYMBOL()
282 (unsigned long)(&code[TMPL_END_IDX])); in NOKPROBE_SYMBOL()
285 op->optinsn.insn = code; in NOKPROBE_SYMBOL()