Searched refs:insn_buff (Results 1 – 7 of 7) sorted by relevance
/arch/x86/tools/ |
D | insn_sanity.c | 82 unsigned char *insn_buff, struct insn *insn) in dump_stream() argument 95 fprintf(fp, " %02x", insn_buff[i]); in dump_stream() 123 static int read_next_insn(unsigned char *insn_buff) in read_next_insn() argument 133 insn_buff[i] = (unsigned char)strtoul(tmp, &tmp, 16); in read_next_insn() 141 static int generate_insn(unsigned char *insn_buff) in generate_insn() argument 146 return read_next_insn(insn_buff); in generate_insn() 150 *(unsigned short *)(&insn_buff[i]) = random() & 0xffff; in generate_insn() 153 insn_buff[i++] = random() & 0xff; in generate_insn() 225 unsigned char insn_buff[MAX_INSN_SIZE * 2]; in main() local 230 memset(insn_buff + MAX_INSN_SIZE, INSN_NOP, MAX_INSN_SIZE); in main() [all …]
|
D | insn_decoder_test.c | 114 unsigned char insn_buff[16]; in main() local 133 memset(insn_buff, 0, 16); in main() 146 insn_buff[nb++] = (unsigned char) b; in main() 153 ret = insn_decode(&insn, insn_buff, sizeof(insn_buff), in main()
|
/arch/x86/kernel/ |
D | alternative.c | 132 recompute_jump(struct alt_instr *a, u8 *orig_insn, u8 *repl_insn, u8 *insn_buff) in recompute_jump() argument 141 o_dspl = *(s32 *)(insn_buff + 1); in recompute_jump() 167 insn_buff[0] = 0xeb; in recompute_jump() 168 insn_buff[1] = (s8)n_dspl; in recompute_jump() 169 add_nops(insn_buff + 2, 3); in recompute_jump() 177 insn_buff[0] = 0xe9; in recompute_jump() 178 *(s32 *)&insn_buff[1] = n_dspl; in recompute_jump() 269 u8 insn_buff[MAX_PATCH_LEN]; in apply_alternatives() local 299 BUG_ON(a->instrlen > sizeof(insn_buff)); in apply_alternatives() 321 memcpy(insn_buff, replacement, a->replacementlen); in apply_alternatives() [all …]
|
D | paravirt.c | 66 static unsigned paravirt_patch_call(void *insn_buff, const void *target, in paravirt_patch_call() argument 70 struct branch *b = insn_buff; in paravirt_patch_call() 102 unsigned int paravirt_patch(u8 type, void *insn_buff, unsigned long addr, in paravirt_patch() argument 114 ret = paravirt_patch_call(insn_buff, paravirt_BUG, addr, len); in paravirt_patch() 119 ret = paravirt_patch_call(insn_buff, opfunc, addr, len); in paravirt_patch()
|
/arch/x86/kernel/kprobes/ |
D | opt.c | 477 u8 insn_buff[JMP32_INSN_SIZE]; in arch_optimize_kprobes() local 489 insn_buff[0] = JMP32_INSN_OPCODE; in arch_optimize_kprobes() 490 *(s32 *)(&insn_buff[1]) = rel; in arch_optimize_kprobes() 492 text_poke_bp(op->kp.addr, insn_buff, JMP32_INSN_SIZE, NULL); in arch_optimize_kprobes()
|
/arch/x86/events/intel/ |
D | ds.c | 414 void *buffer, *insn_buff, *cea; in alloc_pebs_buffer() local 428 insn_buff = kzalloc_node(PEBS_FIXUP_SIZE, GFP_KERNEL, node); in alloc_pebs_buffer() 429 if (!insn_buff) { in alloc_pebs_buffer() 433 per_cpu(insn_buffer, cpu) = insn_buff; in alloc_pebs_buffer()
|
/arch/x86/include/asm/ |
D | paravirt_types.h | 306 unsigned int paravirt_patch(u8 type, void *insn_buff, unsigned long addr, unsigned int len);
|