Lines Matching +full:ftrace +full:- +full:size
1 /* SPDX-License-Identifier: GPL-2.0 */
9 #include <asm/asm-offsets.h>
11 #include <asm/ftrace.h>
12 #include <asm/nospec-branch.h>
27 /* Size of stack used to save mcount regs in save_mcount_regs */
31 * gcc -pg option adds a call to 'mcount' in most functions.
32 * When -mfentry is used, the call is to 'fentry' and not 'mcount'
41 * it. For this reason, the size of the pt_regs structure will be
51 * %rdi - holds the address that called the trampoline
52 * %rsi - holds the parent function (traced function's return address)
53 * %rdx - holds the original %rbp
62 * Stack traces will stop at the ftrace trampoline if the frame pointer
96 movq MCOUNT_REG_SIZE-8(%rsp), %rdx
130 addq $MCOUNT_REG_SIZE-\save, %rsp
162 /* Stack - skipping return address of ftrace_caller */
233 /* Stack - skipping return address and flags */
266 movq %rax, MCOUNT_REG_SIZE-8(%rsp)
290 movq %rdi, MCOUNT_REG_SIZE-8(%rsp)
300 * doing a tail-call without using a register. This PUSH;RET
337 * set (see include/asm/ftrace.h and include/linux/ftrace.h). Only the