• Steven Rostedt's avatar
    x86/jump-label: Show where and what was wrong on errors · fb40d7a8
    Steven Rostedt authored
    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: default avatarSteven Rostedt <rostedt@goodmis.org>
    fb40d7a8
jump_label.c 3.33 KB