summaryrefslogtreecommitdiff
path: root/os-win32.c
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.vnet.ibm.com>2016-01-11 16:17:51 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-01-26 15:58:13 +0100
commitdd0b6a4e101e57f0495b71b03be8217c0df1af14 (patch)
tree79be2c4d284cc3b78d5b33b7078a93df5e226174 /os-win32.c
parent357bc1e74fc8af96530148d52dd9ccc8e626f000 (diff)
downloadqemu-dd0b6a4e101e57f0495b71b03be8217c0df1af14.tar.gz
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 'os-win32.c')
0 files changed, 0 insertions, 0 deletions