Add note for printing all dbgmsg entries on FreeBSD

I looked for a bit, and couldn't find any documentation on
how to print all logged dbgmsg entries, just messages since
the DTrace probe started, until @allanjude kindly pointed me
toward the sysctl.

So let's add that note where the DTrace probe is mentioned for
FreeBSD, so other people can find it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #12113
This commit is contained in:
Rich Ercolani 2021-05-25 21:08:27 -04:00 committed by GitHub
parent dce1bf99ec
commit 90c0524535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,9 +42,12 @@ kstat_t *zfs_dbgmsg_kstat;
/* /*
* Internal ZFS debug messages are enabled by default. * Internal ZFS debug messages are enabled by default.
* *
* # Print debug messages * # Print debug messages as they're logged
* dtrace -n 'zfs-dbgmsg { print(stringof(arg0)); }' * dtrace -n 'zfs-dbgmsg { print(stringof(arg0)); }'
* *
* # Print all logged dbgmsg entries
* sysctl kstat.zfs.misc.dbgmsg
*
* # Disable the kernel debug message log. * # Disable the kernel debug message log.
* sysctl vfs.zfs.dbgmsg_enable=0 * sysctl vfs.zfs.dbgmsg_enable=0
*/ */