Lines Matching refs:counters
71 isc_stat_t *counters;
74 * We don't want to lock the counters while we are dumping, so we first
102 stats->counters = isc_mem_get(mctx, sizeof(isc_stat_t) * ncounters);
103 if (stats->counters == NULL) {
121 memset(stats->counters, 0, sizeof(isc_stat_t) * ncounters);
132 isc_mem_put(mctx, stats->counters, sizeof(isc_stat_t) * ncounters);
177 isc_mem_put(stats->mctx, stats->counters,
208 prev = isc_atomic_xadd((isc_int32_t *)&stats->counters[counter].lo, 1);
218 isc_atomic_xadd((isc_int32_t *)&stats->counters[counter].hi, 1);
221 isc_atomic_xaddq((isc_int64_t *)&stats->counters[counter], 1);
224 stats->counters[counter]++;
241 prev = isc_atomic_xadd((isc_int32_t *)&stats->counters[counter].lo, -1);
243 isc_atomic_xadd((isc_int32_t *)&stats->counters[counter].hi,
247 isc_atomic_xaddq((isc_int64_t *)&stats->counters[counter], -1);
250 stats->counters[counter]--;
264 * We use a "write" lock before "reading" the statistics counters as
273 (isc_uint64_t)(stats->counters[i].hi) << 32 |
274 stats->counters[i].lo;
278 memmove(stats->copiedcounters, stats->counters,