/linux-master/scripts/ |
H A D | Makefile.lib | 273 objtool-args-$(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL) += --mcount
|
/linux-master/rust/ |
H A D | Makefile | 274 -mfunction-return=thunk-extern -mrecord-mcount -mabi=lp64 \
|
/linux-master/kernel/trace/ |
H A D | rethook.c | 188 * @mcount: True if this is called from mcount(ftrace) context. 192 * entry.) @mcount is used for identifying the context. If this is called 193 * from ftrace (mcount) callback, @mcount must be set true. If this is called 194 * from the real function entry (e.g. kprobes) @mcount must be set false. 197 void rethook_hook(struct rethook_node *node, struct pt_regs *regs, bool mcount) argument 199 arch_rethook_prepare(node, regs, mcount);
|
/linux-master/ |
H A D | Makefile | 898 CC_FLAGS_FTRACE += -mrecord-mcount 900 ifeq ($(call cc-option-yn, -mnop-mcount),y) 901 CC_FLAGS_FTRACE += -mnop-mcount 1676 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
|
/linux-master/arch/powerpc/xmon/ |
H A D | xmon.c | 3145 static unsigned long mcount; /* # bytes to affect */ variable 3157 scanhex((void *)&mcount); 3164 memmove((void *)mdest, (void *)msrc, mcount); 3171 memset((void *)mdest, mval, mcount); 3177 memdiffs((unsigned char *)mdest, (unsigned char *)msrc, mcount, mdiffs);
|
/linux-master/arch/loongarch/kernel/ |
H A D | Makefile | 31 obj-y += mcount.o ftrace.o
|
H A D | rethook.c | 17 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount) argument
|
/linux-master/arch/arm/kernel/ |
H A D | entry-ftrace.S | 10 * When compiling with -pg, gcc inserts a call to the mcount routine at the 11 * start of every function. In mcount, apart from the function's address (in 14 * Newer GCCs (4.4+) solve this problem by using a version of mcount with call 22 * mcount can be thought of as a function called in the middle of a subroutine 24 * callee: the original lr needs to be restored when leaving mcount, and no 27 * When using dynamic ftrace, we patch out the mcount call by a "add sp, #4" 77 @ before the push {lr} of the mcount mechanism
|
/linux-master/arch/sh/include/asm/ |
H A D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ 11 extern void mcount(void); 13 #define MCOUNT_ADDR ((unsigned long)(mcount))
|
/linux-master/arch/s390/kernel/ |
H A D | Makefile | 63 obj-$(CONFIG_KPROBES) += mcount.o 66 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
|
/linux-master/arch/s390/ |
H A D | Makefile | 99 ifeq ($(call cc-option,-mfentry -mnop-mcount),)
|
/linux-master/tools/objtool/ |
H A D | check.c | 1409 if (opts.mcount && sym->fentry) { 4815 if (opts.mcount) {
|
/linux-master/arch/riscv/kernel/ |
H A D | Makefile | 83 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 84 obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
|
/linux-master/arch/sparc/lib/ |
H A D | Makefile | 51 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
|
H A D | mcount.S | 5 * This file implements mcount(), which is used to collect profiling data. 22 .globl mcount 23 .type mcount,#function 25 mcount: label 70 .size mcount,.-mcount
|
/linux-master/arch/loongarch/include/asm/ |
H A D | ftrace.h | 15 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ 21 #define mcount _mcount macro
|
/linux-master/arch/mips/include/asm/ |
H A D | ftrace.h | 16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ 20 #define mcount _mcount macro
|
/linux-master/arch/powerpc/kernel/trace/ |
H A D | ftrace_entry.S | 190 * This function runs in the mcount context, between two functions. As 257 _GLOBAL(mcount)
|
H A D | ftrace_64_pg_entry.S | 81 _GLOBAL(mcount)
|
/linux-master/arch/mips/kernel/ |
H A D | Makefile | 43 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
/linux-master/include/linux/ |
H A D | rethook.h | 65 void rethook_hook(struct rethook_node *node, struct pt_regs *regs, bool mcount); 70 void arch_rethook_prepare(struct rethook_node *node, struct pt_regs *regs, bool mcount);
|
/linux-master/arch/parisc/kernel/ |
H A D | entry.S | 1910 ENTRY_CFI(mcount, caller) 1914 * The 64bit mcount() function pointer needs 4 dwords, of which the 1916 * calling mcount(), and 2 instructions for ftrace_stub(). That way we 1932 .dword mcount 1935 ENDPROC_CFI(mcount)
|
/linux-master/net/dsa/ |
H A D | conduit.c | 158 int mcount = 0, count, i; local 168 mcount = phy_ethtool_get_sset_count(dev->phydev); 169 if (mcount < 0) 170 mcount = 0; 174 mcount = ops->get_sset_count(dev, stringset); 175 if (mcount < 0) 176 mcount = 0; 181 ndata = data + mcount * len;
|
/linux-master/drivers/mtd/nand/onenand/ |
H A D | onenand_samsung.c | 383 int i, mcount, scount; local 417 mcount = mtd->writesize >> 2; 423 for (i = 0; i < mcount; i++) 430 for (i = 0; i < mcount; i++) 442 for (i = 0; i < mcount; i++) 450 for (i = 0; i < mcount; i++)
|
/linux-master/arch/parisc/include/asm/ |
H A D | ftrace.h | 6 extern void mcount(void); 8 #define MCOUNT_ADDR ((unsigned long)mcount)
|