Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/dns
File: stats.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
#ifndef DNS_STATS_H
[11] Fix | Delete
#define DNS_STATS_H 1
[12] Fix | Delete
[13] Fix | Delete
/*! \file dns/stats.h */
[14] Fix | Delete
[15] Fix | Delete
#include <inttypes.h>
[16] Fix | Delete
[17] Fix | Delete
#include <dns/types.h>
[18] Fix | Delete
[19] Fix | Delete
/*%
[20] Fix | Delete
* Statistics counters. Used as isc_statscounter_t values.
[21] Fix | Delete
*/
[22] Fix | Delete
enum {
[23] Fix | Delete
/*%
[24] Fix | Delete
* Resolver statistics counters.
[25] Fix | Delete
*/
[26] Fix | Delete
dns_resstatscounter_queryv4 = 0,
[27] Fix | Delete
dns_resstatscounter_queryv6 = 1,
[28] Fix | Delete
dns_resstatscounter_responsev4 = 2,
[29] Fix | Delete
dns_resstatscounter_responsev6 = 3,
[30] Fix | Delete
dns_resstatscounter_nxdomain = 4,
[31] Fix | Delete
dns_resstatscounter_servfail = 5,
[32] Fix | Delete
dns_resstatscounter_formerr = 6,
[33] Fix | Delete
dns_resstatscounter_othererror = 7,
[34] Fix | Delete
dns_resstatscounter_edns0fail = 8,
[35] Fix | Delete
dns_resstatscounter_mismatch = 9,
[36] Fix | Delete
dns_resstatscounter_truncated = 10,
[37] Fix | Delete
dns_resstatscounter_lame = 11,
[38] Fix | Delete
dns_resstatscounter_retry = 12,
[39] Fix | Delete
dns_resstatscounter_gluefetchv4 = 13,
[40] Fix | Delete
dns_resstatscounter_gluefetchv6 = 14,
[41] Fix | Delete
dns_resstatscounter_gluefetchv4fail = 15,
[42] Fix | Delete
dns_resstatscounter_gluefetchv6fail = 16,
[43] Fix | Delete
dns_resstatscounter_val = 17,
[44] Fix | Delete
dns_resstatscounter_valsuccess = 18,
[45] Fix | Delete
dns_resstatscounter_valnegsuccess = 19,
[46] Fix | Delete
dns_resstatscounter_valfail = 20,
[47] Fix | Delete
dns_resstatscounter_dispabort = 21,
[48] Fix | Delete
dns_resstatscounter_dispsockfail = 22,
[49] Fix | Delete
dns_resstatscounter_querytimeout = 23,
[50] Fix | Delete
dns_resstatscounter_queryrtt0 = 24,
[51] Fix | Delete
dns_resstatscounter_queryrtt1 = 25,
[52] Fix | Delete
dns_resstatscounter_queryrtt2 = 26,
[53] Fix | Delete
dns_resstatscounter_queryrtt3 = 27,
[54] Fix | Delete
dns_resstatscounter_queryrtt4 = 28,
[55] Fix | Delete
dns_resstatscounter_queryrtt5 = 29,
[56] Fix | Delete
dns_resstatscounter_nfetch = 30,
[57] Fix | Delete
dns_resstatscounter_disprequdp = 31,
[58] Fix | Delete
dns_resstatscounter_dispreqtcp = 32,
[59] Fix | Delete
dns_resstatscounter_buckets = 33,
[60] Fix | Delete
dns_resstatscounter_refused = 34,
[61] Fix | Delete
dns_resstatscounter_cookienew = 35,
[62] Fix | Delete
dns_resstatscounter_cookieout = 36,
[63] Fix | Delete
dns_resstatscounter_cookiein = 37,
[64] Fix | Delete
dns_resstatscounter_cookieok = 38,
[65] Fix | Delete
dns_resstatscounter_badvers = 39,
[66] Fix | Delete
dns_resstatscounter_badcookie = 40,
[67] Fix | Delete
dns_resstatscounter_zonequota = 41,
[68] Fix | Delete
dns_resstatscounter_serverquota = 42,
[69] Fix | Delete
dns_resstatscounter_nextitem = 43,
[70] Fix | Delete
dns_resstatscounter_max = 44,
[71] Fix | Delete
[72] Fix | Delete
/*
[73] Fix | Delete
* DNSSEC stats.
[74] Fix | Delete
*/
[75] Fix | Delete
dns_dnssecstats_asis = 0,
[76] Fix | Delete
dns_dnssecstats_downcase = 1,
[77] Fix | Delete
dns_dnssecstats_wildcard = 2,
[78] Fix | Delete
dns_dnssecstats_fail = 3,
[79] Fix | Delete
[80] Fix | Delete
dns_dnssecstats_max = 4,
[81] Fix | Delete
[82] Fix | Delete
/*%
[83] Fix | Delete
* Zone statistics counters.
[84] Fix | Delete
*/
[85] Fix | Delete
dns_zonestatscounter_notifyoutv4 = 0,
[86] Fix | Delete
dns_zonestatscounter_notifyoutv6 = 1,
[87] Fix | Delete
dns_zonestatscounter_notifyinv4 = 2,
[88] Fix | Delete
dns_zonestatscounter_notifyinv6 = 3,
[89] Fix | Delete
dns_zonestatscounter_notifyrej = 4,
[90] Fix | Delete
dns_zonestatscounter_soaoutv4 = 5,
[91] Fix | Delete
dns_zonestatscounter_soaoutv6 = 6,
[92] Fix | Delete
dns_zonestatscounter_axfrreqv4 = 7,
[93] Fix | Delete
dns_zonestatscounter_axfrreqv6 = 8,
[94] Fix | Delete
dns_zonestatscounter_ixfrreqv4 = 9,
[95] Fix | Delete
dns_zonestatscounter_ixfrreqv6 = 10,
[96] Fix | Delete
dns_zonestatscounter_xfrsuccess = 11,
[97] Fix | Delete
dns_zonestatscounter_xfrfail = 12,
[98] Fix | Delete
[99] Fix | Delete
dns_zonestatscounter_max = 13,
[100] Fix | Delete
[101] Fix | Delete
/*
[102] Fix | Delete
* Adb statistics values.
[103] Fix | Delete
*/
[104] Fix | Delete
dns_adbstats_nentries = 0,
[105] Fix | Delete
dns_adbstats_entriescnt = 1,
[106] Fix | Delete
dns_adbstats_nnames = 2,
[107] Fix | Delete
dns_adbstats_namescnt = 3,
[108] Fix | Delete
[109] Fix | Delete
dns_adbstats_max = 4,
[110] Fix | Delete
[111] Fix | Delete
/*
[112] Fix | Delete
* Cache statistics values.
[113] Fix | Delete
*/
[114] Fix | Delete
dns_cachestatscounter_hits = 1,
[115] Fix | Delete
dns_cachestatscounter_misses = 2,
[116] Fix | Delete
dns_cachestatscounter_queryhits = 3,
[117] Fix | Delete
dns_cachestatscounter_querymisses = 4,
[118] Fix | Delete
dns_cachestatscounter_deletelru = 5,
[119] Fix | Delete
dns_cachestatscounter_deletettl = 6,
[120] Fix | Delete
[121] Fix | Delete
dns_cachestatscounter_max = 7,
[122] Fix | Delete
[123] Fix | Delete
/*%
[124] Fix | Delete
* Query statistics counters (obsolete).
[125] Fix | Delete
*/
[126] Fix | Delete
dns_statscounter_success = 0, /*%< Successful lookup */
[127] Fix | Delete
dns_statscounter_referral = 1, /*%< Referral result */
[128] Fix | Delete
dns_statscounter_nxrrset = 2, /*%< NXRRSET result */
[129] Fix | Delete
dns_statscounter_nxdomain = 3, /*%< NXDOMAIN result */
[130] Fix | Delete
dns_statscounter_recursion = 4, /*%< Recursion was used */
[131] Fix | Delete
dns_statscounter_failure = 5, /*%< Some other failure */
[132] Fix | Delete
dns_statscounter_duplicate = 6, /*%< Duplicate query */
[133] Fix | Delete
dns_statscounter_dropped = 7, /*%< Duplicate query (dropped) */
[134] Fix | Delete
[135] Fix | Delete
/*%
[136] Fix | Delete
* DNSTAP statistics counters.
[137] Fix | Delete
*/
[138] Fix | Delete
dns_dnstapcounter_success = 0,
[139] Fix | Delete
dns_dnstapcounter_drop = 1,
[140] Fix | Delete
dns_dnstapcounter_max = 2
[141] Fix | Delete
};
[142] Fix | Delete
[143] Fix | Delete
#define DNS_STATS_NCOUNTERS 8
[144] Fix | Delete
[145] Fix | Delete
#if 0
[146] Fix | Delete
/*%<
[147] Fix | Delete
* Flag(s) for dns_xxxstats_dump(). DNS_STATSDUMP_VERBOSE is obsolete.
[148] Fix | Delete
* ISC_STATSDUMP_VERBOSE should be used instead. These two values are
[149] Fix | Delete
* intentionally defined to be the same value to ensure binary compatibility.
[150] Fix | Delete
*/
[151] Fix | Delete
#define DNS_STATSDUMP_VERBOSE 0x00000001 /*%< dump 0-value counters */
[152] Fix | Delete
#endif
[153] Fix | Delete
[154] Fix | Delete
/*%<
[155] Fix | Delete
* (Obsoleted)
[156] Fix | Delete
*/
[157] Fix | Delete
LIBDNS_EXTERNAL_DATA extern const char *dns_statscounter_names[];
[158] Fix | Delete
[159] Fix | Delete
/*%
[160] Fix | Delete
* Attributes for statistics counters of RRset and Rdatatype types.
[161] Fix | Delete
*
[162] Fix | Delete
* _OTHERTYPE
[163] Fix | Delete
* The rdata type is not explicitly supported and the corresponding counter
[164] Fix | Delete
* is counted for other such types, too. When this attribute is set,
[165] Fix | Delete
* the base type is of no use.
[166] Fix | Delete
*
[167] Fix | Delete
* _NXRRSET
[168] Fix | Delete
* RRset type counters only. Indicates the RRset is non existent.
[169] Fix | Delete
*
[170] Fix | Delete
* _NXDOMAIN
[171] Fix | Delete
* RRset type counters only. Indicates a non existent name. When this
[172] Fix | Delete
* attribute is set, the base type is of no use.
[173] Fix | Delete
*
[174] Fix | Delete
* _STALE
[175] Fix | Delete
* RRset type counters only. This indicates a record that marked for
[176] Fix | Delete
* removal.
[177] Fix | Delete
*
[178] Fix | Delete
* Note: incrementing _STALE will decrement the corresponding non-stale
[179] Fix | Delete
* counter.
[180] Fix | Delete
*/
[181] Fix | Delete
#define DNS_RDATASTATSTYPE_ATTR_OTHERTYPE 0x0001
[182] Fix | Delete
#define DNS_RDATASTATSTYPE_ATTR_NXRRSET 0x0002
[183] Fix | Delete
#define DNS_RDATASTATSTYPE_ATTR_NXDOMAIN 0x0004
[184] Fix | Delete
#define DNS_RDATASTATSTYPE_ATTR_STALE 0x0008
[185] Fix | Delete
[186] Fix | Delete
/*%<
[187] Fix | Delete
* Conversion macros among dns_rdatatype_t, attributes and isc_statscounter_t.
[188] Fix | Delete
*/
[189] Fix | Delete
#define DNS_RDATASTATSTYPE_BASE(type) ((dns_rdatatype_t)((type) & 0xFFFF))
[190] Fix | Delete
#define DNS_RDATASTATSTYPE_ATTR(type) ((type) >> 16)
[191] Fix | Delete
#define DNS_RDATASTATSTYPE_VALUE(b, a) (((a) << 16) | (b))
[192] Fix | Delete
[193] Fix | Delete
/*%<
[194] Fix | Delete
* Types of dump callbacks.
[195] Fix | Delete
*/
[196] Fix | Delete
typedef void (*dns_generalstats_dumper_t)(isc_statscounter_t, uint64_t,
[197] Fix | Delete
void *);
[198] Fix | Delete
typedef void (*dns_rdatatypestats_dumper_t)(dns_rdatastatstype_t, uint64_t,
[199] Fix | Delete
void *);
[200] Fix | Delete
typedef void (*dns_opcodestats_dumper_t)(dns_opcode_t, uint64_t, void *);
[201] Fix | Delete
[202] Fix | Delete
typedef void (*dns_rcodestats_dumper_t)(dns_rcode_t, uint64_t, void *);
[203] Fix | Delete
[204] Fix | Delete
ISC_LANG_BEGINDECLS
[205] Fix | Delete
[206] Fix | Delete
isc_result_t
[207] Fix | Delete
dns_generalstats_create(isc_mem_t *mctx, dns_stats_t **statsp, int ncounters);
[208] Fix | Delete
/*%<
[209] Fix | Delete
* Create a statistics counter structure of general type. It counts a general
[210] Fix | Delete
* set of counters indexed by an ID between 0 and ncounters -1.
[211] Fix | Delete
* This function is obsolete. A more general function, isc_stats_create(),
[212] Fix | Delete
* should be used.
[213] Fix | Delete
*
[214] Fix | Delete
* Requires:
[215] Fix | Delete
*\li 'mctx' must be a valid memory context.
[216] Fix | Delete
*
[217] Fix | Delete
*\li 'statsp' != NULL && '*statsp' == NULL.
[218] Fix | Delete
*
[219] Fix | Delete
* Returns:
[220] Fix | Delete
*\li ISC_R_SUCCESS -- all ok
[221] Fix | Delete
*
[222] Fix | Delete
*\li anything else -- failure
[223] Fix | Delete
*/
[224] Fix | Delete
[225] Fix | Delete
isc_result_t
[226] Fix | Delete
dns_rdatatypestats_create(isc_mem_t *mctx, dns_stats_t **statsp);
[227] Fix | Delete
/*%<
[228] Fix | Delete
* Create a statistics counter structure per rdatatype.
[229] Fix | Delete
*
[230] Fix | Delete
* Requires:
[231] Fix | Delete
*\li 'mctx' must be a valid memory context.
[232] Fix | Delete
*
[233] Fix | Delete
*\li 'statsp' != NULL && '*statsp' == NULL.
[234] Fix | Delete
*
[235] Fix | Delete
* Returns:
[236] Fix | Delete
*\li ISC_R_SUCCESS -- all ok
[237] Fix | Delete
*
[238] Fix | Delete
*\li anything else -- failure
[239] Fix | Delete
*/
[240] Fix | Delete
[241] Fix | Delete
isc_result_t
[242] Fix | Delete
dns_rdatasetstats_create(isc_mem_t *mctx, dns_stats_t **statsp);
[243] Fix | Delete
/*%<
[244] Fix | Delete
* Create a statistics counter structure per RRset.
[245] Fix | Delete
*
[246] Fix | Delete
* Requires:
[247] Fix | Delete
*\li 'mctx' must be a valid memory context.
[248] Fix | Delete
*
[249] Fix | Delete
*\li 'statsp' != NULL && '*statsp' == NULL.
[250] Fix | Delete
*
[251] Fix | Delete
* Returns:
[252] Fix | Delete
*\li ISC_R_SUCCESS -- all ok
[253] Fix | Delete
*
[254] Fix | Delete
*\li anything else -- failure
[255] Fix | Delete
*/
[256] Fix | Delete
[257] Fix | Delete
isc_result_t
[258] Fix | Delete
dns_opcodestats_create(isc_mem_t *mctx, dns_stats_t **statsp);
[259] Fix | Delete
/*%<
[260] Fix | Delete
* Create a statistics counter structure per opcode.
[261] Fix | Delete
*
[262] Fix | Delete
* Requires:
[263] Fix | Delete
*\li 'mctx' must be a valid memory context.
[264] Fix | Delete
*
[265] Fix | Delete
*\li 'statsp' != NULL && '*statsp' == NULL.
[266] Fix | Delete
*
[267] Fix | Delete
* Returns:
[268] Fix | Delete
*\li ISC_R_SUCCESS -- all ok
[269] Fix | Delete
*
[270] Fix | Delete
*\li anything else -- failure
[271] Fix | Delete
*/
[272] Fix | Delete
[273] Fix | Delete
isc_result_t
[274] Fix | Delete
dns_rcodestats_create(isc_mem_t *mctx, dns_stats_t **statsp);
[275] Fix | Delete
/*%<
[276] Fix | Delete
* Create a statistics counter structure per assigned rcode.
[277] Fix | Delete
*
[278] Fix | Delete
* Requires:
[279] Fix | Delete
*\li 'mctx' must be a valid memory context.
[280] Fix | Delete
*
[281] Fix | Delete
*\li 'statsp' != NULL && '*statsp' == NULL.
[282] Fix | Delete
*
[283] Fix | Delete
* Returns:
[284] Fix | Delete
*\li ISC_R_SUCCESS -- all ok
[285] Fix | Delete
*
[286] Fix | Delete
*\li anything else -- failure
[287] Fix | Delete
*/
[288] Fix | Delete
[289] Fix | Delete
void
[290] Fix | Delete
dns_stats_attach(dns_stats_t *stats, dns_stats_t **statsp);
[291] Fix | Delete
/*%<
[292] Fix | Delete
* Attach to a statistics set.
[293] Fix | Delete
*
[294] Fix | Delete
* Requires:
[295] Fix | Delete
*\li 'stats' is a valid dns_stats_t.
[296] Fix | Delete
*
[297] Fix | Delete
*\li 'statsp' != NULL && '*statsp' == NULL
[298] Fix | Delete
*/
[299] Fix | Delete
[300] Fix | Delete
void
[301] Fix | Delete
dns_stats_detach(dns_stats_t **statsp);
[302] Fix | Delete
/*%<
[303] Fix | Delete
* Detaches from the statistics set.
[304] Fix | Delete
*
[305] Fix | Delete
* Requires:
[306] Fix | Delete
*\li 'statsp' != NULL and '*statsp' is a valid dns_stats_t.
[307] Fix | Delete
*/
[308] Fix | Delete
[309] Fix | Delete
void
[310] Fix | Delete
dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter);
[311] Fix | Delete
/*%<
[312] Fix | Delete
* Increment the counter-th counter of stats. This function is obsolete.
[313] Fix | Delete
* A more general function, isc_stats_increment(), should be used.
[314] Fix | Delete
*
[315] Fix | Delete
* Requires:
[316] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
[317] Fix | Delete
*
[318] Fix | Delete
*\li counter is less than the maximum available ID for the stats specified
[319] Fix | Delete
* on creation.
[320] Fix | Delete
*/
[321] Fix | Delete
[322] Fix | Delete
void
[323] Fix | Delete
dns_rdatatypestats_increment(dns_stats_t *stats, dns_rdatatype_t type);
[324] Fix | Delete
/*%<
[325] Fix | Delete
* Increment the statistics counter for 'type'.
[326] Fix | Delete
*
[327] Fix | Delete
* Requires:
[328] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_rdatatypestats_create().
[329] Fix | Delete
*/
[330] Fix | Delete
[331] Fix | Delete
void
[332] Fix | Delete
dns_rdatasetstats_increment(dns_stats_t *stats, dns_rdatastatstype_t rrsettype);
[333] Fix | Delete
/*%<
[334] Fix | Delete
* Increment the statistics counter for 'rrsettype'.
[335] Fix | Delete
*
[336] Fix | Delete
* Note: if 'rrsettype' has the _STALE attribute set the corresponding
[337] Fix | Delete
* non-stale counter will be decremented.
[338] Fix | Delete
*
[339] Fix | Delete
* Requires:
[340] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_rdatasetstats_create().
[341] Fix | Delete
*/
[342] Fix | Delete
[343] Fix | Delete
void
[344] Fix | Delete
dns_rdatasetstats_decrement(dns_stats_t *stats, dns_rdatastatstype_t rrsettype);
[345] Fix | Delete
/*%<
[346] Fix | Delete
* Decrement the statistics counter for 'rrsettype'.
[347] Fix | Delete
*
[348] Fix | Delete
* Requires:
[349] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_rdatasetstats_create().
[350] Fix | Delete
*/
[351] Fix | Delete
[352] Fix | Delete
void
[353] Fix | Delete
dns_opcodestats_increment(dns_stats_t *stats, dns_opcode_t code);
[354] Fix | Delete
/*%<
[355] Fix | Delete
* Increment the statistics counter for 'code'.
[356] Fix | Delete
*
[357] Fix | Delete
* Requires:
[358] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_opcodestats_create().
[359] Fix | Delete
*/
[360] Fix | Delete
[361] Fix | Delete
void
[362] Fix | Delete
dns_rcodestats_increment(dns_stats_t *stats, dns_opcode_t code);
[363] Fix | Delete
/*%<
[364] Fix | Delete
* Increment the statistics counter for 'code'.
[365] Fix | Delete
*
[366] Fix | Delete
* Requires:
[367] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_rcodestats_create().
[368] Fix | Delete
*/
[369] Fix | Delete
[370] Fix | Delete
void
[371] Fix | Delete
dns_generalstats_dump(dns_stats_t *stats, dns_generalstats_dumper_t dump_fn,
[372] Fix | Delete
void *arg, unsigned int options);
[373] Fix | Delete
/*%<
[374] Fix | Delete
* Dump the current statistics counters in a specified way. For each counter
[375] Fix | Delete
* in stats, dump_fn is called with its current value and the given argument
[376] Fix | Delete
* arg. By default counters that have a value of 0 is skipped; if options has
[377] Fix | Delete
* the ISC_STATSDUMP_VERBOSE flag, even such counters are dumped.
[378] Fix | Delete
*
[379] Fix | Delete
* This function is obsolete. A more general function, isc_stats_dump(),
[380] Fix | Delete
* should be used.
[381] Fix | Delete
*
[382] Fix | Delete
* Requires:
[383] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
[384] Fix | Delete
*/
[385] Fix | Delete
[386] Fix | Delete
void
[387] Fix | Delete
dns_rdatatypestats_dump(dns_stats_t *stats, dns_rdatatypestats_dumper_t dump_fn,
[388] Fix | Delete
void *arg, unsigned int options);
[389] Fix | Delete
/*%<
[390] Fix | Delete
* Dump the current statistics counters in a specified way. For each counter
[391] Fix | Delete
* in stats, dump_fn is called with the corresponding type in the form of
[392] Fix | Delete
* dns_rdatastatstype_t, the current counter value and the given argument
[393] Fix | Delete
* arg. By default counters that have a value of 0 is skipped; if options has
[394] Fix | Delete
* the ISC_STATSDUMP_VERBOSE flag, even such counters are dumped.
[395] Fix | Delete
*
[396] Fix | Delete
* Requires:
[397] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
[398] Fix | Delete
*/
[399] Fix | Delete
[400] Fix | Delete
void
[401] Fix | Delete
dns_rdatasetstats_dump(dns_stats_t *stats, dns_rdatatypestats_dumper_t dump_fn,
[402] Fix | Delete
void *arg, unsigned int options);
[403] Fix | Delete
/*%<
[404] Fix | Delete
* Dump the current statistics counters in a specified way. For each counter
[405] Fix | Delete
* in stats, dump_fn is called with the corresponding type in the form of
[406] Fix | Delete
* dns_rdatastatstype_t, the current counter value and the given argument
[407] Fix | Delete
* arg. By default counters that have a value of 0 is skipped; if options has
[408] Fix | Delete
* the ISC_STATSDUMP_VERBOSE flag, even such counters are dumped.
[409] Fix | Delete
*
[410] Fix | Delete
* Requires:
[411] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
[412] Fix | Delete
*/
[413] Fix | Delete
[414] Fix | Delete
void
[415] Fix | Delete
dns_opcodestats_dump(dns_stats_t *stats, dns_opcodestats_dumper_t dump_fn,
[416] Fix | Delete
void *arg, unsigned int options);
[417] Fix | Delete
/*%<
[418] Fix | Delete
* Dump the current statistics counters in a specified way. For each counter
[419] Fix | Delete
* in stats, dump_fn is called with the corresponding opcode, the current
[420] Fix | Delete
* counter value and the given argument arg. By default counters that have a
[421] Fix | Delete
* value of 0 is skipped; if options has the ISC_STATSDUMP_VERBOSE flag, even
[422] Fix | Delete
* such counters are dumped.
[423] Fix | Delete
*
[424] Fix | Delete
* Requires:
[425] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
[426] Fix | Delete
*/
[427] Fix | Delete
[428] Fix | Delete
void
[429] Fix | Delete
dns_rcodestats_dump(dns_stats_t *stats, dns_rcodestats_dumper_t dump_fn,
[430] Fix | Delete
void *arg, unsigned int options);
[431] Fix | Delete
/*%<
[432] Fix | Delete
* Dump the current statistics counters in a specified way. For each counter
[433] Fix | Delete
* in stats, dump_fn is called with the corresponding rcode, the current
[434] Fix | Delete
* counter value and the given argument arg. By default counters that have a
[435] Fix | Delete
* value of 0 is skipped; if options has the ISC_STATSDUMP_VERBOSE flag, even
[436] Fix | Delete
* such counters are dumped.
[437] Fix | Delete
*
[438] Fix | Delete
* Requires:
[439] Fix | Delete
*\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
[440] Fix | Delete
*/
[441] Fix | Delete
[442] Fix | Delete
isc_result_t
[443] Fix | Delete
dns_stats_alloccounters(isc_mem_t *mctx, uint64_t **ctrp);
[444] Fix | Delete
/*%<
[445] Fix | Delete
* Allocate an array of query statistics counters from the memory
[446] Fix | Delete
* context 'mctx'.
[447] Fix | Delete
*
[448] Fix | Delete
* This function is obsoleted. Use dns_xxxstats_create() instead.
[449] Fix | Delete
*/
[450] Fix | Delete
[451] Fix | Delete
void
[452] Fix | Delete
dns_stats_freecounters(isc_mem_t *mctx, uint64_t **ctrp);
[453] Fix | Delete
/*%<
[454] Fix | Delete
* Free an array of query statistics counters allocated from the memory
[455] Fix | Delete
* context 'mctx'.
[456] Fix | Delete
*
[457] Fix | Delete
* This function is obsoleted. Use dns_stats_destroy() instead.
[458] Fix | Delete
*/
[459] Fix | Delete
[460] Fix | Delete
ISC_LANG_ENDDECLS
[461] Fix | Delete
[462] Fix | Delete
#endif /* DNS_STATS_H */
[463] Fix | Delete
[464] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function