From: Marcelo Tosatti <mtosatti@redhat.com>
To: kvm-devel <kvm@vger.kernel.org>, Paolo Bonzini <pbonzini@redhat.com>
Subject: [PATCH uq/master] kvm_stat: add option to display non tracepoint based stats
Date: Tue, 20 May 2014 15:38:27 -0300 [thread overview]
Message-ID: <20140520183827.GA11998@amt.cnet> (raw)
The old stats contain information not available in the tracepoints.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
index 762544b..6ac3b21 100755
--- a/scripts/kvm/kvm_stat
+++ b/scripts/kvm/kvm_stat
@@ -493,12 +493,21 @@ options.add_option('-f', '--fields',
dest = 'fields',
help = 'fields to display (regex)',
)
+options.add_option('-o', '--old',
+ action = 'store_true',
+ default = False,
+ dest = 'old',
+ help = 'show kvm statistics counters (not tracepoint based)',
+ )
(options, args) = options.parse_args(sys.argv)
-try:
- provider = TracepointProvider()
-except:
+if options.old:
provider = DebugfsProvider()
+else:
+ try:
+ provider = TracepointProvider()
+ except:
+ provider = DebugfsProvider()
stats = Stats(provider, fields = options.fields)
next reply other threads:[~2014-05-20 21:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 18:38 Marcelo Tosatti [this message]
2014-05-21 10:45 ` [PATCH uq/master] kvm_stat: add option to display non tracepoint based stats Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140520183827.GA11998@amt.cnet \
--to=mtosatti@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox