From 93b1fe0ed144e3eba3efbe5a2623cc17ca28ad0f Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 17 May 2018 19:06:44 +0000 Subject: [PATCH] Remove a reference to NETDUMP_DEBUG, and document sysctls. NETDUMP_DEBUG was removed and replaced with a sysctl which enables debug output without requiring a recompile. --- share/man/man4/netdump.4 | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/share/man/man4/netdump.4 b/share/man/man4/netdump.4 index 202f97ab202d..67b37e4c5b02 100644 --- a/share/man/man4/netdump.4 +++ b/share/man/man4/netdump.4 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 4, 2018 +.Dd May 17, 2018 .Dt NETDUMP 4 .Os .Sh NAME @@ -36,11 +36,6 @@ your kernel configuration file: .Bd -ragged -offset indent .Cd "options NETDUMP" .Ed -.Pp -Debug output can be enabled by adding the following line: -.Bd -ragged -offset indent -.Cd "options NETDUMP_DEBUG" -.Ed .Sh DESCRIPTION netdump is a UDP-based protocol for transmitting kernel dumps to a remote host. A netdump client is a panicking kernel, and a netdump server is a host @@ -112,6 +107,30 @@ The following network drivers support netdump: .Xr mlx4en 4 , .Xr re 4 , .Xr vtnet 4 . +.Sh SYSCTL VARIABLES +The following variables are available as both +.Xr sysctl 8 +variables and +.Xr loader 8 +variables: +.Bl -tag -width "indent" +.It Va net.netdump.debug +Control debug message verbosity. +Debug messages are disabled by default, but are useful when troubleshooting +or when developing driver support. +.It Va net.netdump.path +Specify a path relative to the server's dump directory in which to store +the dump. +For example, if the +.Nm +server is configured to store dumps in +.Pa /var/crash , +a path of +.Dq foo +will cause the server to attempt to store dumps from the client in +.Pa /var/crash/foo . +The server will not automatically create the relative directory. +.El .Sh SEE ALSO .Xr decryptcore 8 , .Xr dumpon 8 ,