Searched refs:counter (Results 1 - 25 of 26) sorted by relevance

12

/bind-9.11.3/lib/isc/
H A Dcounter.c15 #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 Dstats.c54 * 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/bin/tests/system/statschannel/
H A Dtraffic-xml.pl22 if (exists $group->{counter}->{name}) {
23 print $type . $group->{counter}->{name} . ": " . $group->{counter}->{content} . "\n";
25 foreach $key (keys %{$group->{counter}}) {
26 print $type . $key . ": ". $group->{counter}->{$key}->{content} ."\n";
34 if (exists $group->{counter}->{name}) {
35 print $type . $group->{counter}->{name} . ": " . $group->{counter}->{content} . "\n";
37 foreach $key (keys %{$group->{counter}}) {
38 print $type . $key . ": ". $group->{counter}
[all...]
H A Dserver-xml.pl17 foreach $key (keys %{$group->{counter}}) {
18 print $group->{type} . " " . $key . ": ". $group->{counter}->{$key}->{content} . "\n";
/bind-9.11.3/lib/isc/tests/
H A Dcounter_test.c14 #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 Dtask_test.c30 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/include/isc/
H A Dcounter.h16 /*! \file isc/counter.h
22 * from a counter object does not increment or decrement the counter.
42 * Allocate and initialize a counter object.
46 isc_counter_increment(isc_counter_t *counter);
48 * Increment the counter.
50 * If the counter limit is nonzero and has been reached, then
51 * return ISC_R_QUOTA, otherwise ISC_R_SUCCESS. (The counter is
56 isc_counter_used(isc_counter_t *counter);
58 * Return the current counter valu
[all...]
H A Dstats.h33 * Create a statistics counter structure of general type. It counts a general
78 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter);
80 * Increment the counter-th counter of stats.
85 *\li counter is less than the maximum available ID for the stats specified
90 isc_stats_decrement(isc_stats_t *stats, isc_statscounter_t counter);
92 * Decrement the counter-th counter of stats.
102 * Dump the current statistics counters in a specified way. For each counter
113 isc_statscounter_t counter);
[all...]
/bind-9.11.3/lib/dns/
H A Dstats.c49 /* 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 Dresolver.c14 #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 Dcache.c1357 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 Dadb.c500 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 Ddispatch.c174 * 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 Ddnssec.c74 inc_stat(isc_statscounter_t counter) { argument
76 isc_stats_increment(dns_dnssec_stats, counter);
1140 * Decrement the additional field counter.
/bind-9.11.3/lib/isc/win32/include/isc/
H A Donce.h21 int counter; member in struct:__anon299
/bind-9.11.3/lib/isc/win32/
H A Donce.c27 if (InterlockedDecrement(&controller->counter) == 0) {
/bind-9.11.3/lib/dns/include/dns/
H A Dstats.h162 * The rdata type is not explicitly supported and the corresponding counter
178 * counter.
208 * Create a statistics counter structure of general type. It counts a general
227 * Create a statistics counter structure per rdatatype.
243 * Create a statistics counter structure per RRset.
259 * Create a statistics counter structure per opcode.
275 * Create a statistics counter structure per assigned rcode.
309 dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter);
311 * Increment the counter-th counter o
[all...]
/bind-9.11.3/unit/atf-src/atf-c/detail/
H A Dtext_test.c99 size_t *counter = data; local
101 (*counter)++;
/bind-9.11.3/bin/named/
H A Dstatschannel.c115 * 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 Dxfrout.c107 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 Dquery.c218 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...]
H A Dupdate.c295 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);
/bind-9.11.3/
H A Dltmain.sh9196 counter=1
9207 newobj=lt$counter-$objbase
9208 func_arith $counter + 1
9209 counter=$func_arith_result
/bind-9.11.3/unit/atf-src/admin/
H A Dltmain.sh10641 counter=1
10652 newobj=lt$counter-$objbase
10653 func_arith $counter + 1
10654 counter=$func_arith_result
/bind-9.11.3/bin/dnssec/
H A Ddnssec-signzone.c181 #define INCSTAT(counter) \
184 counter++; \

Completed in 233 milliseconds

12