Home
last modified time | relevance | path

Searched refs:MCOUNT_INSN_SIZE (Results 1 – 25 of 26) sorted by relevance

12

/linux-2.6.39/arch/ia64/kernel/
Dftrace.c22 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 …]
Dentry.S1405 adds out0 = -MCOUNT_INSN_SIZE, out0
1436 adds out0 = -MCOUNT_INSN_SIZE, out0
/linux-2.6.39/arch/x86/kernel/
Dftrace.c67 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 …]
Dentry_32.S1127 subl $MCOUNT_INSN_SIZE, %eax
1173 subl $MCOUNT_INSN_SIZE, %eax
1196 subl $MCOUNT_INSN_SIZE, %edx
Dentry_64.S80 subq $MCOUNT_INSN_SIZE, %rdi
120 subq $MCOUNT_INSN_SIZE, %rdi
141 subq $MCOUNT_INSN_SIZE, %rsi
/linux-2.6.39/arch/sh/kernel/
Dftrace.c26 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/
Dftrace.c57 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()
Dentry_64.S970 subi r3, r3, MCOUNT_INSN_SIZE
998 subi r3, r3, MCOUNT_INSN_SIZE
1022 subi r4, r4, MCOUNT_INSN_SIZE
Dentry_32.S1317 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/
Dftrace.c128 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()
Dentry-common.S175 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/
Dftrace.h13 #define MCOUNT_INSN_SIZE 12 macro
16 #define MCOUNT_INSN_SIZE 20 macro
/linux-2.6.39/arch/blackfin/kernel/
Dftrace-entry.S58 r0 += -MCOUNT_INSN_SIZE;
151 r0 += -MCOUNT_INSN_SIZE;
194 r1 += -MCOUNT_INSN_SIZE;
/linux-2.6.39/arch/sparc/include/asm/
Dftrace.h6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-2.6.39/arch/microblaze/include/asm/
Dftrace.h7 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
/linux-2.6.39/arch/ia64/include/asm/
Dftrace.h5 #define MCOUNT_INSN_SIZE 32 /* sizeof mcount call */ macro
/linux-2.6.39/arch/arm/include/asm/
Dftrace.h6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-2.6.39/arch/sh/include/asm/
Dftrace.h6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-2.6.39/arch/blackfin/include/asm/
Dftrace.h11 #define MCOUNT_INSN_SIZE 6 /* sizeof "[++sp] = rets; call __mcount;" */ macro
/linux-2.6.39/arch/x86/include/asm/
Dftrace.h33 #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */ macro
/linux-2.6.39/arch/s390/kernel/
Dftrace.c120 MCOUNT_INSN_SIZE)) in ftrace_make_nop()
/linux-2.6.39/arch/powerpc/include/asm/
Dftrace.h6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-2.6.39/arch/mips/include/asm/
Dftrace.h16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-2.6.39/arch/mips/kernel/
Dftrace.c315 trace.func = self_ra - (MCOUNT_INSN_SIZE * insns); in prepare_ftrace_return()
/linux-2.6.39/Documentation/trace/
Dftrace-design.txt94 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;

12