diff options
| author | Christopher M. Riedl <[email protected]> | 2021-02-26 19:12:56 -0600 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-03-29 12:49:47 +1100 |
| commit | 193323e1009437c0885240e75ca71f7963e4a006 (patch) | |
| tree | 4bda5c53393540d31b4da2bbe81edd3bb8892362 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 7bb081c8f043ab166f8c6f26fca744821217dad7 (diff) | |
powerpc/signal64: Replace restore_sigcontext() w/ unsafe_restore_sigcontext()
Previously restore_sigcontext() performed a costly KUAP switch on every
uaccess operation. These repeated uaccess switches cause a significant
drop in signal handling performance.
Rewrite restore_sigcontext() to assume that a userspace read access
window is open by replacing all uaccess functions with their 'unsafe'
versions. Modify the callers to first open, call
unsafe_restore_sigcontext(), and then close the uaccess window.
Signed-off-by: Christopher M. Riedl <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions