aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSimon Guo <[email protected]>2016-07-26 16:06:01 +0800
committerMichael Ellerman <[email protected]>2016-09-13 17:37:12 +1000
commite1c0d66fcb179a1737b3d5cc11c6e37bcabbd861 (patch)
tree6260230cda5bbe7a47f5d5955f7892f737fca6c8 /tools/perf/scripts/python
parent261831160d4df6bafe2f0e12e6de9e5731519e06 (diff)
powerpc: Set used_(vsr|vr|spe) in sigreturn path when MSR bits are active
Normally, when MSR[VSX/VR/SPE] bits == 1, the used_vsr/used_vr/used_spe bit have already been set. However when loading a signal frame from user space we need to explicitly set used_vsr/used_vr/used_spe to make them consistent with the MSR bits from the signal frame. For example, CRIU application, who utilizes sigreturn to restore checkpointed process, will lead to the case where MSR[VSX] bit is active in signal frame, but used_vsr bit is not set in the kernel. (the same applies to VR/SPE). This patch fixes this by always setting used_* bit when MSR related bits are active in signal frame and we are doing sigreturn. Based on a proposal by Benh. Signed-off-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Simon Guo <[email protected]> [mpe: Massage change log] Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions