aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorYu-cheng Yu <[email protected]>2020-01-09 21:14:50 +0000
committerBorislav Petkov <[email protected]>2020-02-11 18:54:04 +0000
commitc12e13dcd814023a903399ec5ac2e7082d664b8b (patch)
tree82de601013579408aeb9bc2cc8021188e2188c30 /tools/perf/scripts/python/syscall-counts.py
parentLinux 5.6-rc1 (diff)
downloadkernel-c12e13dcd814023a903399ec5ac2e7082d664b8b.tar.gz
kernel-c12e13dcd814023a903399ec5ac2e7082d664b8b.zip
x86/fpu/xstate: Fix last_good_offset in setup_xstate_features()
The function setup_xstate_features() uses CPUID to find each xfeature's standard-format offset and size. Since XSAVES always uses the compacted format, supervisor xstates are *NEVER* in the standard-format and their offsets are left as -1's. However, they are still being tracked as last_good_offset. Fix it by tracking only user xstate offsets. [ bp: Use xfeature_is_supervisor() and save an indentation level. Drop now unused xfeature_is_user(). ] Signed-off-by: Yu-cheng Yu <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Dave Hansen <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions