[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86: shorten debug key 'u' output
commit 11964811d7ace3e6cda2442d6f9898688c282692 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Wed Sep 23 11:13:21 2015 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed Sep 23 11:13:21 2015 +0200 x86: shorten debug key 'u' output ... by grouping sequences of contiguous CPUs. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/numa.c | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c index 132d694..3041b24 100644 --- a/xen/arch/x86/numa.c +++ b/xen/arch/x86/numa.c @@ -365,7 +365,7 @@ EXPORT_SYMBOL(node_data); static void dump_numa(unsigned char key) { s_time_t now = NOW(); - unsigned int i, j; + unsigned int i, j, n; int err; struct domain *d; struct page_info *page; @@ -389,8 +389,26 @@ static void dump_numa(unsigned char key) NODE_DATA(i)->node_id); } + j = cpumask_first(&cpu_online_map); + n = 0; for_each_online_cpu ( i ) - printk("CPU%d -> NODE%d\n", i, cpu_to_node[i]); + { + if ( i != j + n || cpu_to_node[j] != cpu_to_node[i] ) + { + if ( n > 1 ) + printk("CPU%u...%u -> NODE%d\n", j, j + n - 1, cpu_to_node[j]); + else + printk("CPU%u -> NODE%d\n", j, cpu_to_node[j]); + j = i; + n = 1; + } + else + ++n; + } + if ( n > 1 ) + printk("CPU%u...%u -> NODE%d\n", j, j + n - 1, cpu_to_node[j]); + else + printk("CPU%u -> NODE%d\n", j, cpu_to_node[j]); rcu_read_lock(&domlist_read_lock); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |