aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorChristoffer Dall <[email protected]>2017-10-10 19:55:56 +0200
committerMarc Zyngier <[email protected]>2018-03-19 10:53:12 +0000
commit5742d04912ebf7f2d5d169e4696bd1192ad32806 (patch)
tree6c541aaddd29ea4b14e0586caadac5aa84e34d5d /tools/perf/scripts/python/export-to-sqlite.py
parent54ceb1bcf8d83e835be515d7d9e4129a73d80f4e (diff)
KVM: arm64: Slightly improve debug save/restore functions
The debug save/restore functions can be improved by using the has_vhe() static key instead of the instruction alternative. Using the static key uses the same paradigm as we're going to use elsewhere, it makes the code more readable, and it generates slightly better code (no stack setups and function calls unless necessary). We also use a static key on the restore path, because it will be marginally faster than loading a value from memory. Finally, we don't have to conditionally clear the debug dirty flag if it's set, we can just clear it. Reviewed-by: Marc Zyngier <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Signed-off-by: Christoffer Dall <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions