KGDB: This is the simple KGDB over Ethernet I/O driver that NET_POLL
Subsystems (3)
PATCH 6/21 KGDB: This is the simple KGDB over Ethernet I/O driver that NET_POLL
eth.patch
From: Jason Wessel <[email protected]>
CC: [email protected]
Subject: [PATCH] This is the simple KGDB over Ethernet I/O driver that NET_POLL
At one point this was very similar to the version Matt Mackall wrote to allow for the use of KGDB over ethernet. Since then it has been reworked to fit into the unified KGDB model.
--- Documentation/kernel-parameters.txt | 7 drivers/net/Makefile | 1 drivers/net/kgdboe.c | 294 ++++++++++++++++++++++++++++++++++++ lib/Kconfig.kgdb | 22 ++ 4 files changed, 324 insertions(+) create mode 100644 drivers/net/kgdboe.c
drivers/net/Makefile +1 -0
@@ -231,6 +231,7 @@ obj-$(CONFIG_ETRAX_ETHERNET) += cris/ obj-$(CONFIG_ENP2611_MSF_NET) += ixp2000/ obj-$(CONFIG_NETCONSOLE) += netconsole.o +obj-$(CONFIG_KGDBOE) += kgdboe.o obj-$(CONFIG_FS_ENET) += fs_enet/
drivers/net/kgdboe.c new file +294 -0
294 lines not on this page · raw message
lib/Kconfig.kgdb +22 -0
@@ -65,8 +65,30 @@ config KGDB_8250_NOMODULE Uses generic serial port (8250) to communicate with the host GDB. This is independent of the normal (SERIAL_8250) driver for this chipset. + +config KGDBOE_NOMODULE + bool "KGDB: On ethernet - in kernel" + depends on NET + select KGDBOE + help + Uses the NETPOLL API to communicate with the host GDB via UDP. + In order for this to work, the ethernet interface specified must + support the NETPOLL API, and this must be initialized at boot. + See the documentation for syntax. endchoice +config KGDBOE + tristate "KGDB: On ethernet" if !KGDBOE_NOMODULE + depends on m && KGDB && NET + select NETPOLL + select NETPOLL_TRAP + select NET_POLL_CONTROLLER + help + Uses the NETPOLL API to communicate with the host GDB via UDP. + In order for this to work, the ethernet interface specified must + support the NETPOLL API, and this must be initialized at boot. + See the documentation for syntax. + config KGDB_8250 tristate "KGDB: On generic serial port (8250)" if !KGDB_8250_NOMODULE depends on m && KGDB_ONLY_MODULES
Documentation/kernel-parameters.txt +7 -0
@@ -780,6 +780,13 @@ and is between 256 and 4096 characters. ips= [HW,SCSI] Adaptec / IBM ServeRAID controller See header of drivers/scsi/ips.c. + kgdboe= [HW] Setup the local ip information and host ip + information when the network driver supports + NETPOLL and kgdboe is configured as a built in. + Options are: + [src-port]@<src-ip>/[dev],[tgt-port]@<tgt-ip>/<tgt-mac> + IE: [email protected]/,@10.0.0.1.3/ + ports= [IP_VS_FTP] IPVS ftp helper module Default is 21. Up to 8 (IP_VS_APP_MAX_PORTS) ports
Quoted 8 lines · Jason Wessel
Signed-off-by Jason Wessel <[email protected]>eth.patch
From: Jason Wessel <[email protected]>
CC: [email protected]
Subject: [PATCH] This is the simple KGDB over Ethernet I/O driver thatNET_POLL
Quoted 6 lines
At one point this was very similar to the version Matt Mackall wrote to allow for the use of KGDB over ethernet. Since then it has been reworked to fit into the unified KGDB model.
Signed-off-by Tom Rini <[email protected]>Signed-off-by Jason Wessel <[email protected]>
Looks fine to me.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.