x86/jump-label: Show where and what was wrong on errors
authorSteven Rostedt <srostedt@redhat.com>
Wed, 1 Feb 2012 14:59:24 +0000 (09:59 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 7 Aug 2013 01:54:33 +0000 (21:54 -0400)
commitfb40d7a8994a3cc7a1e1c1f3258ea8662a366916
treea1d3664ba12dafc4029b6fc3aff2adf767a4fb83
parent9c85f3bdf400665eecf62658a9106501f6a77a13
x86/jump-label: Show where and what was wrong on errors

When modifying text sections for jump labels, a paranoid check is
performed. If the check fails, the system "bugs". But why it failed
is not shown.

The BUG_ON()s in the jump label update code is replaced with bug_at(ip).
This is a function that will show what pointer failed, and what was
at the location of the failure that made jump label panic.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/jump_label.c