]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Move irq tracing on syscall entry to C-code
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Feb 2020 22:08:05 +0000 (23:08 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:39 +0000 (15:14 +0200)
commitcd7a6e7d1e53eff9d2ed4d7c399b19ae6f542226
treed8a1385c19507d2ddfb26155e1eebd7c540a54b6
parent2cc25fe2380530e8874fc7687f17af0917ded9a6
x86/entry: Move irq tracing on syscall entry to C-code

Now that the C entry points are safe, move the irq flags tracing code into
the entry helper:

    - Invoke lockdep before calling into context tracking

    - Use the safe trace_hardirqs_on_prepare() trace function after context
      tracking established state and RCU is watching.

enter_from_user_mode() is also still invoked from the exception/interrupt
entry code which still contains the ASM irq flags tracing. So this is just
a redundant and harmless invocation of tracing / lockdep until these are
removed as well.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200505134340.611961721@linutronix.de
arch/x86/entry/common.c
arch/x86/entry/entry_32.S
arch/x86/entry/entry_64.S
arch/x86/entry/entry_64_compat.S