]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11f9db8ee81fe3c0bf6f4d2ba4e3b590291d82ac
tree5f4a7a5c228a21e893f95774ca95f9925abf4b1f
parente13af196753418ce30226d3257f40a142e13a236
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