diff options
author | 2013-07-03 15:08:12 -0700 | |
---|---|---|
committer | 2013-07-03 16:08:01 -0700 | |
commit | 29000caecbe87b6b66f144f72111f0d02fbbf0c1 (patch) | |
tree | 91d178abd9543a49c087af857a3cfabececfd71e /tools/perf/scripts/python/syscall-counts.py | |
parent | x86: kill TIF_DEBUG (diff) | |
download | linux-dev-29000caecbe87b6b66f144f72111f0d02fbbf0c1.tar.xz linux-dev-29000caecbe87b6b66f144f72111f0d02fbbf0c1.zip |
ptrace: add ability to get/set signal-blocked mask
crtools uses a parasite code for dumping processes. The parasite code is
injected into a process with help PTRACE_SEIZE.
Currently crtools blocks signals from a parasite code. If a process has
pending signals, crtools wait while a process handles these signals.
This method is not suitable for stopped tasks. A stopped task can have a
few pending signals, when we will try to execute a parasite code, we will
need to drop SIGSTOP, but all other signals must remain pending, because a
state of processes must not be changed during checkpointing.
This patch adds two ptrace commands to set/get signal-blocked mask.
I think gdb can use this commands too.
[akpm@linux-foundation.org: be consistent with brace layout]
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions