mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
- Properly fix the debug support for all the ASSERT's, VERIFIES, etc can be
compiled out when doing performance runs. - Bite the bullet and fully autoconfize the debug options in the configure time parameters. By default all the debug support is disable in the core SPL build, but available to modules which enable it when building against the SPL. To enable particular SPL debug support use the follow configure options: --enable-debug Internal ASSERTs --enable-debug-kmem Detailed memory accounting --enable-debug-mutex Detailed mutex tracking --enable-debug_kstat Kstat info exported to /proc --enable-debug-callb Additional callb debug git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@111 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -8,8 +8,10 @@
|
||||
|
||||
#define DEBUG_SUBSYSTEM S_GENERIC
|
||||
|
||||
#ifndef NDEBUG
|
||||
static char ce_prefix[CE_IGNORE][10] = { "", "NOTICE: ", "WARNING: ", "" };
|
||||
static char ce_suffix[CE_IGNORE][2] = { "", "\n", "\n", "" };
|
||||
#endif
|
||||
|
||||
void
|
||||
vpanic(const char *fmt, va_list ap)
|
||||
|
||||
@@ -830,7 +830,9 @@ proc_init(void)
|
||||
#endif /* DEBUG_KSTAT */
|
||||
|
||||
RETURN(rc);
|
||||
#if defined(DEBUG_KMEM) || defined(DEBUG_KSTAT)
|
||||
out2:
|
||||
#endif
|
||||
#ifdef DEBUG_MUTEX
|
||||
remove_proc_entry("stats_per", proc_sys_spl_mutex);
|
||||
#endif /* DEBUG_MUTEX */
|
||||
|
||||
Reference in New Issue
Block a user