Home
last modified time | relevance | path

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

12

/Linux-v6.1/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-v6.1/arch/sparc/lib/
Dmcount.S22 .globl mcount
23 .type mcount,#function
25 mcount: label
70 .size mcount,.-mcount
/Linux-v6.1/arch/um/kernel/
Dgprof_syms.c8 extern void mcount(void);
9 EXPORT_SYMBOL(mcount);
/Linux-v6.1/arch/parisc/include/asm/
Dftrace.h6 extern void mcount(void);
8 #define MCOUNT_ADDR ((unsigned long)mcount)
/Linux-v6.1/arch/ia64/include/asm/
Dftrace.h10 #define mcount _mcount macro
13 #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
/Linux-v6.1/net/dsa/
Dmaster.c150 int mcount = 0, count, i; in dsa_master_get_strings() local
160 mcount = phy_ethtool_get_sset_count(dev->phydev); in dsa_master_get_strings()
161 if (mcount < 0) in dsa_master_get_strings()
162 mcount = 0; in dsa_master_get_strings()
166 mcount = ops->get_sset_count(dev, stringset); in dsa_master_get_strings()
167 if (mcount < 0) in dsa_master_get_strings()
168 mcount = 0; in dsa_master_get_strings()
173 ndata = data + mcount * len; in dsa_master_get_strings()
/Linux-v6.1/arch/sh/include/asm/
Dftrace.h11 extern void mcount(void);
13 #define MCOUNT_ADDR ((unsigned long)(mcount))
/Linux-v6.1/include/linux/
Drethook.h66 void rethook_hook(struct rethook_node *node, struct pt_regs *regs, bool mcount);
71 void arch_rethook_prepare(struct rethook_node *node, struct pt_regs *regs, bool mcount);
/Linux-v6.1/arch/sh/lib/
Dmcount.S82 .globl mcount
83 .type mcount,@function
85 mcount: label
DMakefile31 lib-$(CONFIG_MCOUNT) += mcount.o
/Linux-v6.1/tools/objtool/
Dbuiltin-check.c67 OPT_BOOLEAN('m', "mcount", &opts.mcount, "annotate mcount/fentry calls for ftrace"),
124 opts.mcount || in opts_valid()
/Linux-v6.1/arch/riscv/kernel/
DMakefile68 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
69 obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
/Linux-v6.1/arch/s390/kernel/
DMakefile60 obj-$(CONFIG_KPROBES) += mcount.o
62 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
/Linux-v6.1/arch/xtensa/include/asm/
Dftrace.h36 #define mcount _mcount macro
/Linux-v6.1/tools/objtool/include/objtool/
Dbuiltin.h18 bool mcount; member
/Linux-v6.1/arch/csky/abiv2/
DMakefile14 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
/Linux-v6.1/drivers/mtd/nand/onenand/
Donenand_samsung.c383 int i, mcount, scount; in s3c_onenand_command() local
417 mcount = mtd->writesize >> 2; in s3c_onenand_command()
423 for (i = 0; i < mcount; i++) in s3c_onenand_command()
430 for (i = 0; i < mcount; i++) in s3c_onenand_command()
442 for (i = 0; i < mcount; i++) in s3c_onenand_command()
450 for (i = 0; i < mcount; i++) in s3c_onenand_command()
/Linux-v6.1/kernel/trace/
Drethook.c189 void rethook_hook(struct rethook_node *node, struct pt_regs *regs, bool mcount) in rethook_hook() argument
191 arch_rethook_prepare(node, regs, mcount); in rethook_hook()
/Linux-v6.1/arch/riscv/include/asm/
Dftrace.h23 #define MCOUNT_NAME mcount
/Linux-v6.1/arch/x86/kernel/
Drethook.c117 void arch_rethook_prepare(struct rethook_node *rh, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument
/Linux-v6.1/arch/mips/include/asm/
Dftrace.h20 #define mcount _mcount macro
/Linux-v6.1/arch/microblaze/kernel/
DMakefile27 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
/Linux-v6.1/arch/powerpc/kernel/trace/
Dftrace_low.S27 _GLOBAL(mcount)
/Linux-v6.1/arch/xtensa/kernel/
DMakefile15 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
/Linux-v6.1/arch/sh/kernel/
Dsh_ksyms_32.c117 DECLARE_EXPORT(mcount);

12