]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Use kprobe blacklist for exception handlers
authorNicholas Piggin <npiggin@gmail.com>
Fri, 16 Sep 2016 10:48:08 +0000 (20:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 19 Sep 2016 00:53:54 +0000 (10:53 +1000)
commitdfa2512d4999887c636a0726b1cbf9109381135c
tree5822e3b95e15197b2ea837dca99da30342c7b618
parent93c7235272f7c89530f19ada865eb561b3b83da1
powerpc: Use kprobe blacklist for exception handlers

Currently we mark the C implementations of some exception handlers as
__kprobes. This has the effect of putting them in the ".kprobes.text"
section, which separates them from the rest of the text.

Instead we can use the blacklist macros to add the symbols to a
blacklist which kprobes will check. This allows the linker to move
exception handler functions close to callers and avoids trampolines in
larger kernels.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Reword change log a bit]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/asm-prototypes.h
arch/powerpc/kernel/hw_breakpoint.c
arch/powerpc/kernel/traps.c
arch/powerpc/mm/fault.c