All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Cc: Dario Faggioli <dario.faggioli@citrix.com>, jbeulich@suse.com
Subject: Re: [PATCH] perfc: count number of explicit vcpu yields
Date: Mon, 9 Nov 2015 14:14:30 +0000	[thread overview]
Message-ID: <5640AA46.80404@citrix.com> (raw)
In-Reply-To: <1447077658-6997-1-git-send-email-ian.campbell@citrix.com>

On 09/11/15 14:00, Ian Campbell wrote:
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

Reviewed-by: George Dunlap <george.dunlap@citrix.com>

> ---
>  xen/common/schedule.c        | 1 +
>  xen/include/xen/perfc_defn.h | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/xen/common/schedule.c b/xen/common/schedule.c
> index 292e9a0..86d6cc0 100644
> --- a/xen/common/schedule.c
> +++ b/xen/common/schedule.c
> @@ -896,6 +896,7 @@ long vcpu_yield(void)
>      struct vcpu * v=current;
>      spinlock_t *lock = vcpu_schedule_lock_irq(v);
>  
> +    SCHED_STAT_CRANK(sched_yield);
>      SCHED_OP(VCPU2OP(v), yield, v);
>      vcpu_schedule_unlock_irq(lock, v);
>  
> diff --git a/xen/include/xen/perfc_defn.h b/xen/include/xen/perfc_defn.h
> index 76ee803..034c7d3 100644
> --- a/xen/include/xen/perfc_defn.h
> +++ b/xen/include/xen/perfc_defn.h
> @@ -16,6 +16,7 @@ PERFCOUNTER(ipis,                   "#IPIs")
>  PERFCOUNTER(sched_irq,              "sched: timer")
>  PERFCOUNTER(sched_run,              "sched: runs through scheduler")
>  PERFCOUNTER(sched_ctx,              "sched: context switches")
> +PERFCOUNTER(sched_yield,            "sched: vcpu yield")
>  PERFCOUNTER(schedule,               "sched: specific scheduler")
>  PERFCOUNTER(dom_init,               "sched: dom_init")
>  PERFCOUNTER(dom_destroy,            "sched: dom_destroy")
> 

  parent reply	other threads:[~2015-11-09 14:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-09 14:00 [PATCH] perfc: count number of explicit vcpu yields Ian Campbell
2015-11-09 14:09 ` Jan Beulich
2015-11-09 14:14 ` George Dunlap [this message]
2015-11-09 14:53 ` Dario Faggioli
2015-11-09 15:02   ` Boris Ostrovsky
2015-11-09 15:14     ` Dario Faggioli
2015-11-09 15:23       ` Ian Campbell
2015-11-09 15:47         ` Dario Faggioli
2015-11-09 16:03           ` Konrad Rzeszutek Wilk

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=5640AA46.80404@citrix.com \
    --to=george.dunlap@citrix.com \
    --cc=dario.faggioli@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.