Displaying 1 result from an estimated 1 matches for "dump_console_ring_key".
2012 Sep 29
5
[PATCH] xen/console: introduce a 'w' debug-key that dumps the console ring
...953fda6106 -r 20f6976e28a1 xen/drivers/char/console.c
--- a/xen/drivers/char/console.c Fri Sep 28 10:59:41 2012 +0200
+++ b/xen/drivers/char/console.c Sat Sep 29 05:00:05 2012 +0000
@@ -264,6 +264,49 @@ static void sercon_puts(const char *s)
serial_puts(sercon_handle, s);
}
+static void dump_console_ring_key(unsigned char key)
+{
+ uint32_t idx, len, sofar, c;
+ unsigned int order;
+ char *buf;
+
+ printk("''%c'' pressed -> dumping console ring buffer (dmesg)\n", key);
+
+ /* create a buffer in which we''ll copy the ring in the correct
+ order a...