Home
last modified time | relevance | path

Searched refs:insn_buff (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/arch/x86/tools/
Dinsn_sanity.c82 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 …]
Dinsn_decoder_test.c114 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.6.21/arch/x86/kernel/
Dparavirt.c58 static unsigned paravirt_patch_call(void *insn_buff, const void *target, in paravirt_patch_call() argument
61 __text_gen_insn(insn_buff, CALL_INSN_OPCODE, in paravirt_patch_call()
88 unsigned int paravirt_patch(u8 type, void *insn_buff, unsigned long addr, in paravirt_patch() argument
100 ret = paravirt_patch_call(insn_buff, paravirt_BUG, addr, len); in paravirt_patch()
105 ret = paravirt_patch_call(insn_buff, opfunc, addr, len); in paravirt_patch()
Dalternative.c413 u8 insn_buff[MAX_PATCH_LEN]; in apply_alternatives() local
441 BUG_ON(a->instrlen > sizeof(insn_buff)); in apply_alternatives()
462 memcpy(insn_buff, replacement, a->replacementlen); in apply_alternatives()
466 insn_buff[insn_buff_sz] = 0x90; in apply_alternatives()
468 apply_relocation(insn_buff, a->instrlen, instr, replacement, a->replacementlen); in apply_alternatives()
472 DUMP_BYTES(ALT, insn_buff, insn_buff_sz, "%px: final_insn: ", instr); in apply_alternatives()
474 text_poke_early(instr, insn_buff, insn_buff_sz); in apply_alternatives()
1443 char insn_buff[MAX_PATCH_LEN]; in apply_paravirt() local
1450 memcpy(insn_buff, p->instr, p->len); in apply_paravirt()
1451 used = paravirt_patch(p->type, insn_buff, (unsigned long)p->instr, p->len); in apply_paravirt()
[all …]
/linux-6.6.21/arch/x86/kernel/kprobes/
Dopt.c476 u8 insn_buff[JMP32_INSN_SIZE]; in arch_optimize_kprobes() local
488 insn_buff[0] = JMP32_INSN_OPCODE; in arch_optimize_kprobes()
489 *(s32 *)(&insn_buff[1]) = rel; in arch_optimize_kprobes()
491 text_poke_bp(op->kp.addr, insn_buff, JMP32_INSN_SIZE, NULL); in arch_optimize_kprobes()
/linux-6.6.21/arch/x86/include/asm/
Dparavirt_types.h280 unsigned int paravirt_patch(u8 type, void *insn_buff, unsigned long addr, unsigned int len);
/linux-6.6.21/arch/x86/events/intel/
Dds.c515 void *buffer, *insn_buff, *cea; in alloc_pebs_buffer() local
529 insn_buff = kzalloc_node(PEBS_FIXUP_SIZE, GFP_KERNEL, node); in alloc_pebs_buffer()
530 if (!insn_buff) { in alloc_pebs_buffer()
534 per_cpu(insn_buffer, cpu) = insn_buff; in alloc_pebs_buffer()
/linux-6.6.21/kernel/bpf/
Dcore.c1421 struct bpf_insn insn_buff[16], aux[2]; in bpf_jit_blind_constants() local
1456 rewritten = bpf_jit_blind_insn(insn, aux, insn_buff, in bpf_jit_blind_constants()
1461 tmp = bpf_patch_insn_single(clone, i, insn_buff, rewritten); in bpf_jit_blind_constants()