• Borislav Petkov's avatar
    x86/alternatives: Print containing function · c1d4e419
    Borislav Petkov authored
    ... in the "debug-alternative" output so that one can find her way
    easier when staring at the vmlinux disassembly.
    
    For example:
    
      apply_alternatives: feat: 3*32+18, old: (read_tsc+0x0/0x10 (ffffffff8101d1c0) len: 5), repl: (ffffffff824e6d33, len: 5)
      					   ^^^^^^^^^^^^^^^^^
      ffffffff8101d1c0: old_insn: 0f 31 90 90 90
      ffffffff824e6d33: rpl_insn: 0f ae e8 0f 31
      ffffffff8101d1c0: final_insn: 0f ae e8 0f 31
    
    No functional changes.
    Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Tom Lendacky <thomas.lendacky@amd.com>
    Cc: X86 ML <x86@kernel.org>
    Link: https://lkml.kernel.org/r/20181211222326.14581-3-bp@alien8.de
    c1d4e419
alternative.c 20.2 KB