]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ftrace: store mcount address in rec->ip
authorAbhishek Sagar <sagar.abhishek@gmail.com>
Sat, 21 Jun 2008 18:17:27 +0000 (23:47 +0530)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 Jun 2008 20:10:56 +0000 (22:10 +0200)
commit395a59d0f8e86bb39cd700c3d185d30c670bb958
tree1558e635efcede901c5dbe9acd625d475db5b369
parentf34bfb1beef8a17ba3d46b60f8fa19ffedc1ed8d
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>
19 files changed:
arch/arm/kernel/armksyms.c
arch/arm/kernel/entry-common.S
arch/arm/kernel/ftrace.c
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/ftrace.c
arch/sparc64/kernel/ftrace.c
arch/sparc64/kernel/sparc64_ksyms.c
arch/x86/kernel/entry_32.S
arch/x86/kernel/entry_64.S
arch/x86/kernel/ftrace.c
arch/x86/kernel/i386_ksyms_32.c
arch/x86/kernel/x8664_ksyms_64.c
include/asm-arm/ftrace.h [new file with mode: 0644]
include/asm-powerpc/ftrace.h
include/asm-sparc64/ftrace.h [new file with mode: 0644]
include/asm-x86/ftrace.h [new file with mode: 0644]
include/linux/ftrace.h
kernel/trace/ftrace.c