FreeBSD ZFS
The Zettabyte File System
|
#include <sys/param.h>
#include <sys/stdint.h>
#include <sys/note.h>
#include <sys/kernel.h>
#include <sys/debug.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/sysmacros.h>
#include <sys/bitmap.h>
#include <sys/cmn_err.h>
#include <sys/kmem.h>
#include <sys/taskq.h>
#include <sys/taskqueue.h>
#include <sys/conf.h>
#include <sys/mutex.h>
#include <sys/rwlock.h>
#include <sys/kcondvar.h>
#include <sys/random.h>
#include <sys/byteorder.h>
#include <sys/list.h>
#include <sys/zfs_debug.h>
#include <sys/sysevent.h>
#include <sys/uio.h>
#include <sys/dirent.h>
#include <sys/time.h>
#include <sys/fcntl.h>
#include <sys/limits.h>
#include <sys/string.h>
#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/cred.h>
#include <sys/sdt.h>
#include <sys/file.h>
#include <sys/vfs.h>
#include <sys/sysctl.h>
#include <sys/sbuf.h>
#include <sys/priv.h>
#include <sys/kdb.h>
#include <sys/ktr.h>
#include <sys/stack.h>
#include <sys/lockf.h>
#include <sys/pathname.h>
#include <sys/policy.h>
#include <sys/refstr.h>
#include <sys/zone.h>
#include <sys/eventhandler.h>
#include <sys/extattr.h>
#include <sys/misc.h>
#include <sys/sig.h>
#include <sys/osd.h>
#include <sys/sysevent/dev.h>
#include <sys/sysevent/eventdefs.h>
#include <sys/u8_textprep.h>
#include <sys/fm/util.h>
#include <sys/sunddi.h>
#include <machine/stdarg.h>
#include <vm/vm.h>
#include <vm/vm_page.h>
#include <vm/vm_object.h>
#include <vm/vm_pager.h>
#include <vm/vm_kern.h>
#include <vm/vm_map.h>
#include <vm/vm_extern.h>
#include <vm/vnode_pager.h>
#include <sys/zfs_debug.h>
Go to the source code of this file.
Defines | |
#define | CPU_SEQID (curcpu) |
#define | tsd_create(keyp, destructor) |
#define | tsd_destroy(keyp) osd_thread_deregister(*(keyp)) |
#define | tsd_get(key) osd_thread_get(curthread, (key)) |
#define | tsd_set(key, value) osd_thread_set(curthread, (key), (value)) |
#define | ZFS_LOG(lvl,...) |
#define | sys_shutdown rebooting |
Variables | |
int | zfs_debug_level |
struct mtx | zfs_debug_mtx |
#define CPU_SEQID (curcpu) |
Definition at line 110 of file zfs_context.h.
#define sys_shutdown rebooting |
Definition at line 138 of file zfs_context.h.
#define tsd_create | ( | keyp, | |
destructor | |||
) |
do { \ *(keyp) = osd_thread_register((destructor)); \ KASSERT(*(keyp) > 0, ("cannot register OSD")); \ } while (0)
Definition at line 112 of file zfs_context.h.
#define tsd_destroy | ( | keyp | ) | osd_thread_deregister(*(keyp)) |
Definition at line 116 of file zfs_context.h.
#define tsd_get | ( | key | ) | osd_thread_get(curthread, (key)) |
Definition at line 117 of file zfs_context.h.
#define tsd_set | ( | key, | |
value | |||
) | osd_thread_set(curthread, (key), (value)) |
Definition at line 118 of file zfs_context.h.
#define ZFS_LOG | ( | lvl, | |
... | |||
) |
do { \ if (((lvl) & 0xff) <= zfs_debug_level) { \ mtx_lock(&zfs_debug_mtx); \ printf("%s:%u[%d]: ", __func__, __LINE__, (lvl)); \ printf(__VA_ARGS__); \ printf("\n"); \ if ((lvl) & 0x100) \ kdb_backtrace(); \ mtx_unlock(&zfs_debug_mtx); \ } \ } while (0)
Definition at line 126 of file zfs_context.h.
struct mtx zfs_debug_mtx |
Definition at line 66 of file zfs_vfsops.c.