]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf97615ef5970da251d24c923f010e2db9daaa6b
tree66d88a13d788036e4b08ad155f3596c256f33c07
parent6f8f7aa2029854a2c529e45c7f7a6d000b9785c4
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