Home
last modified time | relevance | path

Searched refs:mcount (Results 1 – 32 of 32) sorted by relevance

/linux-4.4.14/Documentation/trace/
Dftrace-design.txt31 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 …]
Dftrace.txt187 function profiler (mcount). This lets tracing be configured
2100 this works is the mcount function call (placed at the start of
2108 the locations in the .text section that call mcount. (Note, only
2114 references to all the mcount call sites in the .text section.
2133 patched back to calls. But this time, they do not call mcount
2149 wish to trace and which ones we want the mcount calls to remain
/linux-4.4.14/arch/sparc/lib/
Dmcount.S19 .globl mcount
20 .type mcount,#function
22 mcount: label
67 .size mcount,.-mcount
DMakefile42 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
/linux-4.4.14/arch/um/kernel/
Dgprof_syms.c8 extern void mcount(void);
9 EXPORT_SYMBOL(mcount);
/linux-4.4.14/arch/ia64/include/asm/
Dftrace.h9 #define mcount _mcount macro
12 #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
/linux-4.4.14/arch/x86/include/asm/
Dftrace.h8 # define MCOUNT_ADDR ((unsigned long)(mcount))
17 extern void mcount(void);
/linux-4.4.14/arch/sh/include/asm/
Dftrace.h10 extern void mcount(void);
12 #define MCOUNT_ADDR ((unsigned long)(mcount))
/linux-4.4.14/arch/sh/lib/
Dmcount.S85 .globl mcount
86 .type mcount,@function
88 mcount: label
DMakefile30 lib-$(CONFIG_MCOUNT) += mcount.o
/linux-4.4.14/arch/parisc/include/asm/
Dftrace.h5 extern void mcount(void);
/linux-4.4.14/arch/xtensa/include/asm/
Dftrace.h36 #define mcount _mcount macro
/linux-4.4.14/arch/arm/include/asm/
Dftrace.h9 extern void mcount(void);
/linux-4.4.14/arch/x86/kernel/
Di386_ksyms_32.c10 EXPORT_SYMBOL(mcount);
Dx8664_ksyms_64.c20 EXPORT_SYMBOL(mcount);
Dmcount_64.S21 # define function_hook mcount
/linux-4.4.14/arch/arm/kernel/
Dentry-ftrace.S147 ENTRY(mcount)
155 ENDPROC(mcount)
Darmksyms.c169 EXPORT_SYMBOL(mcount);
Dftrace.c33 #define OLD_MCOUNT_ADDR ((unsigned long) mcount)
/linux-4.4.14/arch/mips/include/asm/
Dftrace.h20 #define mcount _mcount macro
/linux-4.4.14/arch/microblaze/kernel/
DMakefile29 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
/linux-4.4.14/arch/xtensa/kernel/
DMakefile14 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
/linux-4.4.14/drivers/mtd/onenand/
Dsamsung.c391 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.4.14/arch/sh/kernel/
Dsh_ksyms_32.c96 DECLARE_EXPORT(mcount);
/linux-4.4.14/arch/s390/kernel/
DMakefile62 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
/linux-4.4.14/arch/x86/entry/
Dentry_32.S740 ENTRY(mcount)
742 END(mcount)
838 ENTRY(mcount)
870 END(mcount)
/linux-4.4.14/scripts/
Drecordmcount.h263 char const *mcount = gpfx == '_' ? "_mcount" : "mcount"; in get_mcountsym() local
268 if (strcmp(mcount, symname) == 0 || in get_mcountsym()
/linux-4.4.14/arch/x86/
DMakefile_32.cpu49 # does stack alignment by generating horrible code _before_ the mcount
/linux-4.4.14/arch/mips/kernel/
DMakefile37 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
/linux-4.4.14/arch/powerpc/xmon/
Dxmon.c2406 static unsigned long mcount; /* # bytes to affect */ variable
2418 scanhex((void *)&mcount); in memops()
2421 memmove((void *)mdest, (void *)msrc, mcount); in memops()
2424 memset((void *)mdest, mval, mcount); in memops()
2430 memdiffs((unsigned char *)mdest, (unsigned char *)msrc, mcount, mdiffs); in memops()
/linux-4.4.14/arch/powerpc/kernel/
Dentry_32.S1293 _GLOBAL(mcount)
1326 _GLOBAL(mcount)
Dentry_64.S1207 _GLOBAL(mcount)