]> git.baikalelectronics.ru Git - kernel.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)
commit7a90a2f3263a14dacb8d3393106e00588643edd4
tree1558e635efcede901c5dbe9acd625d475db5b369
parent31675f409a33226ad5488f3da897e5c73a47a83b
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