Skip to content

Commit f1aa0e4

Browse files
sacsantmpe
authored andcommitted
powerpc/xmon: Dump XIVE information for online-only processors.
dxa command in XMON debugger iterates through all possible processors. As a result, empty lines are printed even for processors which are not online. CPU 47:pp=00 CPPR=ff IPI=0x0040002f PQ=-- EQ idx=699 T=0 00000000 00000000 CPU 48: CPU 49: Restrict XIVE information(dxa) to be displayed for online processors only. Signed-off-by: Sachin Sant <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/164139226833.12930.272224382183014664.sendpatchset@MacBook-Pro.local
1 parent 32a1bda commit f1aa0e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/xmon/xmon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2817,12 +2817,12 @@ static void dump_all_xives(void)
28172817
{
28182818
int cpu;
28192819

2820-
if (num_possible_cpus() == 0) {
2820+
if (num_online_cpus() == 0) {
28212821
printf("No possible cpus, use 'dx #' to dump individual cpus\n");
28222822
return;
28232823
}
28242824

2825-
for_each_possible_cpu(cpu)
2825+
for_each_online_cpu(cpu)
28262826
dump_one_xive(cpu);
28272827
}
28282828

0 commit comments

Comments
 (0)