/linux-2.6.39/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 | 1405 adds out0 = -MCOUNT_INSN_SIZE, out0 1436 adds out0 = -MCOUNT_INSN_SIZE, out0
|
/linux-2.6.39/arch/x86/kernel/ |
D | ftrace.c | 67 char code[MCOUNT_INSN_SIZE]; 84 calc.offset = ftrace_calc_offset(ip + MCOUNT_INSN_SIZE, addr); in ftrace_call_replace() 164 MCOUNT_INSN_SIZE); in ftrace_mod_code() 272 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code() 285 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 289 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code() 327 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func() 330 memcpy(old, &ftrace_call, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func() 354 unsigned char code[MCOUNT_INSN_SIZE]; in ftrace_mod_jmp() 356 if (probe_kernel_read(code, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_mod_jmp() [all …]
|
D | entry_32.S | 1127 subl $MCOUNT_INSN_SIZE, %eax 1173 subl $MCOUNT_INSN_SIZE, %eax 1196 subl $MCOUNT_INSN_SIZE, %edx
|
D | entry_64.S | 80 subq $MCOUNT_INSN_SIZE, %rdi 120 subq $MCOUNT_INSN_SIZE, %rdi 141 subq $MCOUNT_INSN_SIZE, %rsi
|
/linux-2.6.39/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() 291 unsigned char code[MCOUNT_INSN_SIZE]; in ftrace_mod() [all …]
|
/linux-2.6.39/arch/powerpc/kernel/ |
D | ftrace.c | 57 if (probe_kernel_read(&replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 65 if (probe_kernel_write((void *)ip, &new, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 191 if (probe_kernel_read(&op, (void *)(ip+4), MCOUNT_INSN_SIZE)) in __ftrace_make_nop() 214 if (probe_kernel_write((void *)ip, &op, MCOUNT_INSN_SIZE)) in __ftrace_make_nop() 233 if (probe_kernel_read(&op, (void *)ip, MCOUNT_INSN_SIZE)) in __ftrace_make_nop() 288 if (probe_kernel_write((void *)ip, &op, MCOUNT_INSN_SIZE)) in __ftrace_make_nop() 356 if (probe_kernel_read(op, (void *)ip, MCOUNT_INSN_SIZE * 2)) in __ftrace_make_call() 388 if (probe_kernel_write((void *)ip, op, MCOUNT_INSN_SIZE * 2)) in __ftrace_make_call() 403 if (probe_kernel_read(&op, (void *)ip, MCOUNT_INSN_SIZE)) in __ftrace_make_call() 428 if (probe_kernel_write((void *)ip, &op, MCOUNT_INSN_SIZE)) in __ftrace_make_call()
|
D | entry_64.S | 970 subi r3, r3, MCOUNT_INSN_SIZE 998 subi r3, r3, MCOUNT_INSN_SIZE 1022 subi r4, r4, MCOUNT_INSN_SIZE
|
D | entry_32.S | 1317 subi r3, r3, MCOUNT_INSN_SIZE 1337 subi r3, r3, MCOUNT_INSN_SIZE 1359 subi r4, r4, MCOUNT_INSN_SIZE
|
/linux-2.6.39/arch/arm/kernel/ |
D | ftrace.c | 128 if (probe_kernel_read(&replaced, (void *)pc, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 134 if (probe_kernel_write((void *)pc, &new, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 137 flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); in ftrace_modify_code() 149 memcpy(&old, &ftrace_call, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func() 157 memcpy(&old, &ftrace_call_old, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func()
|
D | entry-common.S | 175 sub r0, r0, #MCOUNT_INSN_SIZE 186 sub r0, r0, #MCOUNT_INSN_SIZE 210 sub r1, r1, #MCOUNT_INSN_SIZE
|
/linux-2.6.39/arch/s390/include/asm/ |
D | ftrace.h | 13 #define MCOUNT_INSN_SIZE 12 macro 16 #define MCOUNT_INSN_SIZE 20 macro
|
/linux-2.6.39/arch/blackfin/kernel/ |
D | ftrace-entry.S | 58 r0 += -MCOUNT_INSN_SIZE; 151 r0 += -MCOUNT_INSN_SIZE; 194 r1 += -MCOUNT_INSN_SIZE;
|
/linux-2.6.39/arch/sparc/include/asm/ |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-2.6.39/arch/microblaze/include/asm/ |
D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
|
/linux-2.6.39/arch/ia64/include/asm/ |
D | ftrace.h | 5 #define MCOUNT_INSN_SIZE 32 /* sizeof mcount call */ macro
|
/linux-2.6.39/arch/arm/include/asm/ |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-2.6.39/arch/sh/include/asm/ |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-2.6.39/arch/blackfin/include/asm/ |
D | ftrace.h | 11 #define MCOUNT_INSN_SIZE 6 /* sizeof "[++sp] = rets; call __mcount;" */ macro
|
/linux-2.6.39/arch/x86/include/asm/ |
D | ftrace.h | 33 #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */ macro
|
/linux-2.6.39/arch/s390/kernel/ |
D | ftrace.c | 120 MCOUNT_INSN_SIZE)) in ftrace_make_nop()
|
/linux-2.6.39/arch/powerpc/include/asm/ |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-2.6.39/arch/mips/include/asm/ |
D | ftrace.h | 16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-2.6.39/arch/mips/kernel/ |
D | ftrace.c | 315 trace.func = self_ra - (MCOUNT_INSN_SIZE * insns); in prepare_ftrace_return()
|
/linux-2.6.39/Documentation/trace/ |
D | ftrace-design.txt | 94 unsigned long selfpc = <return address> - MCOUNT_INSN_SIZE; 179 unsigned long selfpc = <return address> - MCOUNT_INSN_SIZE; 336 unsigned long selfpc = <return address> - MCOUNT_INSN_SIZE;
|