From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH 4/7] xen: print online pCPUs and free pCPUs when dumping scheduler info Date: Mon, 16 Mar 2015 18:46:33 +0000 Message-ID: <55072509.9090800@eu.citrix.com> References: <20150316165642.10279.86684.stgit@Solace.station> <20150316170517.10279.43661.stgit@Solace.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150316170517.10279.43661.stgit@Solace.station> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli , Xen-devel Cc: Juergen Gross , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 03/16/2015 05:05 PM, Dario Faggioli wrote: > e.g., with `xl debug-key r'. This change adds something > like the following lines to the dump output: > > (XEN) Num online Cpus: 16, cpu_online_map: 0-15 > (XEN) Num free Cpus: 8, cpupool_free_cpus: 8-15 > > Meaning there are 16 pCPUs online, and they are pCPUs > 0-15, and that 8 of them, more specifically 8-15, are > not part of any cpupool. > > Signed-off-by: Dario Faggioli > Cc: Juergen Gross > Cc: George Dunlap > Cc: Jan Beulich > Cc: Keir Fraser > --- > xen/common/cpupool.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/xen/common/cpupool.c b/xen/common/cpupool.c > index cd6aab9..3bf0174 100644 > --- a/xen/common/cpupool.c > +++ b/xen/common/cpupool.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > #include > > #define for_each_cpupool(ptr) \ > @@ -658,6 +659,12 @@ int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op) > return ret; > } > > +static void _print_cpumap(const char *str, const cpumask_t *map) Is there a particular reason to put "_" in front of a static function? This has Juergen's Ack now, so that's just a suggestion / comment. :-) -George