• Martin Möhrmann's avatar
    internal/cpu: add invalid option warnings and support to enable cpu features · 3e0227f6
    Martin Möhrmann authored
    This CL adds the ability to enable the cpu feature FEATURE by specifying
    FEATURE=on in GODEBUGCPU. Syntax support to enable cpu features is useful
    in combination with a preceeding all=off to disable all but some specific
    cpu features. Example:
    
    GODEBUGCPU=all=off,sse3=on
    
    This CL implements printing of warnings for invalid GODEBUGCPU settings:
    - requests enabling features that are not supported with the current CPU
    - specifying values different than 'on' or 'off' for a feature
    - settings for unkown cpu feature names
    
    Updates #27218
    
    Change-Id: Ic13e5c4c35426a390c50eaa4bd2a408ef2ee21be
    Reviewed-on: https://go-review.googlesource.com/c/141800
    Run-TryBot: Martin Möhrmann <moehrmann@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    3e0227f6
Name
Last commit
Last update
..
bytealg Loading commit data...
cpu Loading commit data...
goroot Loading commit data...
nettrace Loading commit data...
poll Loading commit data...
race Loading commit data...
singleflight Loading commit data...
syscall Loading commit data...
testenv Loading commit data...
testlog Loading commit data...
trace Loading commit data...