Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Enable QUEUEDEBUG under DIAGNOSTIC. It has never bee...
details: https://anonhg.NetBSD.org/src/rev/83eda5c96839
branches: trunk
changeset: 449786:83eda5c96839
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Mar 23 12:01:18 2019 +0000
description:
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).
diffstat:
sys/sys/queue.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 96a916ab2765 -r 83eda5c96839 sys/sys/queue.h
--- a/sys/sys/queue.h Sat Mar 23 10:02:05 2019 +0000
+++ b/sys/sys/queue.h Sat Mar 23 12:01:18 2019 +0000
@@ -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__)
Home |
Main Index |
Thread Index |
Old Index