signal: Introduce TRAP_PERF si_code and si_perf to siginfo
authorMarco Elver <elver@google.com>
Thu, 8 Apr 2021 10:36:00 +0000 (12:36 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 16 Apr 2021 14:32:41 +0000 (16:32 +0200)
commitfb6cc127e0b6e629252cdd0f77d5a1f49db95b92
treed87b4f9b27913150809daadbb6674929832762ba
parent2e498d0a74e5b88a6689ae1b811f247f91ff188e
signal: Introduce TRAP_PERF si_code and si_perf to siginfo

Introduces the TRAP_PERF si_code, and associated siginfo_t field
si_perf. These will be used by the perf event subsystem to send signals
(if requested) to the task where an event occurred.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> # m68k
Acked-by: Arnd Bergmann <arnd@arndb.de> # asm-generic
Link: https://lkml.kernel.org/r/20210408103605.1676875-6-elver@google.com
arch/m68k/kernel/signal.c
arch/x86/kernel/signal_compat.c
fs/signalfd.c
include/linux/compat.h
include/linux/signal.h
include/uapi/asm-generic/siginfo.h
include/uapi/linux/signalfd.h
kernel/signal.c