Enable QUEUEDEBUG under DIAGNOSTIC. It has never been documented and used,
but it's very useful and costs basically nothing. I even think we could enable it by default in the kernel (if we added __predict_false's and removed some crap).
This commit is contained in:
parent
2c3f65c016
commit
24f7115afd
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: queue.h,v 1.73 2019/03/08 08:12:39 msaitoh Exp $ */
|
||||
/* $NetBSD: queue.h,v 1.74 2019/03/23 12:01:18 maxv Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -91,6 +91,13 @@
|
||||
#include <sys/null.h>
|
||||
#endif
|
||||
|
||||
#if defined(_KERNEL) && defined(_KERNEL_OPT)
|
||||
#include "opt_diagnostic.h"
|
||||
#ifdef DIAGNOSTIC
|
||||
#define QUEUEDEBUG 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(QUEUEDEBUG)
|
||||
# if defined(_KERNEL)
|
||||
# define QUEUEDEBUG_ABORT(...) panic(__VA_ARGS__)
|
||||
|
Loading…
Reference in New Issue
Block a user