Skip to contentSkip to conversation

powerpc: Document xmon options

PATCH In review Gustavo Romero 2 participants 3 messages Aug 15, 2019 – Aug 28, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 powerpc: Document xmon options

Document all options currently supported by xmon debugger.

---
 .../admin-guide/kernel-parameters.txt         | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +19 -0
index 7ccd158b3894..6d495aab4d0b 100644
@@ -5305,3 +5305,22 @@
 			A hex value specifying bitmask with supplemental xhci
 			host controller quirks. Meaning of each bit can be
 			consulted in header drivers/usb/host/xhci.h.
+
+	xmon		[PPC]
+			Format: { early | on | rw | ro | off }
+			Controls if xmon debugger is enabled. Default is off.
+			Passing only "xmon" is equivalent to "xmon=early".
+			early	Call xmon as early as possible on boot; xmon
+				debugger is called from setup_arch().
+			on	xmon debugger hooks will be installed so xmon
+				is only called on a kernel crash. Default mode,
+				i.e. either "ro" or "rw" mode, is controlled
+				with CONFIG_XMON_DEFAULT_RO_MODE.
+			rw	xmon debugger hooks will be installed so xmon
+				is called only on a kernel crash, mode is write,
+				meaning SPR registers, memory and, other data
+				can be written using xmon commands.
+			ro 	same as "rw" option above but SPR registers,
+				memory, and other data can't be written using
+				xmon commands.
+			off	xmon is disabled.
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 selftests/powerpc: Ignore generated files

Currently some binary files which are generated when tests are compiled are not ignored by git, so 'git status' catch them.

For copyloops test, fix wrong binary names already in .gitignore. For ptrace, security, and stringloops tests add missing binary names to the .gitignore file.

---
 tools/testing/selftests/powerpc/copyloops/.gitignore   | 8 ++++----
 tools/testing/selftests/powerpc/ptrace/.gitignore      | 3 +++
 tools/testing/selftests/powerpc/security/.gitignore    | 1 +
 tools/testing/selftests/powerpc/stringloops/.gitignore | 5 ++++-
 4 files changed, 12 insertions(+), 5 deletions(-)
 create mode 100644 tools/testing/selftests/powerpc/security/.gitignore
tools/testing/selftests/powerpc/copyloops/.gitignore +4 -4
index ce12cd0e2967..de158104912a 100644
@@ -1,13 +1,13 @@
 copyuser_64_t0
 copyuser_64_t1
 copyuser_64_t2
-copyuser_power7_t0
-copyuser_power7_t1
+copyuser_p7_t0
+copyuser_p7_t1
 memcpy_64_t0
 memcpy_64_t1
 memcpy_64_t2
-memcpy_power7_t0
-memcpy_power7_t1
+memcpy_p7_t0
+memcpy_p7_t1
 copyuser_64_exc_t0
 copyuser_64_exc_t1
 copyuser_64_exc_t2
tools/testing/selftests/powerpc/ptrace/.gitignore +3 -0
index 07ec449a2767..dce19f221c46 100644
@@ -10,3 +10,6 @@ ptrace-tm-spd-vsx
 ptrace-tm-spr
 ptrace-hwbreak
 perf-hwbreak
+core-pkey
+ptrace-pkey
+ptrace-syscall
tools/testing/selftests/powerpc/security/.gitignore new file +1 -0
new file mode 100644
index 000000000000..0b969fba3beb
@@ -0,0 +1 @@
+rfi_flush
tools/testing/selftests/powerpc/stringloops/.gitignore +4 -1
index 0b43da74ee46..31a17e0ba884 100644
@@ -1 +1,4 @@
-memcmp
+memcmp_64
+memcmp_32
+strlen
+strlen_32
Signature · 1 line
2.17.1