sysfs: crash debugging
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 24 Aug 2007 23:11:54 +0000 (16:11 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Oct 2008 16:24:41 +0000 (09:24 -0700)
commitae87221d3ce49d9de1e43756da834fd0bf05a2ad
treef96792656b00e95c307f3f37369c98a85ce38207
parente94320939f44e0cbaccc3f259a5778abced4949c
sysfs: crash debugging

Print the name of the last-accessed sysfs file when we oops, to help track
down oopses which occur in sysfs store/read handlers.  Because these oopses
tend to not leave any trace of the offending code in the stack traces.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/dumpstack_32.c
arch/x86/kernel/dumpstack_64.c
fs/sysfs/file.c
include/linux/sysfs.h