diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-11 01:19:54 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-02-22 18:48:54 -0500 |
commit | 465428884765b43d642a967915e16c6c7cacbe8e (patch) | |
tree | bee656decba5598493b920efab53ec4ca95afa08 /arch/powerpc/kernel/entry_64.S | |
parent | 6794c78243bfda020ab184d6d578944f8e90d26c (diff) |
powerpc64, tracing: add function graph tracer with dynamic tracing
This is the port of the function graph tracer to PowerPC with
dynamic tracing.
Geoff Lavand tested on PS3.
Tested-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/entry_64.S')
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index a32699e74c3c..9f61fd61f277 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S | |||
@@ -908,6 +908,12 @@ _GLOBAL(ftrace_caller) | |||
908 | ftrace_call: | 908 | ftrace_call: |
909 | bl ftrace_stub | 909 | bl ftrace_stub |
910 | nop | 910 | nop |
911 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | ||
912 | .globl ftrace_graph_call | ||
913 | ftrace_graph_call: | ||
914 | b ftrace_graph_stub | ||
915 | _GLOBAL(ftrace_graph_stub) | ||
916 | #endif | ||
911 | ld r0, 128(r1) | 917 | ld r0, 128(r1) |
912 | mtlr r0 | 918 | mtlr r0 |
913 | addi r1, r1, 112 | 919 | addi r1, r1, 112 |
@@ -946,7 +952,7 @@ _GLOBAL(ftrace_stub) | |||
946 | #endif /* CONFIG_DYNAMIC_FTRACE */ | 952 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
947 | 953 | ||
948 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 954 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
949 | ftrace_graph_caller: | 955 | _GLOBAL(ftrace_graph_caller) |
950 | /* load r4 with local address */ | 956 | /* load r4 with local address */ |
951 | ld r4, 128(r1) | 957 | ld r4, 128(r1) |
952 | subi r4, r4, MCOUNT_INSN_SIZE | 958 | subi r4, r4, MCOUNT_INSN_SIZE |