aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/options
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2019-09-25 18:26:31 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2019-09-25 18:26:31 +0000
commitdd902d015a202e4cabb8fdadd307ec9a3dc38251 (patch)
treeca15ad85e373523316f0455e26d4c94b780efacc /sys/conf/options
parenta9ac5e142408d3228694aea197d9f77e643ab015 (diff)
downloadsrc-dd902d015a202e4cabb8fdadd307ec9a3dc38251.tar.gz
src-dd902d015a202e4cabb8fdadd307ec9a3dc38251.zip
Add debugging facility EPOCH_TRACE that checks that epochs entered are
properly nested and warns about recursive entrances. Unlike with locks, there is nothing fundamentally wrong with such use, the intent of tracer is to help to review complex epoch-protected code paths, and we mean the network stack here. Reviewed by: hselasky Sponsored by: Netflix Pull Request: https://reviews.freebsd.org/D21610
Notes
Notes: svn path=/head/; revision=352707
Diffstat (limited to 'sys/conf/options')
-rw-r--r--sys/conf/options2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/options b/sys/conf/options
index 6957a2d236ef..875a3bc461e0 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -712,6 +712,8 @@ WITNESS_SKIPSPIN opt_witness.h
WITNESS_COUNT opt_witness.h
OPENSOLARIS_WITNESS opt_global.h
+EPOCH_TRACE opt_epoch.h
+
# options for ACPI support
ACPI_DEBUG opt_acpi.h
ACPI_MAX_TASKS opt_acpi.h