]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: Add 'dt' command to dump trace buffers
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 6 Nov 2015 02:21:17 +0000 (13:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Nov 2016 03:30:27 +0000 (14:30 +1100)
commit04cccfcbf9cbc4c67880dbed7b379ba2ee05f102
tree09ac60d4798d3f2cc06b9f7ea0c15a69f35d0c00
parent46cca74eb45c85372bab0f07bfa7deb66ccf93ab
powerpc/xmon: Add 'dt' command to dump trace buffers

There is a nice interface for asking ftrace to dump all its tracing
buffers. The only down side for use in xmon is that it uses printk.
Depending on circumstances printk may not work when in xmon, but it also
may, so add a 'dt' command which dumps the ftrace buffers, and add a
note to the help to mentiont that it uses printk.

Calling this routine also disables tracing, which is problematic if you
return from xmon and expect the system to keep operating normally. So
after we do the dump turn tracing back on.

Both functions already have nop versions defined for when ftrace is not
enabled, so we don't need any extra #ifdefs.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c