diff options
author | Rich Ercolani <[email protected]> | 2021-05-25 21:08:27 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-05-27 22:31:57 -0700 |
commit | fa7ee48e101a06d90030c155a681b9f4e39a65ef (patch) | |
tree | 5352aef8cf9ca4f1ff7ec0d9f7e2f516652440c4 | |
parent | d6bedbbc44b86454d389bb9da40c9120060867d2 (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
-rw-r--r-- | module/os/freebsd/zfs/zfs_debug.c | 5 |
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 */ |