x86/debug: Implement __WARN() using UD0
By using "UD0" for WARN()s we remove the function call and its possible __FILE__ and __LINE__ immediate arguments from the instruction stream. Total image size will not change much, what we win in the instruction stream we'll lose because of the __bug_table entries. Still, saves on I$ footprint and the total image size does go down a bit. text data filename 10702123 4530992 defconfig-build/vmlinux.orig 10682460 4530992 defconfig-build/vmlinux.patched (UML didn't seem to use GENERIC_BUG at all, so remove it) Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Josh Poimboeuf <jpoimboe@redhat.com> Cc: Arjan van de Ven <arjan@linux.intel.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Richard Weinberger <richard.weinberger@gmail.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by:
Ingo Molnar <mingo@kernel.org>
Showing
- arch/um/Kconfig.common 0 additions, 5 deletionsarch/um/Kconfig.common
- arch/x86/include/asm/bug.h 60 additions, 18 deletionsarch/x86/include/asm/bug.h
- arch/x86/kernel/dumpstack.c 0 additions, 3 deletionsarch/x86/kernel/dumpstack.c
- arch/x86/kernel/dumpstack_32.c 0 additions, 12 deletionsarch/x86/kernel/dumpstack_32.c
- arch/x86/kernel/dumpstack_64.c 0 additions, 10 deletionsarch/x86/kernel/dumpstack_64.c
- arch/x86/kernel/traps.c 40 additions, 6 deletionsarch/x86/kernel/traps.c
- arch/x86/um/Makefile 1 addition, 1 deletionarch/x86/um/Makefile
- arch/x86/um/bug.c 0 additions, 21 deletionsarch/x86/um/bug.c
arch/x86/um/bug.c
deleted
100644 → 0
Please register or sign in to comment