]> xenbits.xensource.com Git - people/hx242/xen.git/commitdiff
xen/trace: Don't dump offline CPUs in debugtrace_dump_worker()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 21 May 2020 08:19:33 +0000 (09:19 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 May 2020 19:04:46 +0000 (20:04 +0100)
The 'T' debugkey reliably wedges on one of my systems, which has a sparse
APIC_ID layout due to a non power-of-2 number of cores per socket.  The
per_cpu(dt_cpu_data, cpu) calcution falls over the deliberately non-canonical
poison value.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/debugtrace.c

index c21ec99ee0986e20ab52f20f1c54d86603f35940..f3794b945376b896b09a11e16b88d4d5d131b514 100644 (file)
@@ -95,7 +95,7 @@ static void debugtrace_dump_worker(void)
 
     debugtrace_dump_buffer(dt_data, "global");
 
-    for ( cpu = 0; cpu < nr_cpu_ids; cpu++ )
+    for_each_online_cpu ( cpu )
     {
         char buf[16];