FreeBSD ZFS
The Zettabyte File System
Functions | Variables

zfs_debug.c File Reference

#include <sys/zfs_context.h>
Include dependency graph for zfs_debug.c:

Go to the source code of this file.

Functions

void zfs_dbgmsg_init (void)
void zfs_dbgmsg_fini (void)
void zfs_dbgmsg (const char *fmt,...)
 Print these messages by running: echo zfs_dbgmsg | mdb -k.

Variables

list_t zfs_dbgmsgs
int zfs_dbgmsg_size
kmutex_t zfs_dbgmsgs_lock
int zfs_dbgmsg_maxsize = 1<<20

Function Documentation

void zfs_dbgmsg ( const char *  fmt,
  ... 
)

Print these messages by running: echo zfs_dbgmsg | mdb -k.

Monitor these messages by running: dtrace -q -n 'zfs-dbgmsg{printf("%s\n", stringof(arg0))}'

Definition at line 63 of file zfs_debug.c.

void zfs_dbgmsg_fini ( void  )

Definition at line 42 of file zfs_debug.c.

void zfs_dbgmsg_init ( void  )

Definition at line 34 of file zfs_debug.c.


Variable Documentation

int zfs_dbgmsg_maxsize = 1<<20

Definition at line 31 of file zfs_debug.c.

Definition at line 29 of file zfs_debug.c.

list_t zfs_dbgmsgs

Definition at line 28 of file zfs_debug.c.

kmutex_t zfs_dbgmsgs_lock

Definition at line 30 of file zfs_debug.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines