/kernel/linux/linux-6.6/arch/sh/kernel/ |
H A D | sh_ksyms_32.c | 117 DECLARE_EXPORT(mcount); variable
|
/kernel/linux/linux-6.6/arch/sparc/lib/ |
H A D | Makefile | 52 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | Makefile | 61 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | Makefile | 43 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | Makefile | 43 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/trace/ |
H A D | ftrace_entry.S | 192 * This function runs in the mcount context, between two functions. As 259 _GLOBAL(mcount)
|
/kernel/linux/linux-6.6/arch/s390/ |
H A D | Makefile | 98 ifeq ($(call cc-option,-mfentry -mnop-mcount),)
|
/kernel/linux/linux-5.10/scripts/ |
H A D | recordmcount.h | 158 * MIPS mcount long call has 2 _mcount symbols, only the position of the 1st 359 char const *mcount = gpfx == '_' ? "_mcount" : "mcount"; in get_mcountsym() local 364 if (strcmp(mcount, symname) == 0 || in get_mcountsym() 396 * Look at the relocations in order to find the calls to mcount. 448 * that are not going to be traced. The mcount calls here will be converted 479 printf("Section %s has mcount callers being ignored\n", in nop_mcount() 489 * If we successfully removed the mcount, mark the relocation in nop_mcount() 508 * the table of offsets of calls to mcount. A local or global symbol suffices, 510 * would invalidate the relocations of the offsets of the calls to mcount [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | recordmcount.h | 158 * MIPS mcount long call has 2 _mcount symbols, only the position of the 1st 359 char const *mcount = gpfx == '_' ? "_mcount" : "mcount"; in get_mcountsym() local 364 if (strcmp(mcount, symname) == 0 || in get_mcountsym() 396 * Look at the relocations in order to find the calls to mcount. 448 * that are not going to be traced. The mcount calls here will be converted 479 printf("Section %s has mcount callers being ignored\n", in nop_mcount() 489 * If we successfully removed the mcount, mark the relocation in nop_mcount() 508 * the table of offsets of calls to mcount. A local or global symbol suffices, 510 * would invalidate the relocations of the offsets of the calls to mcount [all...] |
/kernel/linux/linux-5.10/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 "pop {lr}" 80 @ before the push {lr} of the mcount mechanism
|
/kernel/linux/linux-5.10/arch/s390/ |
H A D | Makefile | 118 ifeq ($(call cc-option-yn,-mfentry -mnop-mcount),n)
|
/kernel/linux/linux-6.6/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
|
/kernel/linux/linux-5.10/arch/powerpc/xmon/ |
H A D | xmon.c | 3077 static unsigned long mcount; /* # bytes to affect */ variable 3089 scanhex((void *)&mcount); in memops() 3096 memmove((void *)mdest, (void *)msrc, mcount); in memops() 3103 memset((void *)mdest, mval, mcount); in memops() 3109 memdiffs((unsigned char *)mdest, (unsigned char *)msrc, mcount, mdiffs); in memops()
|
/kernel/linux/linux-5.10/ |
H A D | Makefile | 871 CC_FLAGS_FTRACE += -mrecord-mcount 873 ifeq ($(call cc-option-yn, -mnop-mcount),y) 874 CC_FLAGS_FTRACE += -mnop-mcount 1675 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
|
/kernel/linux/linux-6.6/ |
H A D | Makefile | 900 CC_FLAGS_FTRACE += -mrecord-mcount 902 ifeq ($(call cc-option-yn, -mnop-mcount),y) 903 CC_FLAGS_FTRACE += -mnop-mcount 1661 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
|
/kernel/linux/linux-6.6/arch/powerpc/xmon/ |
H A D | xmon.c | 3147 static unsigned long mcount; /* # bytes to affect */ variable 3159 scanhex((void *)&mcount); in memops() 3166 memmove((void *)mdest, (void *)msrc, mcount); in memops() 3173 memset((void *)mdest, mval, mcount); in memops() 3179 memdiffs((unsigned char *)mdest, (unsigned char *)msrc, mcount, mdiffs); in memops()
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | entry.S | 1984 ENTRY_CFI(mcount, caller) 1988 * The 64bit mcount() function pointer needs 4 dwords, of which the 1990 * calling mcount(), and 2 instructions for ftrace_stub(). That way we 2006 .dword mcount 2009 ENDPROC_CFI(mcount)
|
/kernel/linux/linux-6.6/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)
|
/kernel/linux/linux-6.6/rust/ |
H A D | Makefile | 282 -mfunction-return=thunk-extern -mrecord-mcount -mabi=lp64 \
|
/kernel/linux/linux-6.6/tools/objtool/ |
H A D | check.c | 1406 if (opts.mcount && sym->fentry) { in annotate_call_site() 4783 if (opts.mcount) { in check()
|