summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2025-03-03 16:49:08 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-03-17 22:16:59 +0300
commit8a56f26607418ab517476de4a27e38be51f6fbca (patch)
treeca89376e85b3ce92c77921122c940eeae7eb1e36 /scripts/gdb/linux/utils.py
parente0349c46cb4fbbb507fa34476bd70f9c82bad359 (diff)
downloadlinux-8a56f26607418ab517476de4a27e38be51f6fbca.tar.xz
signal: avoid clearing TIF_SIGPENDING in recalc_sigpending() if unset
Clearing is an atomic op and the flag is not set most of the time. When creating and destroying threads in the same process with the pthread family, the primary bottleneck is calls to sigprocmask which take the process-wide sighand lock. Avoiding the atomic gives me a 2% bump in start/teardown rate at 24-core scale. [akpm@linux-foundation.org: add unlikely() as well] Link: https://lkml.kernel.org/r/20250303134908.423242-1-mjguzik@gmail.com Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Acked-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions