aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorGuo Ren <[email protected]>2019-11-05 01:58:33 +0000
committerGuo Ren <[email protected]>2020-03-08 12:55:14 +0000
commit9866d141a0977ace974400bf1f793dfc163409ce (patch)
tree44058c31b3030ac4c6ba5836e3f040f7bbc99d2d /tools/perf/scripts/python/syscall-counts-by-pid.py
parentcsky: Implement ptrace regs and stack API (diff)
downloadkernel-9866d141a0977ace974400bf1f793dfc163409ce.tar.gz
kernel-9866d141a0977ace974400bf1f793dfc163409ce.zip
csky: Add support for restartable sequence
Copied and adapted from vincent's patch, but modified for csky. ref: https://lore.kernel.org/linux-riscv/[email protected]/raw Add calls to rseq_signal_deliver(), rseq_handle_notify_resume() and rseq_syscall() to introduce RSEQ support. 1. Call the rseq_handle_notify_resume() function on return to userspace if TIF_NOTIFY_RESUME thread flag is set. 2. Call the rseq_signal_deliver() function to fixup on the pre-signal frame when a signal is delivered on top of a restartable sequence critical section. 3. Check that system calls are not invoked from within rseq critical sections by invoking rseq_signal() from ret_from_syscall(). With CONFIG_DEBUG_RSEQ, such behavior results in termination of the process with SIGSEGV. Signed-off-by: Guo Ren <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions