All of lore.kernel.org
 help / color / mirror / Atom feed
* Always print panic message on current console
@ 2009-10-10 20:51 Bernhard Walle
  2009-10-10 20:51 ` [PATCH 1/5] Only define/declare kmsg_redirect when CONFIG_VT_CONSOLE is set Bernhard Walle
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Bernhard Walle @ 2009-10-10 20:51 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Bernhard Walle

The kernel offers with TIOCL_GETKMSGREDIRECT ioctl() the possibility to
redirect the kernel messages to a specific console.

However, since it's not possible to switch to the kernel message console after
a panic(), it would be nice if the kernel would print the panic message on the
current console.

As suggested by Andrew, this patch series adds a new interface to access
the global kmsg_redirect variable by a function to be able to use it in
code where CONFIG_VT_CONSOLE is not set (kernel/panic.c).

The patch series makes kmsg_redirect a static variable and all kernel
code outside of vt.c accesses that variable by the vt_set_kmsg_redirect()
and vt_get_kmsg_redirect() functions.


Signed-off-by: Bernhard Walle <bernhard@bwalle.de>

---
 drivers/char/vt.c      |   41 ++++++++++++++++++++++++++++++++++++++++-
 include/linux/tty.h    |    2 --
 include/linux/vt.h     |   18 ++++++++++++++++++
 kernel/panic.c         |    4 ++++
 kernel/power/console.c |    8 ++++----
 5 files changed, 66 insertions(+), 7 deletions(-)



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-10-14  0:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-10 20:51 Always print panic message on current console Bernhard Walle
2009-10-10 20:51 ` [PATCH 1/5] Only define/declare kmsg_redirect when CONFIG_VT_CONSOLE is set Bernhard Walle
2009-10-10 22:56   ` Alan Cox
2009-10-10 20:51 ` [PATCH 2/5] Add setter/getter interface for kmsg_redirect Bernhard Walle
2009-10-10 22:58   ` Alan Cox
2009-10-10 20:51 ` [PATCH 3/5] Use vt_get_kmsg_redirect() and vt_set_kmsg_redirect() Bernhard Walle
2009-10-10 23:06   ` Alan Cox
2009-10-10 23:25     ` Alan Cox
2009-10-10 20:51 ` [PATCH 4/5] Make kmsg_redirect static Bernhard Walle
2009-10-10 20:51 ` [PATCH 5/5] Always print panic message on current console Bernhard Walle
2009-10-12 17:36   ` Andi Kleen
2009-10-12 18:24     ` Bernhard Walle
2009-10-12 18:30       ` Jesse Barnes
2009-10-12 18:34         ` Bernhard Walle
2009-10-14  0:02           ` Jason Wessel
2009-10-12 18:42         ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.