MCOUNT_INSN_SIZE 93 arch/arm/kernel/ftrace.c if (probe_kernel_read(&replaced, (void *)pc, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 100 arch/arm/kernel/ftrace.c if (probe_kernel_write((void *)pc, &new, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 103 arch/arm/kernel/ftrace.c flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 104 arch/csky/kernel/ftrace.c flush_icache_range(hook_pos, hook_pos + MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 22 arch/ia64/kernel/ftrace.c ftrace_orig_code[MCOUNT_INSN_SIZE] = { MCOUNT_INSN_SIZE 41 arch/ia64/kernel/ftrace.c static unsigned char ftrace_nop_code[MCOUNT_INSN_SIZE] = { MCOUNT_INSN_SIZE 60 arch/ia64/kernel/ftrace.c ftrace_call_code[MCOUNT_INSN_SIZE] = { MCOUNT_INSN_SIZE 97 arch/ia64/kernel/ftrace.c unsigned char replaced[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 111 arch/ia64/kernel/ftrace.c if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 115 arch/ia64/kernel/ftrace.c if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) MCOUNT_INSN_SIZE 120 arch/ia64/kernel/ftrace.c if (probe_kernel_write(((void *)ip), new_code, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 122 arch/ia64/kernel/ftrace.c flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 129 arch/ia64/kernel/ftrace.c unsigned char __attribute__((aligned(8))) replaced[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 132 arch/ia64/kernel/ftrace.c if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 143 arch/ia64/kernel/ftrace.c if (memcmp(replaced, ftrace_call_code, MCOUNT_INSN_SIZE) != 0) MCOUNT_INSN_SIZE 153 arch/ia64/kernel/ftrace.c if (memcmp(replaced, ftrace_orig_code, MCOUNT_INSN_SIZE) != 0) MCOUNT_INSN_SIZE 379 arch/mips/kernel/ftrace.c self_ra -= (MCOUNT_INSN_SIZE * insns); MCOUNT_INSN_SIZE 25 arch/nds32/kernel/ftrace.c ftrace_trace_function(ip - MCOUNT_INSN_SIZE, parent_ip, MCOUNT_INSN_SIZE 65 arch/nds32/kernel/ftrace.c "addi $r0, %1, #-" XSTR(MCOUNT_INSN_SIZE) "\n\t" MCOUNT_INSN_SIZE 146 arch/nds32/kernel/ftrace.c if (probe_kernel_read(orig_insn, (void *)pc, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 148 arch/nds32/kernel/ftrace.c if (memcmp(orig_insn, old_insn, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 152 arch/nds32/kernel/ftrace.c if (probe_kernel_write((void *)pc, new_insn, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 167 arch/nds32/kernel/ftrace.c flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 230 arch/nds32/kernel/ftrace.c (unsigned long)(__builtin_return_address(1) - MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 34 arch/powerpc/kernel/kprobes-ftrace.c regs->nip -= MCOUNT_INSN_SIZE; MCOUNT_INSN_SIZE 43 arch/powerpc/kernel/kprobes-ftrace.c regs->nip += MCOUNT_INSN_SIZE; MCOUNT_INSN_SIZE 70 arch/powerpc/kernel/trace/ftrace.c if (probe_kernel_read(&replaced, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 196 arch/powerpc/kernel/trace/ftrace.c if (probe_kernel_read(&op, (void *)(ip+4), MCOUNT_INSN_SIZE)) { MCOUNT_INSN_SIZE 225 arch/powerpc/kernel/trace/ftrace.c if (probe_kernel_read(&op, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 581 arch/powerpc/kernel/trace/ftrace.c if (probe_kernel_read(&op, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 27 arch/riscv/kernel/ftrace.c if (probe_kernel_read(replaced, (void *)hook_pos, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 55 arch/riscv/kernel/ftrace.c MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 61 arch/riscv/kernel/ftrace.c flush_icache_range((void *)hook_pos, (void *)hook_pos + MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 59 arch/s390/include/asm/ftrace.h insn->disp = MCOUNT_INSN_SIZE / 2; MCOUNT_INSN_SIZE 71 arch/s390/include/asm/ftrace.h if (insn->disp == MCOUNT_INSN_SIZE / 2) MCOUNT_INSN_SIZE 211 arch/s390/kernel/ftrace.c ip -= MCOUNT_INSN_SIZE; MCOUNT_INSN_SIZE 480 arch/s390/kernel/kprobes.c ip += call_insn.disp * 2 - MCOUNT_INSN_SIZE; MCOUNT_INSN_SIZE 27 arch/sh/kernel/ftrace.c static unsigned char ftrace_replaced_code[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 50 arch/sh/kernel/ftrace.c __raw_writel(ip + MCOUNT_INSN_SIZE, ftrace_nop); MCOUNT_INSN_SIZE 123 arch/sh/kernel/ftrace.c MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 195 arch/sh/kernel/ftrace.c unsigned char replaced[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 206 arch/sh/kernel/ftrace.c if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 210 arch/sh/kernel/ftrace.c if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) MCOUNT_INSN_SIZE 217 arch/sh/kernel/ftrace.c flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 225 arch/sh/kernel/ftrace.c unsigned char old[MCOUNT_INSN_SIZE], *new; MCOUNT_INSN_SIZE 227 arch/sh/kernel/ftrace.c memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 269 arch/sh/kernel/ftrace.c unsigned char code[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 271 arch/sh/kernel/ftrace.c if (probe_kernel_read(code, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 61 arch/x86/kernel/ftrace.c char code[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 79 arch/x86/kernel/ftrace.c calc.offset = ftrace_calc_offset(ip + MCOUNT_INSN_SIZE, addr); MCOUNT_INSN_SIZE 121 arch/x86/kernel/ftrace.c unsigned char replaced[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 134 arch/x86/kernel/ftrace.c if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 138 arch/x86/kernel/ftrace.c if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) MCOUNT_INSN_SIZE 144 arch/x86/kernel/ftrace.c if (probe_kernel_write((void *)ip, new_code, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 249 arch/x86/kernel/ftrace.c unsigned char old[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 252 arch/x86/kernel/ftrace.c memcpy(old, (void *)ip, MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 341 arch/x86/kernel/ftrace.c unsigned char replaced[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 344 arch/x86/kernel/ftrace.c if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 350 arch/x86/kernel/ftrace.c if (memcmp(replaced, old, MCOUNT_INSN_SIZE) != 0) MCOUNT_INSN_SIZE 411 arch/x86/kernel/ftrace.c unsigned char ins[MCOUNT_INSN_SIZE]; MCOUNT_INSN_SIZE 418 arch/x86/kernel/ftrace.c if (probe_kernel_read(ins, (void *)ip, MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 431 arch/x86/kernel/ftrace.c if (memcmp(&ins[1], &nop[1], MCOUNT_INSN_SIZE - 1) != 0) { MCOUNT_INSN_SIZE 441 arch/x86/kernel/ftrace.c if (memcmp(&ins[1], &nop[1], MCOUNT_INSN_SIZE - 1) == 0) MCOUNT_INSN_SIZE 450 arch/x86/kernel/ftrace.c if (memcmp(&ins[1], &nop[1], MCOUNT_INSN_SIZE - 1) != 0) MCOUNT_INSN_SIZE 463 arch/x86/kernel/ftrace.c return ftrace_write(ip, new, MCOUNT_INSN_SIZE - 1); MCOUNT_INSN_SIZE 907 arch/x86/kernel/ftrace.c ret = probe_kernel_read(&calc, ptr, MCOUNT_INSN_SIZE); MCOUNT_INSN_SIZE 917 arch/x86/kernel/ftrace.c return ptr + MCOUNT_INSN_SIZE + calc.offset; MCOUNT_INSN_SIZE 42 arch/x86/kernel/kprobes/ftrace.c regs->ip = (unsigned long)p->addr + MCOUNT_INSN_SIZE; MCOUNT_INSN_SIZE 1532 kernel/trace/ftrace.c if (key->ip >= rec->ip + MCOUNT_INSN_SIZE) MCOUNT_INSN_SIZE 1560 kernel/trace/ftrace.c start >= (pg->records[pg->index - 1].ip + MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 1958 kernel/trace/ftrace.c for (i = 0; i < MCOUNT_INSN_SIZE; i++) MCOUNT_INSN_SIZE 6148 kernel/trace/ftrace.c start >= (pg->records[pg->index - 1].ip + MCOUNT_INSN_SIZE)) MCOUNT_INSN_SIZE 287 kernel/trace/trace_stack.c #ifndef MCOUNT_INSN_SIZE MCOUNT_INSN_SIZE 308 kernel/trace/trace_stack.c ip += MCOUNT_INSN_SIZE;