diff options
author | Abhishek Sagar <sagar.abhishek@gmail.com> | 2008-06-21 23:47:27 +0530 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-23 22:10:56 +0200 |
commit | 395a59d0f8e86bb39cd700c3d185d30c670bb958 (patch) | |
tree | 1558e635efcede901c5dbe9acd625d475db5b369 /include/asm-arm/ftrace.h | |
parent | f34bfb1beef8a17ba3d46b60f8fa19ffedc1ed8d (diff) | |
download | kernel_samsung_smdk4412-395a59d0f8e86bb39cd700c3d185d30c670bb958.zip kernel_samsung_smdk4412-395a59d0f8e86bb39cd700c3d185d30c670bb958.tar.gz kernel_samsung_smdk4412-395a59d0f8e86bb39cd700c3d185d30c670bb958.tar.bz2 |
ftrace: store mcount address in rec->ip
Record the address of the mcount call-site. Currently all archs except sparc64
record the address of the instruction following the mcount call-site. Some
general cleanups are entailed. Storing mcount addresses in rec->ip enables
looking them up in the kprobe hash table later on to check if they're kprobe'd.
Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com>
Cc: davem@davemloft.net
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-arm/ftrace.h')
-rw-r--r-- | include/asm-arm/ftrace.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-arm/ftrace.h b/include/asm-arm/ftrace.h new file mode 100644 index 0000000..584ef9a --- /dev/null +++ b/include/asm-arm/ftrace.h @@ -0,0 +1,14 @@ +#ifndef _ASM_ARM_FTRACE +#define _ASM_ARM_FTRACE + +#ifdef CONFIG_FTRACE +#define MCOUNT_ADDR ((long)(mcount)) +#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ + +#ifndef __ASSEMBLY__ +extern void mcount(void); +#endif + +#endif + +#endif /* _ASM_ARM_FTRACE */ |