diff options
author | Marco Elver <elver@google.com> | 2021-04-08 12:36:00 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-04-16 16:32:41 +0200 |
commit | fb6cc127e0b6e629252cdd0f77d5a1f49db95b92 (patch) | |
tree | d87b4f9b27913150809daadbb6674929832762ba /include/linux/compat.h | |
parent | 2e498d0a74e5b88a6689ae1b811f247f91ff188e (diff) | |
download | linux-fb6cc127e0b6e629252cdd0f77d5a1f49db95b92.tar.gz linux-fb6cc127e0b6e629252cdd0f77d5a1f49db95b92.tar.bz2 linux-fb6cc127e0b6e629252cdd0f77d5a1f49db95b92.zip |
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
Diffstat (limited to 'include/linux/compat.h')
-rw-r--r-- | include/linux/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index 6e65be753603..c8821d966812 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -236,6 +236,8 @@ typedef struct compat_siginfo { char _dummy_pkey[__COMPAT_ADDR_BND_PKEY_PAD]; u32 _pkey; } _addr_pkey; + /* used when si_code=TRAP_PERF */ + compat_u64 _perf; }; } _sigfault; |