OSDN Git Service

powerpc/xmon: Add option to show uptime information
authorGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Mon, 18 Sep 2017 14:16:58 +0000 (11:16 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 6 Oct 2017 09:46:38 +0000 (20:46 +1100)
commit59d3391e8cf274097c42369866070c565891bae5
treeb13b82a9917cd2b10e824de8e119fee947ed91e8
parentc6baa077b784c3b37391a8c11f433e3f881a80df
powerpc/xmon: Add option to show uptime information

It might be useful to quickly get the uptime of a running system on
xmon, without needing to grab data from memory and doing math on
struct addresses.

For example, it'd be useful to check for how long after a crash a
system is on xmon shell or if some test was started after the first
test crashed (and this 2nd test crashed too into xmon).

This small patch adds the 'U' command, to accomplish this.

Suggested-by: Murilo Fossa Vicentini <muvic@linux.vnet.ibm.com>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
[mpe: Display units (seconds), add sync()/__delay() sequence]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c