Skip to content

Commit

Permalink
Add note for printing all dbgmsg entries on FreeBSD
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rincebrain authored May 26, 2021
1 parent dce1bf9 commit 90c0524
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion module/os/freebsd/zfs/zfs_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 90c0524

Please sign in to comment.