Home
last modified time | relevance | path

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

12

/linux-5.19.10/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()
111 if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
115 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code()
120 if (copy_to_kernel_nofault(((void *)ip), new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
122 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code()
129 unsigned char __attribute__((aligned(8))) replaced[MCOUNT_INSN_SIZE]; in ftrace_make_nop_check()
132 if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_make_nop_check()
[all …]
/linux-5.19.10/arch/sh/kernel/ !
Dftrace.c27 static unsigned char ftrace_replaced_code[MCOUNT_INSN_SIZE];
50 __raw_writel(ip + MCOUNT_INSN_SIZE, ftrace_nop); in ftrace_nop_replace()
123 MCOUNT_INSN_SIZE); in ftrace_mod_code()
195 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code()
206 if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
210 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code()
217 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code()
225 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func()
227 memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func()
264 unsigned char code[MCOUNT_INSN_SIZE]; in ftrace_mod()
[all …]
/linux-5.19.10/arch/x86/kernel/ !
Dftrace.c77 char cur_code[MCOUNT_INSN_SIZE]; in ftrace_verify_code()
87 if (copy_from_kernel_nofault(cur_code, (void *)ip, MCOUNT_INSN_SIZE)) { in ftrace_verify_code()
93 if (memcmp(cur_code, old_code, MCOUNT_INSN_SIZE) != 0) { in ftrace_verify_code()
117 text_poke_queue((void *)ip, new_code, MCOUNT_INSN_SIZE, NULL); in ftrace_modify_code_direct()
119 text_poke_early((void *)ip, new_code, MCOUNT_INSN_SIZE); in ftrace_modify_code_direct()
184 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_update_ftrace_func()
188 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_update_ftrace_func()
243 text_poke_queue((void *)rec->ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_replace_code()
499 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in arch_ftrace_update_trampoline()
596 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_mod_jmp()
Dftrace_32.S62 subl $MCOUNT_INSN_SIZE, %eax
134 subl $MCOUNT_INSN_SIZE, %eax
175 subl $MCOUNT_INSN_SIZE, %eax
/linux-5.19.10/arch/csky/kernel/probes/ !
Dftrace.c22 p = get_kprobe((kprobe_opcode_t *)(ip - MCOUNT_INSN_SIZE)); in kprobe_ftrace_handler()
35 ip -= MCOUNT_INSN_SIZE; in kprobe_ftrace_handler()
45 (unsigned long)p->addr + MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
/linux-5.19.10/arch/powerpc/kernel/ !
Dkprobes-ftrace.c41 regs_add_return_ip(regs, -MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
50 regs_add_return_ip(regs, MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
/linux-5.19.10/arch/powerpc/kernel/trace/ !
Dftrace_64_pg.S24 subi r3, r3, MCOUNT_INSN_SIZE
47 subi r4, r4, MCOUNT_INSN_SIZE
/linux-5.19.10/arch/xtensa/kernel/ !
Dmcount.S46 addi a6, a6, -MCOUNT_INSN_SIZE
67 addi a2, a10, -MCOUNT_INSN_SIZE
/linux-5.19.10/kernel/trace/ !
Dfgraph.c114 #ifndef MCOUNT_INSN_SIZE
117 # error MCOUNT_INSN_SIZE not defined with direct calls enabled
119 # define MCOUNT_INSN_SIZE 0 macro
135 ftrace_find_rec_direct(ret - MCOUNT_INSN_SIZE)) in function_graph_enter()
Dtrace_stack.c287 #ifndef MCOUNT_INSN_SIZE
288 # define MCOUNT_INSN_SIZE 0 macro
308 ip += MCOUNT_INSN_SIZE; in stack_trace_call()
/linux-5.19.10/arch/riscv/kernel/ !
Dftrace.c40 MCOUNT_INSN_SIZE)) in ftrace_check_current_call()
67 ((void *)hook_pos, enable ? call : nops, MCOUNT_INSN_SIZE)) in __ftrace_modify_call()
/linux-5.19.10/arch/microblaze/include/asm/ !
Dftrace.h8 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
/linux-5.19.10/arch/csky/include/asm/ !
Dftrace.h6 #define MCOUNT_INSN_SIZE 14 macro
/linux-5.19.10/arch/sparc/include/asm/ !
Dftrace.h7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-5.19.10/arch/parisc/include/asm/ !
Dftrace.h9 #define MCOUNT_INSN_SIZE 4 macro
/linux-5.19.10/arch/ia64/include/asm/ !
Dftrace.h6 #define MCOUNT_INSN_SIZE 32 /* sizeof mcount call */ macro
/linux-5.19.10/arch/xtensa/include/asm/ !
Dftrace.h32 #define MCOUNT_INSN_SIZE 3 macro
/linux-5.19.10/arch/sh/include/asm/ !
Dftrace.h7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-5.19.10/arch/arm/include/asm/ !
Dftrace.h13 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-5.19.10/arch/arm64/include/asm/ !
Dftrace.h33 #define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE macro
/linux-5.19.10/arch/riscv/include/asm/ !
Dftrace.h78 #define MCOUNT_INSN_SIZE 8 macro
/linux-5.19.10/arch/s390/kernel/ !
Dftrace.c268 ip -= MCOUNT_INSN_SIZE; in prepare_ftrace_return()
342 instruction_pointer_set(regs, ip + MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
/linux-5.19.10/arch/mips/include/asm/ !
Dftrace.h16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
/linux-5.19.10/arch/x86/kernel/kprobes/ !
Dftrace.c47 regs->ip = (unsigned long)p->addr + MCOUNT_INSN_SIZE; in kprobe_ftrace_handler()
/linux-5.19.10/arch/riscv/kernel/probes/ !
Dftrace.c39 (unsigned long)p->addr + MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()

12