/Linux-v5.4/Documentation/trace/ |
D | ftrace-design.rst | 37 You will need to implement the mcount and the ftrace_stub functions. 39 The exact mcount symbol name will depend on your toolchain. Some call it 40 "mcount", "_mcount", or even "__mcount". You can probably figure it out by 43 $ echo 'main(){}' | gcc -x c -S -o - - -pg | grep mcount 44 call mcount 46 We'll make the assumption below that the symbol is "mcount" just to keep things 49 Keep in mind that the ABI that is in effect inside of the mcount function is 54 mcount call (before/after function prologue). You might also want to look at 55 how glibc has implemented the mcount function for your architecture. It might 58 The mcount function should check the function pointer ftrace_trace_function [all …]
|
/Linux-v5.4/arch/sparc/lib/ |
D | mcount.S | 22 .globl mcount 23 .type mcount,#function 25 mcount: label 70 .size mcount,.-mcount
|
D | Makefile | 52 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
|
/Linux-v5.4/arch/um/kernel/ |
D | gprof_syms.c | 8 extern void mcount(void); 9 EXPORT_SYMBOL(mcount);
|
/Linux-v5.4/net/dsa/ |
D | master.c | 150 int mcount = 0, count; in dsa_master_get_strings() local 161 mcount = phy_ethtool_get_sset_count(dev->phydev); in dsa_master_get_strings() 162 if (mcount < 0) in dsa_master_get_strings() 163 mcount = 0; in dsa_master_get_strings() 167 mcount = ops->get_sset_count(dev, stringset); in dsa_master_get_strings() 168 if (mcount < 0) in dsa_master_get_strings() 169 mcount = 0; in dsa_master_get_strings() 174 ndata = data + mcount * len; in dsa_master_get_strings()
|
/Linux-v5.4/arch/parisc/include/asm/ |
D | ftrace.h | 6 extern void mcount(void); 8 #define MCOUNT_ADDR ((unsigned long)mcount)
|
/Linux-v5.4/arch/ia64/include/asm/ |
D | ftrace.h | 10 #define mcount _mcount macro 13 #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
|
/Linux-v5.4/arch/sh/include/asm/ |
D | ftrace.h | 11 extern void mcount(void); 13 #define MCOUNT_ADDR ((unsigned long)(mcount))
|
/Linux-v5.4/arch/riscv/kernel/ |
D | Makefile | 38 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 39 obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
|
/Linux-v5.4/arch/sh/lib/ |
D | mcount.S | 82 .globl mcount 83 .type mcount,@function 85 mcount: label
|
D | Makefile | 31 lib-$(CONFIG_MCOUNT) += mcount.o
|
/Linux-v5.4/arch/xtensa/include/asm/ |
D | ftrace.h | 36 #define mcount _mcount macro
|
/Linux-v5.4/arch/csky/abiv2/ |
D | Makefile | 12 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
|
/Linux-v5.4/arch/arm/include/asm/ |
D | ftrace.h | 14 extern void mcount(void);
|
/Linux-v5.4/drivers/mtd/nand/onenand/ |
D | samsung.c | 383 int i, mcount, scount; in s3c_onenand_command() local 416 mcount = mtd->writesize >> 2; in s3c_onenand_command() 422 for (i = 0; i < mcount; i++) in s3c_onenand_command() 429 for (i = 0; i < mcount; i++) in s3c_onenand_command() 441 for (i = 0; i < mcount; i++) in s3c_onenand_command() 449 for (i = 0; i < mcount; i++) in s3c_onenand_command()
|
/Linux-v5.4/arch/powerpc/kernel/trace/ |
D | ftrace_64.S | 25 _GLOBAL(mcount)
|
D | ftrace_32.S | 13 _GLOBAL(mcount)
|
/Linux-v5.4/arch/mips/include/asm/ |
D | ftrace.h | 20 #define mcount _mcount macro
|
/Linux-v5.4/arch/microblaze/kernel/ |
D | Makefile | 27 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
|
/Linux-v5.4/arch/xtensa/kernel/ |
D | Makefile | 14 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
|
/Linux-v5.4/arch/sh/kernel/ |
D | sh_ksyms_32.c | 100 DECLARE_EXPORT(mcount);
|
/Linux-v5.4/arch/s390/kernel/ |
D | Makefile | 65 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
/Linux-v5.4/scripts/ |
D | recordmcount.h | 275 char const *mcount = gpfx == '_' ? "_mcount" : "mcount"; in get_mcountsym() local 280 if (strcmp(mcount, symname) == 0 || in get_mcountsym()
|
/Linux-v5.4/arch/s390/ |
D | Makefile | 106 ifeq ($(call cc-option-yn,-mfentry -mnop-mcount),n)
|
/Linux-v5.4/arch/mips/kernel/ |
D | Makefile | 37 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|