Home
last modified time | relevance | path

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

12

/linux-6.6.21/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-6.6.21/arch/sparc/lib/
Dmcount.S22 .globl mcount
23 .type mcount,#function
25 mcount: label
70 .size mcount,.-mcount
/linux-6.6.21/arch/um/kernel/
Dgprof_syms.c8 extern void mcount(void);
9 EXPORT_SYMBOL(mcount);
/linux-6.6.21/net/dsa/
Dmaster.c158 int mcount = 0, count, i; in dsa_master_get_strings() local
168 mcount = phy_ethtool_get_sset_count(dev->phydev); in dsa_master_get_strings()
169 if (mcount < 0) in dsa_master_get_strings()
170 mcount = 0; in dsa_master_get_strings()
174 mcount = ops->get_sset_count(dev, stringset); in dsa_master_get_strings()
175 if (mcount < 0) in dsa_master_get_strings()
176 mcount = 0; in dsa_master_get_strings()
181 ndata = data + mcount * len; in dsa_master_get_strings()
/linux-6.6.21/arch/ia64/include/asm/
Dftrace.h10 #define mcount _mcount macro
13 #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
/linux-6.6.21/arch/parisc/include/asm/
Dftrace.h6 extern void mcount(void);
8 #define MCOUNT_ADDR ((unsigned long)mcount)
/linux-6.6.21/arch/sh/include/asm/
Dftrace.h11 extern void mcount(void);
13 #define MCOUNT_ADDR ((unsigned long)(mcount))
/linux-6.6.21/include/linux/
Drethook.h72 void rethook_hook(struct rethook_node *node, struct pt_regs *regs, bool mcount);
77 void arch_rethook_prepare(struct rethook_node *node, struct pt_regs *regs, bool mcount);
/linux-6.6.21/tools/objtool/
Dbuiltin-check.c72 OPT_BOOLEAN('m', "mcount", &opts.mcount, "annotate mcount/fentry calls for ftrace"),
137 opts.mcount || in opts_valid()
168 if (opts.mnop && !opts.mcount) { in mnop_opts_valid()
/linux-6.6.21/arch/sh/lib/
Dmcount.S82 .globl mcount
83 .type mcount,@function
85 mcount: label
/linux-6.6.21/arch/loongarch/kernel/
Drethook.h6 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount);
Drethook.c17 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument
/linux-6.6.21/arch/riscv/kernel/probes/
Drethook.h6 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount);
Drethook.c18 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument
/linux-6.6.21/arch/xtensa/include/asm/
Dftrace.h27 #define mcount _mcount macro
/linux-6.6.21/arch/s390/kernel/
DMakefile61 obj-$(CONFIG_KPROBES) += mcount.o
64 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
Drethook.c6 void arch_rethook_prepare(struct rethook_node *rh, struct pt_regs *regs, bool mcount) in arch_rethook_prepare() argument
/linux-6.6.21/arch/riscv/kernel/
DMakefile78 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
79 obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
/linux-6.6.21/arch/csky/abiv2/
DMakefile14 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
/linux-6.6.21/tools/objtool/include/objtool/
Dbuiltin.h17 bool mcount; member
/linux-6.6.21/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-6.6.21/kernel/trace/
Drethook.c207 void rethook_hook(struct rethook_node *node, struct pt_regs *regs, bool mcount) in rethook_hook() argument
209 arch_rethook_prepare(node, regs, mcount); in rethook_hook()
/linux-6.6.21/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-6.6.21/arch/microblaze/kernel/
DMakefile27 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
/linux-6.6.21/arch/mips/include/asm/
Dftrace.h20 #define mcount _mcount macro

12