Skip to content

RFC proposal for dynamic configurable netconsole

Keiichi KII lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7marking __initdrivers/net/netconsole.c+2 -21 reply
2/7support multiple loggingdrivers/net/Kconfig drivers/net/netconsole.c+133 -201 reply
3/7add interface for netconsole using sysfsdrivers/net/netconsole.c+206 -12 replies
4/7using symlink for the net_devicedrivers/net/netconsole.c+83 -17 replies
5/7switch function of netpolldrivers/net/netconsole.c+42 -21 reply
6/7add ioctls for adding/removing targetdrivers/net/netconsole.c fs/compat_ioctl.c include/linux/netconsole.h+120 -05 replies
7/7update documentationDocumentation/networking/netconsole.txt+109 -21 reply

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchMatt Mackall
1/7A-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC][PATCH -mm take5 0/7] proposal for dynamic configurable netconsole

From: Keiichi KII <[email protected]>

The netconsole is a very useful module for collecting kernel message under certain circumstances(e.g. disk logging fails, serial port is unavailable).

But current netconsole is not flexible. For example, if you want to change ip address for logging agent, in the case of built-in netconsole, you can't change config except for changing boot parameter and rebooting your system, or in the case of module netconsole, you need to remove it and reload with different parameters.

By adopting my patches, the current netconsole becomes a little complex. But the kernel messages(especially panic messages) is significant information
to solve bugs and troubles promptly and we have been losing serial console
port with PCs and Servers.

I think that we need the environment in which we can collect kernel messages flexibly.

So, I propose the following extended features for netconsole.

1) support for multiple logging agents.
2) add interface to access each parameter of netconsole using sysfs.

[changes since take4]
-change kernel base from 2.6.21-rc6-mm1 to 2.6.22-rc4-mm2. -update Documentation/networking/netconsole.txt -fix Kconfig
-avoid forward-declared statics
-fix coding style
-use spin_lock_irqsave() and _restore()
-fix race condition(netconsole_event())
-remove extra lock(write in sysfs)
-change ioctl's location
-use kasprintf()
-error handling

Your comments are very welcome.

---