/linux-6.1.9/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()
|
/linux-6.1.9/arch/x86/kernel/ |
D | alternative.c | 133 recompute_jump(struct alt_instr *a, u8 *orig_insn, u8 *repl_insn, u8 *insn_buff) in recompute_jump() argument 142 o_dspl = *(s32 *)(insn_buff + 1); in recompute_jump() 168 insn_buff[0] = 0xeb; in recompute_jump() 169 insn_buff[1] = (s8)n_dspl; in recompute_jump() 170 add_nops(insn_buff + 2, 3); in recompute_jump() 178 insn_buff[0] = 0xe9; in recompute_jump() 179 *(s32 *)&insn_buff[1] = n_dspl; in recompute_jump() 270 u8 insn_buff[MAX_PATCH_LEN]; in apply_alternatives() local 289 BUG_ON(a->instrlen > sizeof(insn_buff)); in apply_alternatives() 311 memcpy(insn_buff, replacement, a->replacementlen); in apply_alternatives() [all …]
|
D | paravirt.c | 74 static unsigned paravirt_patch_call(void *insn_buff, const void *target, in paravirt_patch_call() argument 77 __text_gen_insn(insn_buff, CALL_INSN_OPCODE, in paravirt_patch_call() 98 unsigned int paravirt_patch(u8 type, void *insn_buff, unsigned long addr, in paravirt_patch() argument 110 ret = paravirt_patch_call(insn_buff, paravirt_BUG, addr, len); in paravirt_patch() 115 ret = paravirt_patch_call(insn_buff, opfunc, addr, len); in paravirt_patch()
|
/linux-6.1.9/arch/x86/kernel/kprobes/ |
D | opt.c | 484 u8 insn_buff[JMP32_INSN_SIZE]; in arch_optimize_kprobes() local 496 insn_buff[0] = JMP32_INSN_OPCODE; in arch_optimize_kprobes() 497 *(s32 *)(&insn_buff[1]) = rel; in arch_optimize_kprobes() 499 text_poke_bp(op->kp.addr, insn_buff, JMP32_INSN_SIZE, NULL); in arch_optimize_kprobes()
|
/linux-6.1.9/arch/x86/events/intel/ |
D | ds.c | 460 void *buffer, *insn_buff, *cea; in alloc_pebs_buffer() local 474 insn_buff = kzalloc_node(PEBS_FIXUP_SIZE, GFP_KERNEL, node); in alloc_pebs_buffer() 475 if (!insn_buff) { in alloc_pebs_buffer() 479 per_cpu(insn_buffer, cpu) = insn_buff; in alloc_pebs_buffer()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | paravirt_types.h | 307 unsigned int paravirt_patch(u8 type, void *insn_buff, unsigned long addr, unsigned int len);
|
/linux-6.1.9/kernel/bpf/ |
D | core.c | 1393 struct bpf_insn insn_buff[16], aux[2]; in bpf_jit_blind_constants() local 1428 rewritten = bpf_jit_blind_insn(insn, aux, insn_buff, in bpf_jit_blind_constants() 1433 tmp = bpf_patch_insn_single(clone, i, insn_buff, rewritten); in bpf_jit_blind_constants()
|