insn_buff 340 arch/x86/events/intel/ds.c void *buffer, *insn_buff, *cea; insn_buff 354 arch/x86/events/intel/ds.c insn_buff = kzalloc_node(PEBS_FIXUP_SIZE, GFP_KERNEL, node); insn_buff 355 arch/x86/events/intel/ds.c if (!insn_buff) { insn_buff 359 arch/x86/events/intel/ds.c per_cpu(insn_buffer, cpu) = insn_buff; insn_buff 91 arch/x86/include/asm/paravirt_types.h unsigned (*patch)(u8 type, void *insn_buff, insn_buff 368 arch/x86/include/asm/paravirt_types.h unsigned paravirt_patch_ident_64(void *insn_buff, unsigned len); insn_buff 369 arch/x86/include/asm/paravirt_types.h unsigned paravirt_patch_default(u8 type, void *insn_buff, unsigned long addr, unsigned len); insn_buff 370 arch/x86/include/asm/paravirt_types.h unsigned paravirt_patch_insns(void *insn_buff, unsigned len, const char *start, const char *end); insn_buff 372 arch/x86/include/asm/paravirt_types.h unsigned native_patch(u8 type, void *insn_buff, unsigned long addr, unsigned len); insn_buff 281 arch/x86/kernel/alternative.c recompute_jump(struct alt_instr *a, u8 *orig_insn, u8 *repl_insn, u8 *insn_buff) insn_buff 290 arch/x86/kernel/alternative.c o_dspl = *(s32 *)(insn_buff + 1); insn_buff 316 arch/x86/kernel/alternative.c insn_buff[0] = 0xeb; insn_buff 317 arch/x86/kernel/alternative.c insn_buff[1] = (s8)n_dspl; insn_buff 318 arch/x86/kernel/alternative.c add_nops(insn_buff + 2, 3); insn_buff 326 arch/x86/kernel/alternative.c insn_buff[0] = 0xe9; insn_buff 327 arch/x86/kernel/alternative.c *(s32 *)&insn_buff[1] = n_dspl; insn_buff 374 arch/x86/kernel/alternative.c u8 insn_buff[MAX_PATCH_LEN]; insn_buff 391 arch/x86/kernel/alternative.c BUG_ON(a->instrlen > sizeof(insn_buff)); insn_buff 409 arch/x86/kernel/alternative.c memcpy(insn_buff, replacement, a->replacementlen); insn_buff 418 arch/x86/kernel/alternative.c if (a->replacementlen == 5 && *insn_buff == 0xe8) { insn_buff 419 arch/x86/kernel/alternative.c *(s32 *)(insn_buff + 1) += replacement - instr; insn_buff 421 arch/x86/kernel/alternative.c *(s32 *)(insn_buff + 1), insn_buff 422 arch/x86/kernel/alternative.c (unsigned long)instr + *(s32 *)(insn_buff + 1) + 5); insn_buff 426 arch/x86/kernel/alternative.c recompute_jump(a, instr, replacement, insn_buff); insn_buff 429 arch/x86/kernel/alternative.c add_nops(insn_buff + a->replacementlen, insn_buff 433 arch/x86/kernel/alternative.c DUMP_BYTES(insn_buff, insn_buff_sz, "%px: final_insn: ", instr); insn_buff 435 arch/x86/kernel/alternative.c text_poke_early(instr, insn_buff, insn_buff_sz); insn_buff 597 arch/x86/kernel/alternative.c char insn_buff[MAX_PATCH_LEN]; insn_buff 604 arch/x86/kernel/alternative.c memcpy(insn_buff, p->instr, p->len); insn_buff 605 arch/x86/kernel/alternative.c used = pv_ops.init.patch(p->type, insn_buff, (unsigned long)p->instr, p->len); insn_buff 610 arch/x86/kernel/alternative.c add_nops(insn_buff + used, p->len - used); insn_buff 611 arch/x86/kernel/alternative.c text_poke_early(p->instr, insn_buff, p->len); insn_buff 425 arch/x86/kernel/kprobes/opt.c u8 insn_buff[RELATIVEJUMP_SIZE]; insn_buff 437 arch/x86/kernel/kprobes/opt.c insn_buff[0] = RELATIVEJUMP_OPCODE; insn_buff 438 arch/x86/kernel/kprobes/opt.c *(s32 *)(&insn_buff[1]) = rel; insn_buff 440 arch/x86/kernel/kprobes/opt.c text_poke_bp(op->kp.addr, insn_buff, RELATIVEJUMP_SIZE, insn_buff 450 arch/x86/kernel/kprobes/opt.c u8 insn_buff[RELATIVEJUMP_SIZE]; insn_buff 453 arch/x86/kernel/kprobes/opt.c insn_buff[0] = BREAKPOINT_INSTRUCTION; insn_buff 454 arch/x86/kernel/kprobes/opt.c memcpy(insn_buff + 1, op->optinsn.copied_insn, RELATIVE_ADDR_SIZE); insn_buff 455 arch/x86/kernel/kprobes/opt.c text_poke_bp(op->kp.addr, insn_buff, RELATIVEJUMP_SIZE, insn_buff 61 arch/x86/kernel/paravirt.c static unsigned paravirt_patch_call(void *insn_buff, const void *target, insn_buff 65 arch/x86/kernel/paravirt.c struct branch *b = insn_buff; insn_buff 88 arch/x86/kernel/paravirt.c static unsigned paravirt_patch_jmp(void *insn_buff, const void *target, insn_buff 91 arch/x86/kernel/paravirt.c struct branch *b = insn_buff; insn_buff 116 arch/x86/kernel/paravirt.c unsigned paravirt_patch_default(u8 type, void *insn_buff, insn_buff 128 arch/x86/kernel/paravirt.c ret = paravirt_patch_insns(insn_buff, len, ud2a, ud2a+sizeof(ud2a)); insn_buff 135 arch/x86/kernel/paravirt.c ret = paravirt_patch_ident_64(insn_buff, len); insn_buff 140 arch/x86/kernel/paravirt.c ret = paravirt_patch_jmp(insn_buff, opfunc, addr, len); insn_buff 144 arch/x86/kernel/paravirt.c ret = paravirt_patch_call(insn_buff, opfunc, addr, len); insn_buff 149 arch/x86/kernel/paravirt.c unsigned paravirt_patch_insns(void *insn_buff, unsigned len, insn_buff 157 arch/x86/kernel/paravirt.c memcpy(insn_buff, start, insn_len); insn_buff 13 arch/x86/kernel/paravirt_patch.c #define PATCH(d, m, insn_buff, len) \ insn_buff 14 arch/x86/kernel/paravirt_patch.c paravirt_patch_insns(insn_buff, len, PSTART(d, m), PEND(d, m)) insn_buff 16 arch/x86/kernel/paravirt_patch.c #define PATCH_CASE(ops, m, data, insn_buff, len) \ insn_buff 18 arch/x86/kernel/paravirt_patch.c return PATCH(data, ops##_##m, insn_buff, len) insn_buff 60 arch/x86/kernel/paravirt_patch.c unsigned int paravirt_patch_ident_64(void *insn_buff, unsigned int len) insn_buff 63 arch/x86/kernel/paravirt_patch.c return PATCH(xxl, mov64, insn_buff, len); insn_buff 86 arch/x86/kernel/paravirt_patch.c unsigned int native_patch(u8 type, void *insn_buff, unsigned long addr, insn_buff 92 arch/x86/kernel/paravirt_patch.c PATCH_CASE(irq, restore_fl, xxl, insn_buff, len); insn_buff 93 arch/x86/kernel/paravirt_patch.c PATCH_CASE(irq, save_fl, xxl, insn_buff, len); insn_buff 94 arch/x86/kernel/paravirt_patch.c PATCH_CASE(irq, irq_enable, xxl, insn_buff, len); insn_buff 95 arch/x86/kernel/paravirt_patch.c PATCH_CASE(irq, irq_disable, xxl, insn_buff, len); insn_buff 97 arch/x86/kernel/paravirt_patch.c PATCH_CASE(mmu, read_cr2, xxl, insn_buff, len); insn_buff 98 arch/x86/kernel/paravirt_patch.c PATCH_CASE(mmu, read_cr3, xxl, insn_buff, len); insn_buff 99 arch/x86/kernel/paravirt_patch.c PATCH_CASE(mmu, write_cr3, xxl, insn_buff, len); insn_buff 102 arch/x86/kernel/paravirt_patch.c PATCH_CASE(cpu, usergs_sysret64, xxl, insn_buff, len); insn_buff 103 arch/x86/kernel/paravirt_patch.c PATCH_CASE(cpu, swapgs, xxl, insn_buff, len); insn_buff 104 arch/x86/kernel/paravirt_patch.c PATCH_CASE(cpu, wbinvd, xxl, insn_buff, len); insn_buff 106 arch/x86/kernel/paravirt_patch.c PATCH_CASE(cpu, iret, xxl, insn_buff, len); insn_buff 113 arch/x86/kernel/paravirt_patch.c return PATCH(lock, queued_spin_unlock, insn_buff, len); insn_buff 118 arch/x86/kernel/paravirt_patch.c return PATCH(lock, vcpu_is_preempted, insn_buff, len); insn_buff 125 arch/x86/kernel/paravirt_patch.c return paravirt_patch_default(type, insn_buff, addr, len); insn_buff 114 arch/x86/tools/insn_decoder_test.c unsigned char insn_buff[16]; insn_buff 133 arch/x86/tools/insn_decoder_test.c memset(insn_buff, 0, 16); insn_buff 146 arch/x86/tools/insn_decoder_test.c insn_buff[nb++] = (unsigned char) b; insn_buff 152 arch/x86/tools/insn_decoder_test.c insn_init(&insn, insn_buff, sizeof(insn_buff), x86_64); insn_buff 86 arch/x86/tools/insn_sanity.c unsigned char *insn_buff, struct insn *insn) insn_buff 99 arch/x86/tools/insn_sanity.c fprintf(fp, " %02x", insn_buff[i]); insn_buff 127 arch/x86/tools/insn_sanity.c static int read_next_insn(unsigned char *insn_buff) insn_buff 137 arch/x86/tools/insn_sanity.c insn_buff[i] = (unsigned char)strtoul(tmp, &tmp, 16); insn_buff 145 arch/x86/tools/insn_sanity.c static int generate_insn(unsigned char *insn_buff) insn_buff 150 arch/x86/tools/insn_sanity.c return read_next_insn(insn_buff); insn_buff 154 arch/x86/tools/insn_sanity.c *(unsigned short *)(&insn_buff[i]) = random() & 0xffff; insn_buff 157 arch/x86/tools/insn_sanity.c insn_buff[i++] = random() & 0xff; insn_buff 229 arch/x86/tools/insn_sanity.c unsigned char insn_buff[MAX_INSN_SIZE * 2]; insn_buff 234 arch/x86/tools/insn_sanity.c memset(insn_buff + MAX_INSN_SIZE, INSN_NOP, MAX_INSN_SIZE); insn_buff 237 arch/x86/tools/insn_sanity.c if (generate_insn(insn_buff) <= 0) insn_buff 244 arch/x86/tools/insn_sanity.c insn_init(&insn, insn_buff, sizeof(insn_buff), x86_64); insn_buff 250 arch/x86/tools/insn_sanity.c dump_stream(stderr, "Error: Found an access violation", i, insn_buff, &insn); insn_buff 253 arch/x86/tools/insn_sanity.c dump_stream(stdout, "Info: Found an undecodable input", i, insn_buff, &insn); insn_buff 1069 kernel/bpf/core.c struct bpf_insn insn_buff[16], aux[2]; insn_buff 1094 kernel/bpf/core.c rewritten = bpf_jit_blind_insn(insn, aux, insn_buff, insn_buff 1099 kernel/bpf/core.c tmp = bpf_patch_insn_single(clone, i, insn_buff, rewritten);