summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGavin Shan <gshan@redhat.com>2022-10-20 15:12:04 +0800
committerMarc Zyngier <maz@kernel.org>2022-11-10 18:56:14 +0000
commit3bfadb2325891d122771ce534336af531e93d7b2 (patch)
tree0918d0410bb734484bb9e4e5e47323776664e448 /tools/perf/scripts/python/stackcollapse.py
parent30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff)
KVM: selftests: memslot_perf_test: Use data->nslots in prepare_vm()
In prepare_vm(), 'data->nslots' is assigned with 'max_mem_slots - 1' at the beginning, meaning they are interchangeable. Use 'data->nslots' isntead of 'max_mem_slots - 1'. With this, it becomes easier to move the logic of probing number of slots into upper layer in subsequent patches. No functional change intended. Signed-off-by: Gavin Shan <gshan@redhat.com> Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221020071209.559062-2-gshan@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions