/linux-4.4.14/arch/ia64/kernel/ |
D | ftrace.c | 22 ftrace_orig_code[MCOUNT_INSN_SIZE] = { 41 static unsigned char ftrace_nop_code[MCOUNT_INSN_SIZE] = { 60 ftrace_call_code[MCOUNT_INSN_SIZE] = { 97 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code() 113 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 117 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code() 122 if (probe_kernel_write(((void *)ip), new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 124 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code() 131 unsigned char __attribute__((aligned(8))) replaced[MCOUNT_INSN_SIZE]; in ftrace_make_nop_check() 134 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_make_nop_check() [all …]
|
D | entry.S | 1385 adds out0 = -MCOUNT_INSN_SIZE, out0 1416 adds out0 = -MCOUNT_INSN_SIZE, out0
|
/linux-4.4.14/arch/sh/kernel/ |
D | ftrace.c | 26 static unsigned char ftrace_replaced_code[MCOUNT_INSN_SIZE]; 49 __raw_writel(ip + MCOUNT_INSN_SIZE, ftrace_nop); in ftrace_nop_replace() 135 MCOUNT_INSN_SIZE); in ftrace_mod_code() 212 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code() 225 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 229 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code() 236 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code() 244 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func() 246 memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func() 288 unsigned char code[MCOUNT_INSN_SIZE]; in ftrace_mod() [all …]
|
/linux-4.4.14/arch/x86/kernel/ |
D | ftrace.c | 49 char code[MCOUNT_INSN_SIZE]; 66 calc.offset = ftrace_calc_offset(ip + MCOUNT_INSN_SIZE, addr); in ftrace_call_replace() 106 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code_direct() 119 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code_direct() 123 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code_direct() 129 if (probe_kernel_write((void *)ip, new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code_direct() 230 unsigned char old[MCOUNT_INSN_SIZE]; in update_ftrace_func() 233 memcpy(old, (void *)ip, MCOUNT_INSN_SIZE); in update_ftrace_func() 294 regs->ip += MCOUNT_INSN_SIZE - 1; in ftrace_int3_handler() 311 unsigned char replaced[MCOUNT_INSN_SIZE]; in add_break() [all …]
|
D | mcount_64.S | 129 subq $MCOUNT_INSN_SIZE, %rdi
|
/linux-4.4.14/arch/metag/kernel/ |
D | ftrace.c | 54 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code() 66 if (probe_kernel_read(replaced, (void *)pc, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 70 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code() 74 if (probe_kernel_write((void *)pc, new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 77 flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); in ftrace_modify_code() 86 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func() 89 memcpy(old, &ftrace_call, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func()
|
D | ftrace_stub.S | 22 SUB D1Ar1,D1Ar1,#MCOUNT_INSN_SIZE 49 SUB D1Ar1,D1Ar1,#MCOUNT_INSN_SIZE
|
/linux-4.4.14/arch/s390/include/asm/ |
D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 6 macro 9 #define MCOUNT_INSN_SIZE 24 macro 51 insn->disp = MCOUNT_INSN_SIZE / 2; in ftrace_generate_nop_insn() 63 if (insn->disp == MCOUNT_INSN_SIZE / 2) in is_ftrace_nop()
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | ftrace-entry.S | 49 r0 += -MCOUNT_INSN_SIZE; 133 r0 += -MCOUNT_INSN_SIZE; 176 r1 += -MCOUNT_INSN_SIZE;
|
/linux-4.4.14/arch/tile/kernel/ |
D | ftrace.c | 122 if (probe_kernel_write((void *)pc_wr, &new, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 128 flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); in ftrace_modify_code() 140 memcpy(&old, &ftrace_call, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func()
|
/linux-4.4.14/arch/arm/kernel/ |
D | ftrace.c | 116 if (probe_kernel_read(&replaced, (void *)pc, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 123 if (probe_kernel_write((void *)pc, &new, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 126 flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); in ftrace_modify_code()
|
D | entry-ftrace.S | 62 sub \rd, \rd, #MCOUNT_INSN_SIZE
|
/linux-4.4.14/arch/s390/kernel/ |
D | mcount.S | 39 aghik %r2,%r0,-MCOUNT_INSN_SIZE 44 aghi %r2,-MCOUNT_INSN_SIZE
|
D | ftrace.c | 206 ip = (ip & PSW_ADDR_INSN) - MCOUNT_INSN_SIZE; in prepare_ftrace_return()
|
D | kprobes.c | 509 ip += call_insn.disp * 2 - MCOUNT_INSN_SIZE; in resume_execution()
|
/linux-4.4.14/arch/metag/include/asm/ |
D | ftrace.h | 5 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/microblaze/include/asm/ |
D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/tile/include/asm/ |
D | ftrace.h | 21 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | ftrace.h | 17 #define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE macro
|
/linux-4.4.14/arch/ia64/include/asm/ |
D | ftrace.h | 5 #define MCOUNT_INSN_SIZE 32 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | ftrace.h | 32 #define MCOUNT_INSN_SIZE 3 macro
|
/linux-4.4.14/arch/arm/include/asm/ |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/x86/include/asm/ |
D | ftrace.h | 10 #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/sh/include/asm/ |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | ftrace.c | 60 if (probe_kernel_read(&replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 179 if (probe_kernel_read(&op, (void *)ip, MCOUNT_INSN_SIZE)) in __ftrace_make_nop() 341 if (probe_kernel_read(&op, (void *)ip, MCOUNT_INSN_SIZE)) in __ftrace_make_call()
|
D | entry_64.S | 1218 subi r3, r3, MCOUNT_INSN_SIZE 1243 subi r3, r3, MCOUNT_INSN_SIZE 1267 subi r4, r4, MCOUNT_INSN_SIZE
|
D | entry_32.S | 1311 subi r3, r3, MCOUNT_INSN_SIZE 1331 subi r3, r3, MCOUNT_INSN_SIZE 1353 subi r4, r4, MCOUNT_INSN_SIZE
|
/linux-4.4.14/arch/blackfin/include/asm/ |
D | ftrace.h | 11 #define MCOUNT_INSN_SIZE 6 /* sizeof "[++sp] = rets; call __mcount;" */ macro
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | mcount.S | 40 addi a6, a6, -MCOUNT_INSN_SIZE
|
/linux-4.4.14/arch/mips/include/asm/ |
D | ftrace.h | 16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-4.4.14/arch/x86/kernel/kprobes/ |
D | ftrace.c | 36 regs->ip = (unsigned long)p->addr + MCOUNT_INSN_SIZE; in __skip_singlestep()
|
/linux-4.4.14/arch/x86/entry/ |
D | entry_32.S | 752 subl $MCOUNT_INSN_SIZE, %eax 805 subl $MCOUNT_INSN_SIZE, %eax /* Adjust ip */ 862 subl $MCOUNT_INSN_SIZE, %eax 882 subl $MCOUNT_INSN_SIZE, %eax
|
/linux-4.4.14/arch/mips/kernel/ |
D | ftrace.c | 398 trace.func = self_ra - (MCOUNT_INSN_SIZE * insns); in prepare_ftrace_return()
|
/linux-4.4.14/Documentation/trace/ |
D | ftrace-design.txt | 94 unsigned long selfpc = <return address> - MCOUNT_INSN_SIZE; 155 unsigned long selfpc = <return address> - MCOUNT_INSN_SIZE; 310 unsigned long selfpc = <return address> - MCOUNT_INSN_SIZE;
|
/linux-4.4.14/kernel/trace/ |
D | trace_stack.c | 214 ip += MCOUNT_INSN_SIZE; in stack_trace_call()
|
D | ftrace.c | 1560 if (key->ip >= rec->ip + MCOUNT_INSN_SIZE) in ftrace_cmp_recs() 1576 start >= (pg->records[pg->index - 1].ip + MCOUNT_INSN_SIZE)) in ftrace_location_range() 1949 for (i = 0; i < MCOUNT_INSN_SIZE; i++) in print_ip_ins()
|