1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/dns_server
Gary Lockyer 3d42e257a6 s4 dns_server Bind9: Log opertion durations
Add duration debug logging to the samba bind9 dlz driver and the
dnsserver_common routines.  This should aid future diagnosis of
performance issues, and could be used to monitor DNS performance.

The logs are currently Human readable text only, i.e. no JSON formatted
output.

Log lines are of the form:

<function>: DNS timing: result: [<result>] \
duration: (<duration>) zone: [<zone>] name: [<name>] \
data: [<data>]

e.g.

dns_common_wildcard_lookup: DNS timing: result: [WERR_OK] \
duration: (111) zone: [] \
name: [DC=_ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones,\
DC=chgdcpassword.samba.example.com,CN=MicrosoftDNS,DC=DomainDnsZones,\
DC=chgdcpassword,DC=samba,DC=example,DC=com] data: []

Enabled by setting log level to "dns:10"

durations are in microseconds.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue May  7 05:03:26 UTC 2019 on sn-devel-184
2019-05-07 05:03:26 +00:00
..
dlz_bind9.c s4 dns_server Bind9: Log opertion durations 2019-05-07 05:03:26 +00:00
dlz_minimal.h dlz-bind: Add support for BIND 9.12.x 2018-08-10 02:44:36 +02:00
dns_crypto.c s4:dns_crypto: Remove unused include of hmac_md5.h 2019-02-22 21:48:11 +01:00
dns_query.c CVE-2018-14629 dns: fix CNAME loop prevention using counter regression 2018-12-04 08:52:29 +01:00
dns_server.c source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
dns_server.h dns: moving name_equal func into common 2018-07-12 04:31:54 +02:00
dns_update.c dns: static records 2018-07-12 04:31:56 +02:00
dns_utils.c dns_server: Remove unused "dns_generate_options" 2018-01-04 00:37:21 +01:00
dnsserver_common.c s4 dns_server Bind9: Log opertion durations 2019-05-07 05:03:26 +00:00
dnsserver_common.h s4 dns_server Bind9: Log opertion durations 2019-05-07 05:03:26 +00:00
pydns.c Decrement references to python objects passed to Py_BuildValue 2019-02-07 13:44:30 +01:00
TODO dns: Update TODO list 2013-07-29 09:12:17 +02:00
wscript_build build: Remove bld.gen_python_environments() 2019-03-21 04:06:14 +00:00