netconsole: Append kernel version to message
authorBreno Leitao <leitao@debian.org>
Fri, 14 Jul 2023 11:13:29 +0000 (04:13 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Jul 2023 09:04:59 +0000 (11:04 +0200)
commitc62c0a17f9b7398022f9eebe547878033264f81f
tree5a9d6e98dfc0f0839dd06e660265b47cc290be4b
parenta7f6eb19e26dc81b1bc469689b9a4c2caceaf852
netconsole: Append kernel version to message

Create a new netconsole runtime option that prepends the kernel version in
the netconsole message. This is useful to map kernel messages to kernel
version in a simple way, i.e., without checking somewhere which kernel
version the host that sent the message is using.

If this option is selected, then the "<release>," is prepended before the
netconsole message. This is an example of a netconsole output, with
release feature enabled:

6.4.0-01762-ga1ba2ffe946e;12,426,112883998,-;this is a test

Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20230714111330.3069605-1-leitao@debian.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/networking/netconsole.rst
drivers/net/netconsole.c