/linux-4.1.27/Documentation/trace/ |
D | ftrace-design.txt | 31 You will need to implement the mcount and the ftrace_stub functions. 33 The exact mcount symbol name will depend on your toolchain. Some call it 34 "mcount", "_mcount", or even "__mcount". You can probably figure it out by 36 $ echo 'main(){}' | gcc -x c -S -o - - -pg | grep mcount 37 call mcount 38 We'll make the assumption below that the symbol is "mcount" just to keep things 41 Keep in mind that the ABI that is in effect inside of the mcount function is 46 mcount call (before/after function prologue). You might also want to look at 47 how glibc has implemented the mcount function for your architecture. It might 50 The mcount function should check the function pointer ftrace_trace_function [all …]
|
D | ftrace.txt | 187 function profiler (mcount). This lets tracing be configured 2064 this works is the mcount function call (placed at the start of 2072 the locations in the .text section that call mcount. (Note, only 2078 references to all the mcount call sites in the .text section. 2097 patched back to calls. But this time, they do not call mcount 2113 wish to trace and which ones we want the mcount calls to remain
|
/linux-4.1.27/arch/sparc/lib/ |
D | mcount.S | 19 .globl mcount 20 .type mcount,#function 22 mcount: label 67 .size mcount,.-mcount
|
D | Makefile | 42 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
|
/linux-4.1.27/arch/um/kernel/ |
D | gprof_syms.c | 8 extern void mcount(void); 9 EXPORT_SYMBOL(mcount);
|
/linux-4.1.27/arch/ia64/include/asm/ |
D | ftrace.h | 9 #define mcount _mcount macro 12 #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
|
/linux-4.1.27/arch/sh/include/asm/ |
D | ftrace.h | 10 extern void mcount(void); 12 #define MCOUNT_ADDR ((long)(mcount))
|
/linux-4.1.27/arch/x86/include/asm/ |
D | ftrace.h | 8 # define MCOUNT_ADDR ((long)(mcount)) 17 extern void mcount(void);
|
/linux-4.1.27/arch/sh/lib/ |
D | mcount.S | 85 .globl mcount 86 .type mcount,@function 88 mcount: label
|
D | Makefile | 30 lib-$(CONFIG_MCOUNT) += mcount.o
|
/linux-4.1.27/arch/parisc/include/asm/ |
D | ftrace.h | 5 extern void mcount(void);
|
/linux-4.1.27/arch/xtensa/include/asm/ |
D | ftrace.h | 36 #define mcount _mcount macro
|
/linux-4.1.27/arch/arm/include/asm/ |
D | ftrace.h | 9 extern void mcount(void);
|
/linux-4.1.27/arch/x86/kernel/ |
D | i386_ksyms_32.c | 10 EXPORT_SYMBOL(mcount);
|
D | x8664_ksyms_64.c | 20 EXPORT_SYMBOL(mcount);
|
D | entry_32.S | 1034 ENTRY(mcount) 1036 END(mcount) 1132 ENTRY(mcount) 1164 END(mcount)
|
D | mcount_64.S | 21 # define function_hook mcount
|
/linux-4.1.27/arch/arm/kernel/ |
D | entry-ftrace.S | 147 ENTRY(mcount) 155 ENDPROC(mcount)
|
D | armksyms.c | 163 EXPORT_SYMBOL(mcount);
|
D | ftrace.c | 33 #define OLD_MCOUNT_ADDR ((unsigned long) mcount)
|
/linux-4.1.27/arch/mips/include/asm/ |
D | ftrace.h | 20 #define mcount _mcount macro
|
/linux-4.1.27/arch/xtensa/kernel/ |
D | Makefile | 14 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
|
/linux-4.1.27/arch/microblaze/kernel/ |
D | Makefile | 29 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
|
/linux-4.1.27/drivers/mtd/onenand/ |
D | samsung.c | 391 int i, mcount, scount; in s3c_onenand_command() local 424 mcount = mtd->writesize >> 2; in s3c_onenand_command() 430 for (i = 0; i < mcount; i++) in s3c_onenand_command() 437 for (i = 0; i < mcount; i++) in s3c_onenand_command() 449 for (i = 0; i < mcount; i++) in s3c_onenand_command() 457 for (i = 0; i < mcount; i++) in s3c_onenand_command()
|
/linux-4.1.27/arch/sh/kernel/ |
D | sh_ksyms_32.c | 96 DECLARE_EXPORT(mcount);
|
/linux-4.1.27/arch/s390/kernel/ |
D | Makefile | 51 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
/linux-4.1.27/scripts/ |
D | recordmcount.h | 263 char const *mcount = gpfx == '_' ? "_mcount" : "mcount"; in get_mcountsym() local 268 if (strcmp(mcount, symname) == 0 || in get_mcountsym()
|
/linux-4.1.27/arch/x86/ |
D | Makefile_32.cpu | 49 # does stack alignment by generating horrible code _before_ the mcount
|
/linux-4.1.27/arch/mips/kernel/ |
D | Makefile | 37 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
/linux-4.1.27/arch/powerpc/xmon/ |
D | xmon.c | 2336 static unsigned long mcount; /* # bytes to affect */ variable 2348 scanhex((void *)&mcount); in memops() 2351 memmove((void *)mdest, (void *)msrc, mcount); in memops() 2354 memset((void *)mdest, mval, mcount); in memops() 2360 memdiffs((unsigned char *)mdest, (unsigned char *)msrc, mcount, mdiffs); in memops()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | entry_32.S | 1288 _GLOBAL(mcount) 1321 _GLOBAL(mcount)
|
D | entry_64.S | 1160 _GLOBAL(mcount)
|