Skip to contentSkip to conversation

Netconsole debugging tool for 2.6

RFC PATCH Jon Burgess 3 participants 4 messages Aug 12, 2003

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
Quoted 8 lines · Jon Burgess
Quoted 1 line · Matt Mackall

I've decided to take a stab at resurrecting Ingo's netconsole patch.

Is this different from the netdump patch which RedHat include in their kernel?

The RH kernel patch is at
http://www.kernelnewbies.org/kernels/rh9/SOURCES/linux-2.4.18-netdump.patch

Ahh, so that's what's become of it.

Theirs:
- does crashdumps
- does syslog without levels
- has hooks for receive

Mine:
- works in 2.6
- has non-appalling configuration
- works as a built-in and is available earlier in boot
- does syslog with levels (haven't posted this though)

Signature · 1 line
Matt Mackall : http://www.selenic.com : of or relating to the moon
#2 lore raw
Quoted 17 lines · Matt Mackall
Quoted 8 lines · Jon Burgess
Quoted 1 line · Matt Mackall

I've decided to take a stab at resurrecting Ingo's netconsole patch.

Is this different from the netdump patch which RedHat include in their kernel?

The RH kernel patch is at
http://www.kernelnewbies.org/kernels/rh9/SOURCES/linux-2.4.18-netdump.patch

Ahh, so that's what's become of it.

Theirs:
- does crashdumps
- does syslog without levels
- has hooks for receive

Quoted 5 lines

Mine:
- works in 2.6
- has non-appalling configuration
- works as a built-in and is available earlier in boot
- does syslog with levels (haven't posted this though)

netconsole does syslog with levels, too. I agree netdump/netconsole have complete awful configuration. I was thinking netlink would be a good configurator.

The kernel printk <foo> prefixes map into syslog quite nicely.

In any case, there is my own active effort into cleaning up netdump to be less x86-specific, and get it ready for mainline.

Maybe we can start discussing converging all these implementations on [email protected]? (that's where the networking developers live)

Jeff

#3 lore raw
Quoted 24 lines · Jeff Garzik
Quoted 17 lines · Matt Mackall
Quoted 8 lines · Jon Burgess
Quoted 1 line · Matt Mackall

I've decided to take a stab at resurrecting Ingo's netconsole patch.

Is this different from the netdump patch which RedHat include in their kernel?

The RH kernel patch is at
http://www.kernelnewbies.org/kernels/rh9/SOURCES/linux-2.4.18-netdump.patch

Ahh, so that's what's become of it.

Theirs:
- does crashdumps
- does syslog without levels
- has hooks for receive

Quoted 5 lines

Mine:
- works in 2.6
- has non-appalling configuration
- works as a built-in and is available earlier in boot
- does syslog with levels (haven't posted this though)

Quoted 3 lines

netconsole does syslog with levels, too. I agree netdump/netconsole have complete awful configuration. I was thinking netlink would be a good configurator.

My personal goal is to have it configured in time to catch stuff in the boot process so I can avoid plugging into the serial console, which means everything on the command line. So I've got code to parse the following:

netconsole=[src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]

Quoted 1 line

The kernel printk <foo> prefixes map into syslog quite nicely.

..and are stripped by printk before the console code is called. The netdump patch logs everything at level 5:

+ send_syslog_skb(dev, syslog_line, syslog_chars, 5);

My patch adds another entry to console struct for writing with levels. And adds hostname to messages. Still needs timestamp.

Quoted 5 lines

In any case, there is my own active effort into cleaning up netdump to be less x86-specific, and get it ready for mainline.

Maybe we can start discussing converging all these implementations on [email protected]? (that's where the networking developers live)

Not sure that's the right place for it, simply because that's the one group of people it's not terribly useful for. Especially when I start talking about hooking it up to kgdb. And the network bits are pretty much there already.

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