aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGuilherme G. Piccoli <[email protected]>2017-03-22 16:27:51 -0300
committerMichael Ellerman <[email protected]>2017-03-28 10:52:01 +1100
commitde78ae6c9ef55d9ded036c8e29d9364e1ce5f6b7 (patch)
treee70328b63d61c53260098aef326628845f62d321 /tools/perf/scripts/python
parentb561783c7bfd4bcb18ad30e1410ee19500c36a7c (diff)
powerpc/xmon: add debugfs entry for xmon
Currently the xmon debugger is set only via kernel boot command-line. It's disabled by default, and can be enabled with "xmon=on" on the command-line. Also, xmon may be accessed via sysrq mechanism. But we cannot enable/disable xmon in runtime, it needs kernel reload. This patch introduces a debugfs entry for xmon, allowing user to query its current state and change it if desired. Basically, the "xmon" file to read from/write to is under the debugfs mount point, on powerpc directory. It's a simple attribute, value 0 meaning xmon is disabled and value 1 the opposite. Writing these states to the file will take immediate effect in the debugger. Signed-off-by: Guilherme G. Piccoli <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions