linux/arch
Sasha Levin 309381feae mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE
Most of the VM_BUG_ON assertions are performed on a page.  Usually, when
one of these assertions fails we'll get a BUG_ON with a call stack and
the registers.

I've recently noticed based on the requests to add a small piece of code
that dumps the page to various VM_BUG_ON sites that the page dump is
quite useful to people debugging issues in mm.

This patch adds a VM_BUG_ON_PAGE(cond, page) which beyond doing what
VM_BUG_ON() does, also dumps the page before executing the actual
BUG_ON.

[akpm@linux-foundation.org: fix up includes]
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-01-23 16:36:50 -08:00
..
alpha PCI changes for the v3.14 merge window: 2014-01-22 16:39:28 -08:00
arc
arm Features: 2014-01-22 22:00:18 -08:00
arm64 First round of KVM updates for 3.14; PPC parts will come next week. 2014-01-22 21:40:43 -08:00
avr32
blackfin
c6x
cris cris: provide {in,out}[wl]_p() 2014-01-23 16:36:50 -08:00
frv
hexagon
ia64 First round of KVM updates for 3.14; PPC parts will come next week. 2014-01-22 21:40:43 -08:00
m32r
m68k Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2014-01-20 10:42:08 -08:00
metag memblock: make memblock_set_node() support different memblock_type 2014-01-21 16:19:44 -08:00
microblaze microblaze: extable: sort the exception table at build time 2014-01-23 16:36:50 -08:00
mips Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2014-01-22 21:21:55 -08:00
mn10300
openrisc
parisc PCI changes for the v3.14 merge window: 2014-01-22 16:39:28 -08:00
powerpc First round of KVM updates for 3.14; PPC parts will come next week. 2014-01-22 21:40:43 -08:00
s390 First round of KVM updates for 3.14; PPC parts will come next week. 2014-01-22 21:40:43 -08:00
score score: remove "select HAVE_GENERIC_HARDIRQS" again 2014-01-21 16:19:41 -08:00
sh memblock: make memblock_set_node() support different memblock_type 2014-01-21 16:19:44 -08:00
sparc PCI changes for the v3.14 merge window: 2014-01-22 16:39:28 -08:00
tile
um
unicore32 mm, show_mem: remove SHOW_MEM_FILTER_PAGE_COUNT 2014-01-21 16:19:44 -08:00
x86 mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE 2014-01-23 16:36:50 -08:00
xtensa GPIO tree bulk changes for v3.14 2014-01-21 10:09:12 -08:00
.gitignore
Kconfig