qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Michal Novotny <minovotn@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Introduce "info migrate-times" monitor command
Date: Wed, 13 Jul 2011 16:11:50 +0200	[thread overview]
Message-ID: <4E1DA7A6.6060104@redhat.com> (raw)
In-Reply-To: <1310562411-30538-1-git-send-email-minovotn@redhat.com>

On 07/13/2011 03:06 PM, Michal Novotny wrote:
> +uint64_t time_get(const char *name, int stage);
> +void time_set(const char *name, int stage, uint64_t tv);
> +void time_add(const char *name, int stage, uint64_t tv);
> +void time_add2(const char *name, int stage, uint64_t time1, uint64_t time2);
> +uint64_t save_total_time(void);

Please inline all these instead of adding new functions.

> +
>   /* SLIRP */
>   void do_info_slirp(Monitor *mon);
>
> diff --git a/vl.c b/vl.c
> index fcd7395..340cbe3 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -229,6 +229,12 @@ unsigned int nb_prom_envs = 0;
>   const char *prom_envs[MAX_PROM_ENVS];
>   int boot_menu;
>
> +/* Times */
> +static uint64_t time_save_total[3];
> +static uint64_t time_save_disk[3];
> +static uint64_t time_save_ram[3];
> +static uint64_t time_save_wait_input;

Please move these to savevm.c instead.  The implementation of the 
monitor command can also go to savevm.c.

Thanks,

Paolo

  reply	other threads:[~2011-07-13 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13 13:06 [Qemu-devel] [PATCH] Introduce "info migrate-times" monitor command Michal Novotny
2011-07-13 14:11 ` Paolo Bonzini [this message]
2011-07-14  8:45   ` Michal Novotny
2011-07-14  9:44     ` Paolo Bonzini
2011-07-14 10:05       ` Michal Novotny
2011-07-14 10:15         ` Paolo Bonzini
2011-07-14 10:20           ` Michal Novotny

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=4E1DA7A6.6060104@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=minovotn@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).