[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 6/7] xen: adds vNUMA info debug-key u



>>> On 14.11.13 at 04:27, Elena Ufimtseva <ufimtseva@xxxxxxxxx> wrote:
> --- a/xen/arch/x86/numa.c
> +++ b/xen/arch/x86/numa.c
> @@ -389,6 +389,25 @@ static void dump_numa(unsigned char key)
>  
>               for_each_online_node(i)
>                       printk("    Node %u: %u\n", i, page_num_node[i]);
> +
> +             if (d->vnuma.nr_vnodes > 0)
> +             {
> +                     printk("    Domain has %d vnodes\n", 
> d->vnuma.nr_vnodes);
> +                     for (i = 0; i < d->vnuma.nr_vnodes; i++) {
> +                             printk("        vnode %d - pnode %d:", i,
> +                                     d->vnuma.vnode_numamap[i] >= 
> MAX_NUMNODES ?
> +                                     -1 : d->vnuma.vnode_numamap[i]);
> +                             printk(" %"PRIu64" MB \n",
> +                                     (d->vnuma.vmemrange[i].end -
> +                                     d->vnuma.vmemrange[i].start) >> 20);
> +                     }
> +                     printk("    Domain vcpu to vnode: \n");
> +                     for (i = 0; i < d->max_vcpus; i++)
> +                             printk("%s%d %s", i % 8 == 0 ? "    " : "",
> +                                     d->vnuma.vcpu_to_vnode[i],
> +                                     (i + 1) % 8 == 0 ? "\n" : "");
> +                     printk("\n");
> +             }

Looks okay, but needs to be cleaned up coding style wise.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.