powerpc/xmon: Add support for running a command on all cpus in xmon
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Tue, 1 Jun 2021 07:48:01 +0000 (13:18 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Jun 2021 04:47:19 +0000 (14:47 +1000)
commitb8ee3e6d6c5eec7e66de82449382f1a206db2046
tree66d88a13d788036e4b08ad155f3596c256f33c07
parentdcf57af201eb2ba401e62df374afb7543c81b523
powerpc/xmon: Add support for running a command on all cpus in xmon

It is sometimes desirable to run a command on all cpus in xmon. A
typical scenario is to obtain the backtrace from all cpus in xmon if
there is a soft lockup. Add rudimentary support for the same. The
command to be run on all cpus should be prefixed with 'c#'. As an
example, 'c#t' will run 't' command and produce a backtrace on all cpus
in xmon.

Since many xmon commands are not sensible for running in this manner, we
only allow a predefined list of commands -- 'r', 'S' and 't' for now.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210601074801.617363-1-naveen.n.rao@linux.vnet.ibm.com
arch/powerpc/xmon/xmon.c