aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorBorislav Petkov <[email protected]>2014-02-05 01:55:11 +0100
committerH. Peter Anvin <[email protected]>2014-02-04 20:00:35 -0800
commitb399fe355b30d0102e7690c99e6f764ddfd32ec3 (patch)
tree78699801f7a010228cb646c25a87af3f267a54e3 /tools/perf/util/trace-event-scripting.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
x86: Disable generation of traditional x87 instructions
We recently had the case where wrongly used floating-constant 'E' caused the generation of traditional x87 instructions in kernel code and wreaking all kinds of havoc. Disable the generation of those too. This will save people a lot of time when trying to debug such issues by erroring out of the build instead of let them manifest themselves in very spectacular and happy-crappy ways at runtime. We're using -mno-fp-ret-in-387 in addition to -mno-80387 (which is == -msoft-float) because, as the gcc manpage says: On machines where a function returns floating-point results in the 80387 register stack, some floating-point opcodes may be emitted even if -msoft-float is used. so we want to turn off *all* non-integer instructions involving any architectural FPU state, unless it is absolutely necessary (and those cases need special handling anyway). Cc: Jiri Kosina <[email protected]> Cc: Michael Matz <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions