aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorRich Ercolani <[email protected]>2021-05-25 21:08:27 -0400
committerGitHub <[email protected]>2021-05-25 18:08:27 -0700
commit90c05245350334a7d013c5e394dc06a17d90ccec (patch)
tree7b1c24953d6584b4d8faf1d2f5875fcbd200414c /module/os
parentdce1bf99ecbcb6a82756329f4a87cea6c8284277 (diff)
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 <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Allan Jude <[email protected]> Signed-off-by: Rich Ercolani <[email protected]> Closes #12113
Diffstat (limited to 'module/os')
-rw-r--r--module/os/freebsd/zfs/zfs_debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/os/freebsd/zfs/zfs_debug.c b/module/os/freebsd/zfs/zfs_debug.c
index 74742ad36..7239db808 100644
--- a/module/os/freebsd/zfs/zfs_debug.c
+++ b/module/os/freebsd/zfs/zfs_debug.c
@@ -42,9 +42,12 @@ kstat_t *zfs_dbgmsg_kstat;
/*
* 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)); }'
*
+ * # Print all logged dbgmsg entries
+ * sysctl kstat.zfs.misc.dbgmsg
+ *
* # Disable the kernel debug message log.
* sysctl vfs.zfs.dbgmsg_enable=0
*/