mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 10:10:06 +00:00
Build with liburcu, Userspace RCU
BIND needs a collection of standard lock-free data structures, which we can find in liburcu, along with its RCU safe memory reclamation machinery. We will use liburcu's QSBR variant instead of the home-grown isc_qsbr.
This commit is contained in:
parent
d96ff69b84
commit
2532b558b4
@ -34,6 +34,10 @@ PointerAlignment: Right
|
|||||||
PointerBindsToType: false
|
PointerBindsToType: false
|
||||||
IncludeBlocks: Regroup
|
IncludeBlocks: Regroup
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
|
- Regex: '^<(urcu\.h|urcu/urcu-|urcu-)'
|
||||||
|
Priority: 2
|
||||||
|
- Regex: '^<urcu/'
|
||||||
|
Priority: 3
|
||||||
- Regex: '^<isc/'
|
- Regex: '^<isc/'
|
||||||
Priority: 5
|
Priority: 5
|
||||||
- Regex: '^<(pk11|pkcs11)/'
|
- Regex: '^<(pk11|pkcs11)/'
|
||||||
@ -59,9 +63,9 @@ IncludeCategories:
|
|||||||
- Regex: '^<tests/'
|
- Regex: '^<tests/'
|
||||||
Priority: 100
|
Priority: 100
|
||||||
- Regex: '<openssl/'
|
- Regex: '<openssl/'
|
||||||
Priority: 1
|
Priority: 4
|
||||||
- Regex: '<(mysql|protobuf-c)/'
|
- Regex: '<(mysql|protobuf-c)/'
|
||||||
Priority: 1
|
Priority: 4
|
||||||
- Regex: '.*'
|
- Regex: '.*'
|
||||||
Priority: 0
|
Priority: 0
|
||||||
IndentExternBlock: NoIndent
|
IndentExternBlock: NoIndent
|
||||||
@ -74,3 +78,4 @@ PenaltyBreakString: 80
|
|||||||
PenaltyExcessCharacter: 100
|
PenaltyExcessCharacter: 100
|
||||||
Standard: Cpp11
|
Standard: Cpp11
|
||||||
ContinuationIndentWidth: 8
|
ContinuationIndentWidth: 8
|
||||||
|
ForEachMacros: [ 'cds_lfs_for_each', 'cds_lfs_for_each_safe', 'cds_list_for_each_entry_safe' ]
|
||||||
|
@ -34,24 +34,40 @@ PointerAlignment: Right
|
|||||||
PointerBindsToType: false
|
PointerBindsToType: false
|
||||||
IncludeBlocks: Regroup
|
IncludeBlocks: Regroup
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '^<isc/'
|
- Regex: '^<(urcu/urcu-|urcu-)'
|
||||||
Priority: 2
|
Priority: 2
|
||||||
- Regex: '^<dns/'
|
- Regex: '^<urcu/'
|
||||||
Priority: 3
|
Priority: 3
|
||||||
- Regex: '^<iscccc/'
|
- Regex: '^<isc/'
|
||||||
Priority: 4
|
|
||||||
- Regex: '^<isccfg/'
|
|
||||||
Priority: 5
|
Priority: 5
|
||||||
- Regex: '^<ns/'
|
- Regex: '^<(pk11|pkcs11)/'
|
||||||
Priority: 6
|
|
||||||
- Regex: '^(<[^/]*)/)'
|
|
||||||
Priority: 8
|
|
||||||
- Regex: '^<tests/'
|
|
||||||
Priority: 10
|
Priority: 10
|
||||||
- Regex: '<[[:alnum:].]+>'
|
- Regex: '^<dns/'
|
||||||
Priority: 1
|
Priority: 15
|
||||||
- Regex: '".*"'
|
- Regex: '^<dst/'
|
||||||
Priority: 9
|
Priority: 20
|
||||||
|
- Regex: '^<isccc/'
|
||||||
|
Priority: 25
|
||||||
|
- Regex: '^<isccfg/'
|
||||||
|
Priority: 30
|
||||||
|
- Regex: '^<ns/'
|
||||||
|
Priority: 35
|
||||||
|
- Regex: '^<irs/'
|
||||||
|
Priority: 40
|
||||||
|
- Regex: '^<(dig|named|rndc|confgen|dlz)/'
|
||||||
|
Priority: 50
|
||||||
|
- Regex: '^<dlz_'
|
||||||
|
Priority: 55
|
||||||
|
- Regex: '^".*"'
|
||||||
|
Priority: 99
|
||||||
|
- Regex: '^<tests/'
|
||||||
|
Priority: 100
|
||||||
|
- Regex: '<openssl/'
|
||||||
|
Priority: 4
|
||||||
|
- Regex: '<(mysql|protobuf-c)/'
|
||||||
|
Priority: 4
|
||||||
|
- Regex: '.*'
|
||||||
|
Priority: 0
|
||||||
IndentExternBlock: NoIndent
|
IndentExternBlock: NoIndent
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
MaxEmptyLinesToKeep: 1
|
MaxEmptyLinesToKeep: 1
|
||||||
|
@ -611,6 +611,9 @@ AC_CHECK_DECLS([UV_UDP_LINUX_RECVERR], [], [], [[#include <uv.h>]])
|
|||||||
|
|
||||||
AX_RESTORE_FLAGS([libuv])
|
AX_RESTORE_FLAGS([libuv])
|
||||||
|
|
||||||
|
# userspace-rcu (QSBR variant)
|
||||||
|
PKG_CHECK_MODULES([LIBURCU], [liburcu-qsbr liburcu-cds])
|
||||||
|
|
||||||
# [pairwise: --enable-doh --with-libnghttp2=auto, --enable-doh --with-libnghttp2=yes, --disable-doh]
|
# [pairwise: --enable-doh --with-libnghttp2=auto, --enable-doh --with-libnghttp2=yes, --disable-doh]
|
||||||
AC_ARG_ENABLE([doh],
|
AC_ARG_ENABLE([doh],
|
||||||
[AS_HELP_STRING([--disable-doh], [disable DNS over HTTPS, removes dependency on libnghttp2 (default is --enable-doh)])],
|
[AS_HELP_STRING([--disable-doh], [disable DNS over HTTPS, removes dependency on libnghttp2 (default is --enable-doh)])],
|
||||||
|
@ -56,6 +56,7 @@ Required Libraries
|
|||||||
To build BIND 9, the following packages must be installed:
|
To build BIND 9, the following packages must be installed:
|
||||||
|
|
||||||
- ``libcrypto``, ``libssl``
|
- ``libcrypto``, ``libssl``
|
||||||
|
- ``liburcu``
|
||||||
- ``libuv``
|
- ``libuv``
|
||||||
- ``perl``
|
- ``perl``
|
||||||
- ``pkg-config`` / ``pkgconfig`` / ``pkgconf``
|
- ``pkg-config`` / ``pkgconfig`` / ``pkgconf``
|
||||||
@ -73,6 +74,9 @@ in a nonstandard location, specify the prefix using
|
|||||||
PKCS#11 hardware service module for cryptographic operations,
|
PKCS#11 hardware service module for cryptographic operations,
|
||||||
``engine_pkcs11`` from the OpenSC project must be compiled and used.
|
``engine_pkcs11`` from the OpenSC project must be compiled and used.
|
||||||
|
|
||||||
|
The Userspace RCU library ``liburcu`` (https://liburcu.org/) is used
|
||||||
|
for lock-free data structures and concurrent safe memory reclamation.
|
||||||
|
|
||||||
On Linux, process capabilities are managed in user space using the
|
On Linux, process capabilities are managed in user space using the
|
||||||
``libcap`` library
|
``libcap`` library
|
||||||
(https://git.kernel.org/pub/scm/libs/libcap/libcap.git/), which can be
|
(https://git.kernel.org/pub/scm/libs/libcap/libcap.git/), which can be
|
||||||
|
@ -212,6 +212,7 @@ endif USE_ISC_RWLOCK
|
|||||||
libisc_la_CPPFLAGS = \
|
libisc_la_CPPFLAGS = \
|
||||||
$(AM_CPPFLAGS) \
|
$(AM_CPPFLAGS) \
|
||||||
$(LIBISC_CFLAGS) \
|
$(LIBISC_CFLAGS) \
|
||||||
|
$(LIBURCU_CFLAGS) \
|
||||||
$(LIBUV_CFLAGS) \
|
$(LIBUV_CFLAGS) \
|
||||||
$(OPENSSL_CFLAGS) \
|
$(OPENSSL_CFLAGS) \
|
||||||
$(ZLIB_CFLAGS)
|
$(ZLIB_CFLAGS)
|
||||||
@ -221,6 +222,7 @@ libisc_la_LDFLAGS = \
|
|||||||
-release "$(PACKAGE_VERSION)"
|
-release "$(PACKAGE_VERSION)"
|
||||||
|
|
||||||
libisc_la_LIBADD = \
|
libisc_la_LIBADD = \
|
||||||
|
$(LIBURCU_LIBS) \
|
||||||
$(LIBUV_LIBS) \
|
$(LIBUV_LIBS) \
|
||||||
$(OPENSSL_LIBS) \
|
$(OPENSSL_LIBS) \
|
||||||
$(ZLIB_LIBS)
|
$(ZLIB_LIBS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user