| /OK3568_Linux_fs/kernel/Documentation/trace/ |
| H A 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 …]
|
| /OK3568_Linux_fs/buildroot/package/uftrace/ |
| H A D | 0002-arch-arm-mcount-support.c-define-EF_ARM_VFP_FLOAT-wh.patch | 4 Subject: [PATCH] arch/arm/mcount-support.c: define EF_ARM_VFP_FLOAT when not 11 arch/arm/mcount-support.c | 4 ++++ 14 diff --git a/arch/arm/mcount-support.c b/arch/arm/mcount-support.c 16 --- a/arch/arm/mcount-support.c 17 +++ b/arch/arm/mcount-support.c
|
| /OK3568_Linux_fs/kernel/arch/sparc/lib/ |
| H A D | mcount.S | 22 .globl mcount symbol 23 .type mcount,#function 25 mcount: label 70 .size mcount,.-mcount
|
| H A D | Makefile | 52 lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
|
| /OK3568_Linux_fs/kernel/net/dsa/ |
| H A D | master.c | 150 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()
|
| /OK3568_Linux_fs/kernel/arch/um/kernel/ |
| H A D | gprof_syms.c | 8 extern void mcount(void); 9 EXPORT_SYMBOL(mcount);
|
| /OK3568_Linux_fs/kernel/arch/parisc/include/asm/ |
| H A D | ftrace.h | 6 extern void mcount(void); 8 #define MCOUNT_ADDR ((unsigned long)mcount)
|
| /OK3568_Linux_fs/kernel/arch/ia64/include/asm/ |
| H A D | ftrace.h | 10 #define mcount _mcount macro 13 #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
|
| /OK3568_Linux_fs/kernel/arch/sh/include/asm/ |
| H A D | ftrace.h | 11 extern void mcount(void); 13 #define MCOUNT_ADDR ((unsigned long)(mcount))
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/onenand/ |
| H A D | samsung.c | 278 int i, mcount, scount; in s3c_onenand_command() local 309 mcount = mtd->writesize >> 2; in s3c_onenand_command() 315 for (i = 0; i < mcount; i++) in s3c_onenand_command() 322 for (i = 0; i < mcount; i++) in s3c_onenand_command() 334 for (i = 0; i < mcount; i++) in s3c_onenand_command() 342 for (i = 0; i < mcount; i++) in s3c_onenand_command()
|
| /OK3568_Linux_fs/kernel/tools/objtool/ |
| H A D | builtin-check.c | 22 validate_dup, vmlinux, mcount, noinstr, sls, unret, rethunk; variable 42 OPT_BOOLEAN('M', "mcount", &mcount, "generate __mcount_loc"),
|
| H A D | builtin.h | 12 validate_dup, vmlinux, mcount, noinstr, sls, unret, rethunk;
|
| /OK3568_Linux_fs/kernel/arch/sh/lib/ |
| H A D | mcount.S | 82 .globl mcount symbol 83 .type mcount,@function 85 mcount: label
|
| H A D | Makefile | 31 lib-$(CONFIG_MCOUNT) += mcount.o
|
| /OK3568_Linux_fs/kernel/arch/riscv/kernel/ |
| H A D | Makefile | 44 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 45 obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/onenand/ |
| H A D | onenand_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()
|
| /OK3568_Linux_fs/kernel/arch/xtensa/include/asm/ |
| H A D | ftrace.h | 36 #define mcount _mcount macro
|
| /OK3568_Linux_fs/kernel/arch/csky/abiv2/ |
| H A D | Makefile | 12 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
|
| /OK3568_Linux_fs/kernel/arch/riscv/include/asm/ |
| H A D | ftrace.h | 23 #define MCOUNT_NAME mcount
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/trace/ |
| H A D | ftrace_64.S | 25 _GLOBAL(mcount)
|
| H A D | ftrace_32.S | 13 _GLOBAL(mcount)
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/ |
| H A D | ftrace.h | 20 #define mcount _mcount macro
|
| /OK3568_Linux_fs/kernel/arch/microblaze/kernel/ |
| H A D | Makefile | 27 obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
|
| /OK3568_Linux_fs/kernel/arch/xtensa/kernel/ |
| H A D | Makefile | 15 obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
|
| /OK3568_Linux_fs/kernel/arch/sh/kernel/ |
| H A D | sh_ksyms_32.c | 117 DECLARE_EXPORT(mcount);
|