Home
last modified time | relevance | path

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

12

/linux/Documentation/trace/
H A 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/net/dsa/
H A Dconduit.c115 int count, mcount = 0; in dsa_conduit_get_ethtool_stats() local
119 mcount = ops->get_sset_count(dev, ETH_SS_STATS); in dsa_conduit_get_ethtool_stats()
129 data, mcount); in dsa_conduit_get_ethtool_stats()
133 mcount += count; in dsa_conduit_get_ethtool_stats()
240 int count, mcount = 0; in dsa_conduit_get_strings() local
245 mcount = phy_ethtool_get_sset_count(dev->phydev); in dsa_conduit_get_strings()
246 if (mcount < 0) in dsa_conduit_get_strings()
247 mcount = 0; in dsa_conduit_get_strings()
251 mcount = ops->get_sset_count(dev, stringset); in dsa_conduit_get_strings()
252 if (mcount < 0) in dsa_conduit_get_strings()
[all …]
/linux/arch/sparc/lib/
H A Dmcount.S22 .globl mcount symbol
23 .type mcount,#function
25 mcount: label
70 .size mcount,.-mcount
/linux/arch/um/kernel/
H A Dgprof_syms.c8 extern void mcount(void);
9 EXPORT_SYMBOL(mcount);
/linux/arch/parisc/include/asm/
H A Dftrace.h6 extern void mcount(void);
8 #define MCOUNT_ADDR ((unsigned long)mcount)
/linux/arch/sh/include/asm/
H A Dftrace.h11 extern void mcount(void);
13 #define MCOUNT_ADDR ((unsigned long)(mcount))
/linux/include/linux/
H A Drethook.h65 void rethook_hook(struct rethook_node *node, struct pt_regs *regs, bool mcount);
70 void arch_rethook_prepare(struct rethook_node *node, struct pt_regs *regs, bool mcount);
/linux/arch/sh/lib/
H A Dmcount.S82 .globl mcount symbol
83 .type mcount,@function
85 mcount: label
H A DMakefile29 lib-$(CONFIG_MCOUNT) += mcount.o
/linux/tools/objtool/
H A Dbuiltin-check.c81 OPT_BOOLEAN('m', "mcount", &opts.mcount, "annotate mcount/fentry calls for ftrace"),
148 if (opts.mnop && !opts.mcount) { in opts_valid()
185 opts.mcount || in opts_valid()
/linux/arch/s390/kernel/
H A DMakefile61 obj-$(CONFIG_KPROBES) += mcount.o
64 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
H A Drethook.c6 void arch_rethook_prepare(struct rethook_node *rh, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument
/linux/drivers/mtd/nand/onenand/
H A 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/arch/riscv/kernel/probes/
H A Drethook.h6 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount);
H A Drethook.c18 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument
/linux/arch/loongarch/kernel/
H A Drethook.h6 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount);
H A Drethook.c17 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument
/linux/arch/xtensa/include/asm/
H A Dftrace.h27 #define mcount _mcount macro
/linux/kernel/trace/
H A Drethook.c197 void rethook_hook(struct rethook_node *node, struct pt_regs *regs, bool mcount) in rethook_hook() argument
199 arch_rethook_prepare(node, regs, mcount); in rethook_hook()
/linux/arch/csky/abiv2/
H A DMakefile14 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
/linux/arch/riscv/kernel/
H A DMakefile98 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
99 obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
/linux/tools/objtool/include/objtool/
H A Dbuiltin.h19 bool mcount; member
/linux/arch/powerpc/kernel/
H A Drethook.c31 void arch_rethook_prepare(struct rethook_node *rh, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument
/linux/arch/microblaze/kernel/
H A DMakefile26 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
/linux/arch/x86/kernel/
H A Drethook.c117 void arch_rethook_prepare(struct rethook_node *rh, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument

12