]> git.baikalelectronics.ru Git - kernel.git/commit
signal: Factor force_sig_perf out of perf_sigtrap
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 2 May 2021 19:27:24 +0000 (14:27 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 18 May 2021 21:20:54 +0000 (16:20 -0500)
commitf4da96c20d529f971644df3791847888a74e31a2
tree9e9cf468010ea32dcf474dea62e2d8a7ce8f5d23
parent77402ff347d626635852c8d994ab460b291b2d18
signal: Factor force_sig_perf out of perf_sigtrap

Separate filling in siginfo for TRAP_PERF from deciding that
siginal needs to be sent.

There are enough little details that need to be correct when
properly filling in siginfo_t that it is easy to make mistakes
if filling in the siginfo_t is in the same function with other
logic.  So factor out force_sig_perf to reduce the cognative
load of on reviewers, maintainers and implementors.

v1: https://lkml.kernel.org/r/m17dkjqqxz.fsf_-_@fess.ebiederm.org
v2: https://lkml.kernel.org/r/20210505141101.11519-10-ebiederm@xmission.com
Link: https://lkml.kernel.org/r/20210517195748.8880-3-ebiederm@xmission.com
Reviewed-by: Marco Elver <elver@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/sched/signal.h
kernel/events/core.c
kernel/signal.c