Home
last modified time | relevance | path

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

12

/Linux-v4.19/Documentation/trace/
Dftrace-design.rst37 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-v4.19/net/dsa/
Dmaster.c90 int mcount = 0, count; in dsa_master_get_strings() local
101 mcount = phy_ethtool_get_sset_count(dev->phydev); in dsa_master_get_strings()
102 if (mcount < 0) in dsa_master_get_strings()
103 mcount = 0; in dsa_master_get_strings()
107 mcount = ops->get_sset_count(dev, stringset); in dsa_master_get_strings()
108 if (mcount < 0) in dsa_master_get_strings()
109 mcount = 0; in dsa_master_get_strings()
114 ndata = data + mcount * len; in dsa_master_get_strings()
/Linux-v4.19/arch/sparc/lib/
Dmcount.S22 .globl mcount
23 .type mcount,#function
25 mcount: label
70 .size mcount,.-mcount
DMakefile52 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
/Linux-v4.19/arch/um/kernel/
Dgprof_syms.c8 extern void mcount(void);
9 EXPORT_SYMBOL(mcount);
/Linux-v4.19/arch/ia64/include/asm/
Dftrace.h10 #define mcount _mcount macro
13 #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
/Linux-v4.19/arch/sh/include/asm/
Dftrace.h11 extern void mcount(void);
13 #define MCOUNT_ADDR ((unsigned long)(mcount))
/Linux-v4.19/arch/x86/include/asm/
Dftrace.h9 # define MCOUNT_ADDR ((unsigned long)(mcount))
21 extern void mcount(void);
/Linux-v4.19/arch/riscv/kernel/
DMakefile39 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
40 obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
/Linux-v4.19/arch/sh/lib/
Dmcount.S85 .globl mcount
86 .type mcount,@function
88 mcount: label
DMakefile31 lib-$(CONFIG_MCOUNT) += mcount.o
/Linux-v4.19/arch/parisc/include/asm/
Dftrace.h6 extern void mcount(void);
/Linux-v4.19/arch/xtensa/include/asm/
Dftrace.h36 #define mcount _mcount macro
/Linux-v4.19/arch/arm/include/asm/
Dftrace.h14 extern void mcount(void);
/Linux-v4.19/arch/x86/kernel/
Dftrace_32.S17 # define function_hook mcount
18 EXPORT_SYMBOL(mcount)
Dftrace_64.S20 # define function_hook mcount
21 EXPORT_SYMBOL(mcount)
/Linux-v4.19/arch/powerpc/kernel/trace/
Dftrace_64.S17 _GLOBAL(mcount)
Dftrace_32.S17 _GLOBAL(mcount)
/Linux-v4.19/arch/arm/kernel/
Dentry-ftrace.S103 @ before the push {lr} of the mcount mechanism
230 ENTRY(mcount)
238 ENDPROC(mcount)
Darmksyms.c171 EXPORT_SYMBOL(mcount);
/Linux-v4.19/drivers/mtd/nand/onenand/
Dsamsung.c386 int i, mcount, scount; in s3c_onenand_command() local
419 mcount = mtd->writesize >> 2; in s3c_onenand_command()
425 for (i = 0; i < mcount; i++) in s3c_onenand_command()
432 for (i = 0; i < mcount; i++) in s3c_onenand_command()
444 for (i = 0; i < mcount; i++) in s3c_onenand_command()
452 for (i = 0; i < mcount; i++) in s3c_onenand_command()
/Linux-v4.19/arch/microblaze/kernel/
DMakefile27 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
/Linux-v4.19/arch/mips/include/asm/
Dftrace.h20 #define mcount _mcount macro
/Linux-v4.19/arch/xtensa/kernel/
DMakefile14 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
/Linux-v4.19/arch/sh/kernel/
Dsh_ksyms_32.c100 DECLARE_EXPORT(mcount);

12