sparc64: Fix stack dumping and tracing when function graph is enabled.
authorDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2010 10:08:11 +0000 (03:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2010 10:08:11 +0000 (03:08 -0700)
commit667f0cee3e0321151aa7a1a5222afe67ca4be0ea
tree5f4a7a5c228a21e893f95774ca95f9925abf4b1f
parent87e8f0e3e6d0b720a2462ebc5667eaa462752f74
sparc64: Fix stack dumping and tracing when function graph is enabled.

Like x86, when the function graph tracer is enabled, emit the ftrace
stub as well as the program counter it will be transformed back into.

We duplicate a lot of similar stack walking logic in 3 or 4 spots, so
eventually we should consolidate things like x86 does.

Thanks to Frederic Weisbecker for pointing this out.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/perf_event.c
arch/sparc/kernel/stacktrace.c
arch/sparc/kernel/traps_64.c