summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/cpu_setup_power.S
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-11-06 13:21:17 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-11-25 14:30:27 +1100
commit56144ec7c93f6f18aa878560074633ac3ad16896 (patch)
tree09ac60d4798d3f2cc06b9f7ea0c15a69f35d0c00 /arch/powerpc/kernel/cpu_setup_power.S
parentebb242d56bbe14af6ea25cf5e45440df4c26b4b1 (diff)
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>
Diffstat (limited to 'arch/powerpc/kernel/cpu_setup_power.S')
0 files changed, 0 insertions, 0 deletions