/bind-9.11.3/lib/isc/tests/ |
H A D | counter_test.c | 14 #include <isc/counter.h> 21 atf_tc_set_md_var(tc, "descr", "isc counter object"); 25 isc_counter_t *counter = NULL; local 31 result = isc_counter_create(mctx, 0, &counter); 35 result = isc_counter_increment(counter); 39 ATF_CHECK_EQ(isc_counter_used(counter), 10); 41 isc_counter_setlimit(counter, 15); 43 result = isc_counter_increment(counter); 48 ATF_CHECK_EQ(isc_counter_used(counter), 15); 50 isc_counter_detach(&counter); [all...] |
H A D | task_test.c | 30 int counter = 0; variable 41 *value = counter++; 54 counter++; 100 counter = 1; 157 counter = 1; 254 ATF_CHECK_EQ(counter, 6); 286 counter = 1; 385 ATF_CHECK_EQ(counter, 6);
|
/bind-9.11.3/lib/isc/win32/include/isc/ |
H A D | once.h | 21 int counter; member in struct:__anon299
|
/bind-9.11.3/lib/isc/ |
H A D | counter.c | 15 #include <isc/counter.h> 35 isc_counter_t *counter; local 39 counter = isc_mem_get(mctx, sizeof(*counter)); 40 if (counter == NULL) 43 result = isc_mutex_init(&counter->lock); 45 isc_mem_put(mctx, counter, sizeof(*counter)); 49 counter->mctx = NULL; 50 isc_mem_attach(mctx, &counter 62 isc_counter_increment(isc_counter_t *counter) argument 75 isc_counter_used(isc_counter_t *counter) argument 82 isc_counter_setlimit(isc_counter_t *counter, int limit) argument 104 destroy(isc_counter_t *counter) argument 112 isc_counter_t *counter; local [all...] |
H A D | stats.c | 54 * Normal locks are too expensive to be used whenever a counter 65 * 32-bit operations are then split the counter into two, 119 * copy the current counter values into a local array. This buffer 242 incrementcounter(isc_stats_t *stats, int counter) { argument 248 * counter while we "writing" a counter field. The write access itself 256 prev = atomic_fetch_add_explicit(&stats->counters[counter].lo, 1, 259 prev = isc_atomic_xadd((isc_int32_t *)&stats->counters[counter].lo, 1); 271 atomic_fetch_add_explicit(&stats->counters[counter].hi, 1, 274 isc_atomic_xadd((isc_int32_t *)&stats->counters[counter] 296 decrementcounter(isc_stats_t *stats, int counter) argument 382 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter) argument 390 isc_stats_decrement(isc_stats_t *stats, isc_statscounter_t counter) argument 416 isc_stats_set(isc_stats_t *stats, isc_uint64_t val, isc_statscounter_t counter) argument [all...] |
/bind-9.11.3/unit/atf-src/atf-c/detail/ |
H A D | text_test.c | 99 size_t *counter = data; local 101 (*counter)++;
|
/bind-9.11.3/lib/dns/ |
H A D | stats.c | 49 /* For 0-255, we use the rdtype value as counter indices */ 203 dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter) { argument 206 isc_stats_increment(stats->counters, counter); 211 int counter; local 216 counter = rdtypecounter_dlv; 218 counter = rdtypecounter_others; 220 counter = (int)type; 222 isc_stats_increment(stats->counters, (isc_statscounter_t)counter); 229 int counter; local 234 counter 331 rdatatype_dumpcb(isc_statscounter_t counter, isc_uint64_t value, void *arg) argument 350 rdataset_dumpcb(isc_statscounter_t counter, isc_uint64_t value, void *arg) argument 399 opcode_dumpcb(isc_statscounter_t counter, isc_uint64_t value, void *arg) argument 406 rcode_dumpcb(isc_statscounter_t counter, isc_uint64_t value, void *arg) argument [all...] |
H A D | cache.c | 1357 getcounter(isc_statscounter_t counter, isc_uint64_t val, void *arg) { argument 1360 REQUIRE(counter < dumparg->ncounters); 1361 dumparg->countervalues[counter] = val; 1441 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counter")); 1447 TRY0(xmlTextWriterEndElement(writer)); /* counter */
|
H A D | dnssec.c | 74 inc_stat(isc_statscounter_t counter) { argument 76 isc_stats_increment(dns_dnssec_stats, counter); 1140 * Decrement the additional field counter.
|
H A D | dispatch.c | 174 * reference counter so that we can 'reuse' the same port (with different 350 inc_stats(dns_dispatchmgr_t *mgr, isc_statscounter_t counter) { argument 352 isc_stats_increment(mgr->stats, counter); 356 dec_stats(dns_dispatchmgr_t *mgr, isc_statscounter_t counter) { argument 358 isc_stats_decrement(mgr->stats, counter);
|
H A D | adb.c | 500 inc_stats(dns_adb_t *adb, isc_statscounter_t counter) { argument 502 isc_stats_increment(adb->view->resstats, counter); 509 set_adbstat(dns_adb_t *adb, isc_uint64_t val, isc_statscounter_t counter) { argument 511 isc_stats_set(adb->view->adbstats, val, counter); 515 dec_adbstats(dns_adb_t *adb, isc_statscounter_t counter) { argument 517 isc_stats_decrement(adb->view->adbstats, counter); 521 inc_adbstats(dns_adb_t *adb, isc_statscounter_t counter) { argument 523 isc_stats_increment(adb->view->adbstats, counter);
|
H A D | resolver.c | 14 #include <isc/counter.h> 580 inc_stats(dns_resolver_t *res, isc_statscounter_t counter) { argument 582 isc_stats_increment(res->view->resstats, counter); 586 dec_stats(dns_resolver_t *res, isc_statscounter_t counter) { argument 588 isc_stats_decrement(res->view->resstats, counter); 1194 fcount_logspill(fetchctx_t *fctx, fctxcount_t *counter) { argument 1202 if (counter->logged > now - 60) 1211 dbuf, counter->allowed, counter->dropped); 1213 counter 1220 fctxcount_t *counter; local 1281 fctxcount_t *counter; local [all...] |
H A D | zone.c | 880 inc_stats(dns_zone_t *zone, isc_statscounter_t counter) { argument 882 isc_stats_increment(zone->stats, counter);
|
/bind-9.11.3/bin/named/ |
H A D | statschannel.c | 115 * below so that they'll be less susceptible to counter name changes. 158 * preference, regardless of the order of counter indices. For example, 174 set_desc(int counter, int maxcounter, const char *fdesc, const char **fdescs, argument 177 REQUIRE(counter < maxcounter); 178 REQUIRE(fdescs != NULL && fdescs[counter] == NULL); 180 REQUIRE(xdescs != NULL && xdescs[counter] == NULL); 183 fdescs[counter] = fdesc; 185 xdescs[counter] = xdesc; 1000 generalstat_dump(isc_statscounter_t counter, isc_uint64_t val, void *arg) { argument 1003 REQUIRE(counter < dumpar 1021 json_object *job, *cat, *counter; local [all...] |
H A D | update.c | 295 inc_stats(dns_zone_t *zone, isc_statscounter_t counter) { argument 296 isc_stats_increment(ns_g_server->nsstats, counter); 301 isc_stats_increment(zonestats, counter);
|
H A D | xfrout.c | 107 inc_stats(dns_zone_t *zone, isc_statscounter_t counter) { argument 108 isc_stats_increment(ns_g_server->nsstats, counter); 112 isc_stats_increment(zonestats, counter);
|
H A D | query.c | 218 inc_stats(ns_client_t *client, isc_statscounter_t counter) { argument 225 isc_stats_increment(ns_g_server->nsstats, counter); 234 isc_stats_increment(zonestats, counter); 239 * answer counter, preventing double-counting. 241 if (counter == dns_nsstatscounter_authans) { 255 isc_statscounter_t counter; local 266 counter = dns_nsstatscounter_referral; 268 counter = dns_nsstatscounter_nxrrset; 270 counter = dns_nsstatscounter_success; 272 counter [all...] |