aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2012-04-16 22:48:15 +0200
committerH. Peter Anvin <[email protected]>2012-04-16 16:23:59 -0700
commit089f9fba56faf33cc6dd2a6442b7ac92c58b8209 (patch)
treefa86fb7efe7253f344fca3f0395aee2d92d13fa1 /tools/perf/util/scripting-engines/trace-event-python.c
parent68894632afb2729a1d8785c877840953894c7283 (diff)
i387: ptrace breaks the lazy-fpu-restore logic
Starting from 7e16838d "i387: support lazy restore of FPU state" we assume that fpu_owner_task doesn't need restore_fpu_checking() on the context switch, its FPU state should match what we already have in the FPU on this CPU. However, debugger can change the tracee's FPU state, in this case we should reset fpu.last_cpu to ensure fpu_lazy_restore() can't return true. Change init_fpu() to do this, it is called by user_regset->set() methods. Reported-by: Jan Kratochvil <[email protected]> Suggested-by: Linus Torvalds <[email protected]> Signed-off-by: Oleg Nesterov <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Cc: <[email protected]> v3.3 Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions