]> git.baikalelectronics.ru Git - kernel.git/commit
x86/traps: Simplify pagefault tracing logic
authorThomas Gleixner <tglx@linutronix.de>
Mon, 28 Aug 2017 06:47:22 +0000 (08:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Aug 2017 09:42:23 +0000 (11:42 +0200)
commit11a7ffb01703c3bbb1e9b968893f4487a1b0b5a8
tree938e6fb9f52b79afbf4a8d25eac25cfa5d315178
parent2feb1b316d48004d905278c02a55902cab0be8be
x86/traps: Simplify pagefault tracing logic

Make use of the new irqvector tracing static key and remove the duplicated
trace_do_pagefault() implementation.

If irq vector tracing is disabled, then the overhead of this is a single
NOP5, which is a reasonable tradeoff to avoid duplicated code and the
unholy macro mess.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20170828064956.672965407@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/entry_32.S
arch/x86/entry/entry_64.S
arch/x86/include/asm/traps.h
arch/x86/kernel/kvm.c
arch/x86/mm/fault.c