public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>, kvm-devel <kvm@vger.kernel.org>
Subject: Re: [PATCH uq/master] kvm_stat: add option to display non tracepoint based stats
Date: Wed, 21 May 2014 12:45:20 +0200	[thread overview]
Message-ID: <537C83C0.10304@redhat.com> (raw)
In-Reply-To: <20140520183827.GA11998@amt.cnet>

Il 20/05/2014 20:38, Marcelo Tosatti ha scritto:
>
> 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)
>
>

Let's instead show information from both providers.  I am sending a patch.

Paolo

      reply	other threads:[~2014-05-21 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 18:38 [PATCH uq/master] kvm_stat: add option to display non tracepoint based stats Marcelo Tosatti
2014-05-21 10:45 ` Paolo Bonzini [this message]

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=537C83C0.10304@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@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