aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDave Martin <[email protected]>2018-09-28 14:39:07 +0100
committerMarc Zyngier <[email protected]>2019-03-29 14:41:52 +0000
commit7aa92cf318f8136c445c1656d291f50df189b56a (patch)
tree266ad111857dc89860af977955a27d5806d19c55 /tools/perf/scripts/python/stackcollapse.py
parent38abf22e122e00d20e99408fce4471b5cb65133b (diff)
KVM: arm64: Refactor kvm_arm_num_regs() for easier maintenance
kvm_arm_num_regs() adds together various partial register counts in a freeform sum expression, which makes it harder than necessary to read diffs that add, modify or remove a single term in the sum (which is expected to the common case under maintenance). This patch refactors the code to add the term one per line, for maximum readability. Signed-off-by: Dave Martin <[email protected]> Reviewed-by: Alex BennĂ©e <[email protected]> Tested-by: zhang.lei <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions