Skip to contentSkip to conversation

netpoll: netconsole

PATCH In review Matt Mackall 1 participant 1 message Sep 10, 2003

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

PATCH 2/3 netpoll: netconsole

This patch uses the netpoll API to transmit kernel printks over UDP for uses similar to serial console.

 l-mpm/Documentation/networking/netconsole.txt |   57 +++++++++++
 l-mpm/drivers/net/Kconfig                     |    7 +
 l-mpm/drivers/net/Makefile                    |    3 
 l-mpm/drivers/net/netconsole.c                |  129 ++++++++++++++++++++++++++
 l-mpm/net/Kconfig                             |    2 
 5 files changed, 197 insertions(+), 1 deletion(-)

diff -puN -L net/core/netconsole.c /dev/null /dev/null diff -puN net/core/Makefile~netconsole net/core/Makefile

net/Kconfig renamed from net/Kconfig~netconsole +1 -1
diff -puN net/Kconfig~netconsole net/Kconfig
@@ -704,6 +704,6 @@ endmenu
 source "drivers/net/Kconfig"
 
 config NETPOLL
-	def_bool KGDB
+	def_bool KGDB || NETCONSOLE
 
 endmenu
Documentation/networking/netconsole.txt new file +57 -0

57 lines not on this page · raw message

drivers/net/Makefile renamed from drivers/net/Makefile~netconsole +3 -0
diff -puN drivers/net/Makefile~netconsole drivers/net/Makefile
@@ -196,3 +196,6 @@ obj-$(CONFIG_IRDA) += irda/
 
 
 include $(TOPDIR)/drivers/usb/net/Makefile.mii
+
+# Must come after all NICs it might use
+obj-$(CONFIG_NETCONSOLE) += netconsole.o
drivers/net/Kconfig renamed from drivers/net/Kconfig~netconsole +7 -0
diff -puN drivers/net/Kconfig~netconsole drivers/net/Kconfig
@@ -2718,6 +2718,13 @@ config SHAPER
 config NET_POLL_CONTROLLER
 	def_bool KGDB
 
+config NETCONSOLE
+	tristate "Network console logging support"
+	depends on NETDEVICES
+	---help---
+	If you want to log kernel messages over the network, enable this.
+	See Documentation/networking/netconsole.txt for details.
+
 source "drivers/net/wan/Kconfig"
 
 source "drivers/net/pcmcia/Kconfig"
drivers/net/netconsole.c new file +129 -0

129 lines not on this page · raw message

_

Signature · 1 line
Matt Mackall : http://www.selenic.com : of or relating to the moon