summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-11-04 18:31:19 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-07 15:44:00 +0100
commita2ae9df7c991eca6c1ee6f42dbb18701a64175c3 (patch)
treeb001c08e23ea5a86c3b96ad6e64b36f1c2d63a1b /tools/perf/scripts/python/check-perf-trace.py
parent34a1cd60d17f62c1f077c1478a6c2ca8c3d17af4 (diff)
kvm: x86: vmx: avoid returning bool to distinguish success from error
Return a negative error code instead, and WARN() when we should be covering the entire 2-bit space of vmcs_field_type's return value. For increased robustness, add a BUILD_BUG_ON checking the range of vmcs_field_to_offset. Suggested-by: Tiejun Chen <tiejun.chen@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions