sparc64: Like x86 we should check current->mm during perf backtrace generation.
authorDavid S. Miller <davem@davemloft.net>
Mon, 15 Oct 2012 00:59:40 +0000 (17:59 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 30 Oct 2012 23:26:31 +0000 (23:26 +0000)
commit6471fbc6eb71dd615075f58576ad813697700873
treeaf8448018920a3e50b613c091f873905d24a9b19
parent1b4ea31d107d4b8985f56c939f712f8a0dd59271
sparc64: Like x86 we should check current->mm during perf backtrace generation.

[ Upstream commit 08280e6c4c2e8049ac61d9e8e3536ec1df629c0d ]

If the MM is not active, only report the top-level PC.  Do not try to
access the address space.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/sparc/kernel/perf_event.c