summaryrefslogtreecommitdiff
path: root/page_cache.c
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.vnet.ibm.com>2016-01-11 16:17:39 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-01-26 15:58:12 +0100
commit639ce1831082084af80290c79f06a5794a3caa0b (patch)
tree90a3fc0b7ceef1132ee743e987b8b78314eb1ab6 /page_cache.c
parent7aa4ee5a60c6ac651fd2e60b783630e35a7e3ff4 (diff)
downloadqemu-639ce1831082084af80290c79f06a5794a3caa0b.tar.gz
scripts/kvm/kvm_stat: Introduce main function
The main function should be the main location for initialization and helps encapsulating variables into a scope. This way they don't have to be global and might be mistaken for local ones. As the providers variable is scoped now it can't be accessed from within the Stats class. Hence, the global access to the variable was changed to a local one. Reviewed-by: Jason J. Herne <jjherne@linux.vnet.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Message-Id: <1452525484-32309-10-git-send-email-frankja@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'page_cache.c')
0 files changed, 0 insertions, 0 deletions