Skip to contentSkip to conversation

netconsole using netpoll

RFC PATCH In review Matt Mackall 1 participant 1 message Oct 3, 2003

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

RFC PATCH 3/3 netconsole using netpoll

This patch uses the netpoll API to transmit kernel printks over UDP

 ml-mpm/Documentation/networking/netconsole.txt |   57 +++++++++++
 ml-mpm/drivers/net/Kconfig                     |    7 +
 ml-mpm/drivers/net/Makefile                    |    1 
 ml-mpm/drivers/net/netconsole.c                |  129 +++++++++++++++++++++++++
 ml-mpm/net/Kconfig                             |    5 
 5 files changed, 196 insertions(+), 3 deletions(-)

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 +2 -3
diff -puN net/Kconfig~netconsole net/Kconfig
@@ -671,11 +671,10 @@ source "net/irda/Kconfig"
 source "net/bluetooth/Kconfig"
 
 config NETPOLL
-	bool "Netpoll API"
+	def_bool NETCONSOLE
 
 config NETPOLL_RX
-	bool "Netpoll receive hooks"
-	depends on NETPOLL
+	def_bool NETCONSOLE
 
 config NETPOLL_TRAP
 	bool "Netpoll traffic trapping"
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 +1 -0
diff -puN drivers/net/Makefile~netconsole drivers/net/Makefile
@@ -188,3 +188,4 @@ obj-$(CONFIG_NET_TULIP) += tulip/
 obj-$(CONFIG_HAMRADIO) += hamradio/
 obj-$(CONFIG_IRDA) += irda/
 
+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
@@ -2455,6 +2455,13 @@ config SHAPER
 	  To compile this driver as a module, choose M here: the module
 	  will be called shaper.  If unsure, say N.
 
+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