FreeBSD ZFS
The Zettabyte File System
Data Structures | Defines | Typedefs | Functions | Variables

sys/zfs_debug.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  zfs_dbgmsg

Defines

#define TRUE   1
#define FALSE   0
#define ZFS_DEBUG_DPRINTF   0x0001
#define ZFS_DEBUG_DBUF_VERIFY   0x0002
#define ZFS_DEBUG_DNODE_VERIFY   0x0004
#define ZFS_DEBUG_SNAPNAMES   0x0008
#define ZFS_DEBUG_MODIFY   0x0010
#define dprintf(...)   ((void)0)

Typedefs

typedef struct zfs_dbgmsg zfs_dbgmsg_t

Functions

void zfs_panic_recover (const char *fmt,...)
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

int zfs_flags

Define Documentation

#define dprintf (   ...)    ((void)0)

Definition at line 66 of file zfs_debug.h.

#define FALSE   0

Definition at line 38 of file zfs_debug.h.

#define TRUE   1

Definition at line 34 of file zfs_debug.h.

#define ZFS_DEBUG_DBUF_VERIFY   0x0002

Definition at line 54 of file zfs_debug.h.

#define ZFS_DEBUG_DNODE_VERIFY   0x0004

Definition at line 55 of file zfs_debug.h.

#define ZFS_DEBUG_DPRINTF   0x0001

Definition at line 53 of file zfs_debug.h.

#define ZFS_DEBUG_MODIFY   0x0010

Definition at line 57 of file zfs_debug.h.

#define ZFS_DEBUG_SNAPNAMES   0x0008

Definition at line 56 of file zfs_debug.h.


Typedef Documentation

typedef struct zfs_dbgmsg zfs_dbgmsg_t

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.

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

Definition at line 1248 of file spa_misc.c.


Variable Documentation

int zfs_flags

Definition at line 224 of file spa_misc.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines