Merge branch 'ondrej/dont-undef-TRACE-define' into 'main'

Don't undef <unit>_TRACE, instead add comment how to enable it

See merge request isc-projects/bind9!8381
This commit is contained in:
Ondřej Surý 2023-10-13 09:47:11 +00:00
commit e17feff9a7
19 changed files with 18 additions and 38 deletions

View file

@ -49,7 +49,7 @@
#include <named/main.h>
#include <named/server.h>
#undef NAMED_CONTROLCONF_TRACE
/* Add -DNAMED_CONTROLCONF_TRACE=1 to CFLAGS for detailed reference tracing */
typedef struct controlkey controlkey_t;
typedef ISC_LIST(controlkey_t) controlkeylist_t;

View file

@ -61,8 +61,7 @@
*** Imports
***/
/* Define to 1 for detailed reference tracing */
#undef DNS_ADB_TRACE
/* Add -DDNS_ADB_TRACE=1 to CFLAGS for detailed reference tracing */
#include <inttypes.h>
#include <stdbool.h>

View file

@ -13,10 +13,7 @@
#pragma once
/*
* Define this for reference count tracing in the unit
*/
#undef DNS_CATZ_TRACE
/* Add -DDNS_CATZ_TRACE=1 to CFLAGS for detailed reference tracing */
#include <inttypes.h>
#include <stdbool.h>

View file

@ -47,8 +47,7 @@
***** Imports
*****/
/* Define to 1 for detailed reference tracing */
#undef DNS_DB_TRACE
/* Add -DDNS_DB_TRACE=1 to CFLAGS for detailed reference tracing */
#include <inttypes.h>
#include <stdbool.h>

View file

@ -58,7 +58,7 @@
#include <dns/types.h>
#undef DNS_DISPATCH_TRACE
/* Add -DDNS_DISPATCH_TRACE=1 to CFLAGS for detailed reference tracing */
ISC_LANG_BEGINDECLS

View file

@ -25,8 +25,7 @@
#include <dns/qp.h>
#include <dns/types.h>
/* Define to 1 for detailed reference tracing */
#undef DNS_FORWARD_TRACE
/* Add -DDNS_FORWARD_TRACE=1 to CFLAGS for detailed reference tracing */
ISC_LANG_BEGINDECLS

View file

@ -30,8 +30,7 @@
#include <dst/dst.h>
/* Define to 1 for detailed reference tracing */
#undef DNS_MESSAGE_TRACE
/* Add -DDNS_MESSAGE_TRACE=1 to CFLAGS for detailed reference tracing */
/*! \file dns/message.h
* \brief Message Handling Module

View file

@ -37,8 +37,7 @@
#include <dst/dst.h>
/* Define to 1 for detailed reference tracing */
#undef DNS_NAMETREE_TRACE
/* Add -DDNS_NAMETREE_TRACE=1 to CFLAGS for detailed reference tracing */
typedef enum {
DNS_NAMETREE_BOOL,

View file

@ -40,8 +40,7 @@
#include <dns/types.h>
#include <dns/view.h>
/* Define to 1 for detailed reference tracing */
#undef DNS_NTA_TRACE
/* Add -DDNS_NTA_TRACE=1 to CFLAGS for detailed reference tracing */
ISC_LANG_BEGINDECLS

View file

@ -42,7 +42,7 @@
#include <dns/types.h>
#undef DNS_REQUEST_TRACE
/* Add -DDNS_REQUEST_TRACE=1 to CFLAGS for detailed reference tracing */
#define DNS_REQUESTOPT_TCP 0x00000001U
#define DNS_REQUESTOPT_CASE 0x00000002U

View file

@ -59,7 +59,7 @@
#include <dns/fixedname.h>
#include <dns/types.h>
#undef DNS_RESOLVER_TRACE
/* Add -DDNS_RESOLVER_TRACE=1 to CFLAGS for detailed reference tracing */
ISC_LANG_BEGINDECLS

View file

@ -13,10 +13,7 @@
#pragma once
/*
* Define this for reference count tracing in the unit
*/
#undef DNS_RPZ_TRACE
/* Add -DDNS_RPZ_TRACE=1 to CFLAGS for detailed reference tracing */
#include <inttypes.h>
#include <stdbool.h>

View file

@ -30,8 +30,7 @@
#include <dst/dst.h>
/* Define to 1 for detailed reference tracing */
#undef DNS_TSIG_TRACE
/* Add -DDNS_TSIG_TRACE=1 to CFLAGS for detailed reference tracing */
/*
* Algorithms.

View file

@ -34,8 +34,7 @@
#include <dns/transport.h>
#include <dns/types.h>
/* Define to 1 for detailed reference tracing */
#undef DNS_XFRIN_TRACE
/* Add -DDNS_XFRIN_TRACE=1 to CFLAGS for detailed reference tracing */
/***
*** Types

View file

@ -38,8 +38,7 @@
#include <dns/xfrin.h>
#include <dns/zt.h>
/* Define to 1 for detailed reference tracing */
#undef DNS_ZONE_TRACE
/* Add -DDNS_ZONE_TRACE=1 to CFLAGS for detailed reference tracing */
typedef enum {
dns_zone_none,

View file

@ -74,11 +74,6 @@
#include <dns/validator.h>
#include <dns/zone.h>
/* Detailed logging of fctx attach/detach */
#ifndef FCTX_TRACE
#undef FCTX_TRACE
#endif
#ifdef WANT_QUERYTRACE
#define RTRACE(m) \
isc_log_write(dns_lctx, DNS_LOGCATEGORY_RESOLVER, \

View file

@ -23,7 +23,7 @@
typedef void (*isc_job_cb)(void *);
#undef ISC_LOOP_TRACE
/* Add -DISC_LOOP_TRACE=1 to CFLAGS for detailed reference tracing */
ISC_LANG_BEGINDECLS

View file

@ -24,7 +24,7 @@
#include <isc/tls.h>
#include <isc/types.h>
#undef ISC_NETMGR_TRACE
/* Add -DISC_NETMGR_TRACE=1 to CFLAGS for detailed reference tracing */
#if defined(SO_REUSEPORT_LB) || (defined(SO_REUSEPORT) && defined(__linux__))
#define HAVE_SO_REUSEPORT_LB 1

View file

@ -45,7 +45,7 @@
***** Types.
*****/
#undef ISC_QUOTA_TRACE
/* Add -DISC_QUOTA_TRACE=1 to CFLAGS for detailed reference tracing */
ISC_LANG_BEGINDECLS