Skip to content

Magic SysRq extensions

Andrzej Pietrasiewicz linux-devicetree linux-input lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tty/sysrq: Remove linux,sysrq-reset-seqdrivers/tty/sysrq.c+0 -372 replies
2/6dt-bindings: input: Remove linux,sysrq-reset-seq bindingDocumentation/devicetree/bindings/input/input-reset.txt+0 -330 replies
3/6tty/sysrq: Allow configurable SysRq keydrivers/tty/sysrq.c+11 -310 replies
4/6tty/sysrq: Extend the sysrq_key_table to cover capital lettersdrivers/tty/sysrq.c+47 -20 replies
5/6tty/sysrq: Add configurable handler to signal a processdrivers/tty/sysrq.c+122 -11 reply
6/6tty/sysrq: Add configurable handler to execute a compound actiondrivers/tty/sysrq.c+72 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Magic SysRq extensions

Some systems, e.g. chromebooks, don't have a physical SysRq key. Patch 3/6 allows configuring which key acts as SysRq. If unconfigured, the default KEY_SYSRQ is used.

The sysrq_key_table has effectively run out of free slots. Patch 4/6 extends the said table to accommodate capital letters, so on top of 0-9 and 'a'-'z' 'A'-'Z' are added.

Userland might want to be able to signal a specifically named process with a specific signal as a result of some SysRq action. Patch 5/6 adds such a capability. The name of the signalled process, the name of the signal to be delivered to it and, optionally, the expected name of the target process parent are configured. Once configured, the action is available under Alt-Shift-SysRq-s.

Userland might also want to be able to execute a compound action, e.g. the famous "Raising Elephants Is So Utterly Boring", or, say, 'w' (show blocked tasks), followed by 's' (sync), followed by 1000 ms delay and then followed by 'c' (crash). Patch 6/6 adds such a capability. The (short) names of component actions are specified with a string. Optional delays between actions are specified with a colon and the amount of milliseconds, e.g. "reis:1000ub" or "ws:1000c". Once configured, the action is available under Alt-Shift-SysRq-c.

While at it, remove unused linux,sysrq-reset-seq handling code and the associated binding (patches 1/6 and 2/6).

Andrzej Pietrasiewicz (6):
tty/sysrq: Remove linux,sysrq-reset-seq
dt-bindings: input: Remove linux,sysrq-reset-seq binding tty/sysrq: Allow configurable SysRq key
tty/sysrq: Extend the sysrq_key_table to cover capital letters tty/sysrq: Add configurable handler to signal a process tty/sysrq: Add configurable handler to execute a compound action

 .../devicetree/bindings/input/input-reset.txt |  33 ---
 drivers/tty/sysrq.c                           | 268 ++++++++++++++++--
 2 files changed, 238 insertions(+), 63 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/input/input-reset.txt

base-commit: 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8

Signature · 1 line
2.17.1