Lines Matching defs:counter
70 * Then bit 5 and 6 mostly tell you if this counter is for an active,
77 * Since a counter cannot be stale and ancient at the same time, we
85 * S = 0b11 indicates an NXDOMAIN counter and in this case the RRtype
104 * Per key we maintain 3 counters. The first is actually no counter but
244 dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter) {
247 isc_stats_increment(stats->counters, counter);
260 isc_statscounter_t counter;
264 counter = rdatatype2counter(type);
265 isc_stats_increment(stats->counters, counter);
271 isc_statscounter_t counter;
276 counter = RDTYPECOUNTER_NXDOMAIN;
279 * This is an NXDOMAIN counter, save the expiry value
285 counter |= RDTYPECOUNTER_NXDOMAIN_ANCIENT;
289 counter += RDTYPECOUNTER_NXDOMAIN_STALE;
292 counter = rdatatype2counter(DNS_RDATASTATSTYPE_BASE(rrsettype));
297 counter |= RDTYPECOUNTER_NXRRSET;
303 counter |= RDTYPECOUNTER_ANCIENT;
307 counter |= RDTYPECOUNTER_STALE;
312 isc_stats_increment(stats->counters, counter);
314 isc_stats_decrement(stats->counters, counter);
365 /* Look up correct counter. */
368 uint32_t counter = isc_stats_get_counter(stats->counters, idx);
369 if (counter == kval) {
379 uint32_t counter = isc_stats_get_counter(stats->counters, idx);
380 if (counter == 0) {
397 /* And increment the counter for the given operation. */
413 /* Look up correct counter. */
416 uint32_t counter = isc_stats_get_counter(stats->counters, idx);
417 if (counter == kval) {
458 rdatatype_dumpcb(isc_statscounter_t counter, uint64_t value, void *arg) {
461 dump_rdentry(counter, value, 0, rdatadumparg->fn, rdatadumparg->arg);
476 rdataset_dumpcb(isc_statscounter_t counter, uint64_t value, void *arg) {
480 if ((counter & RDTYPECOUNTER_NXDOMAIN) == RDTYPECOUNTER_NXDOMAIN) {
484 * This is an NXDOMAIN counter, check the RRtype part for the
487 if ((counter & RDTYPECOUNTER_MAXTYPE) ==
491 } else if ((counter & RDTYPECOUNTER_MAXTYPE) ==
497 if ((counter & RDTYPECOUNTER_MAXTYPE) == 0) {
500 if ((counter & RDTYPECOUNTER_NXRRSET) != 0) {
504 if ((counter & RDTYPECOUNTER_STALE) != 0) {
506 } else if ((counter & RDTYPECOUNTER_ANCIENT) != 0) {
511 dump_rdentry(counter, value, attributes, rdatadumparg->fn,
529 dnssec_dumpcb(isc_statscounter_t counter, uint64_t value, void *arg) {
532 dnssecarg->fn((uint32_t)counter, value, dnssecarg->arg);
575 opcode_dumpcb(isc_statscounter_t counter, uint64_t value, void *arg) {
578 opcodearg->fn((dns_opcode_t)counter, value, opcodearg->arg);
582 rcode_dumpcb(isc_statscounter_t counter, uint64_t value, void *arg) {
585 rcodearg->fn((dns_rcode_t)counter, value, rcodearg->arg);