summaryrefslogtreecommitdiffstats
path: root/scripts/qemu-gdb.py
diff options
context:
space:
mode:
authorJanosch Frank2016-01-11 16:17:51 +0100
committerPaolo Bonzini2016-01-26 15:58:13 +0100
commitdd0b6a4e101e57f0495b71b03be8217c0df1af14 (patch)
tree79be2c4d284cc3b78d5b33b7078a93df5e226174 /scripts/qemu-gdb.py
parentscripts/kvm/kvm_stat: Cleanup cpu list retrieval (diff)
downloadqemu-dd0b6a4e101e57f0495b71b03be8217c0df1af14.tar.gz
qemu-dd0b6a4e101e57f0495b71b03be8217c0df1af14.tar.xz
qemu-dd0b6a4e101e57f0495b71b03be8217c0df1af14.zip
scripts/kvm/kvm_stat: Encapsulate filters variable
The variable was only used in one class but still was defined globally. Additionaly the detect_platform routine which prepares the data that goes into the variable was called on each start of the script, no matter if the class was needed. To make the variable local to the TracepointProvider class, a new function that calls detect_platform and returns the filters was introduced. Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Message-Id: <1452525484-32309-22-git-send-email-frankja@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qemu-gdb.py')
0 files changed, 0 insertions, 0 deletions