Lines Matching refs:ncounters
59 int ncounters;
88 create_stats(isc_mem_t *mctx, int ncounters, isc_stats_t **statsp) {
102 stats->counters = isc_mem_get(mctx, sizeof(isc_stat_t) * ncounters);
108 sizeof(isc_uint64_t) * ncounters);
121 memset(stats->counters, 0, sizeof(isc_stat_t) * ncounters);
124 stats->ncounters = ncounters;
132 isc_mem_put(mctx, stats->counters, sizeof(isc_stat_t) * ncounters);
137 sizeof(isc_stat_t) * ncounters);
176 sizeof(isc_stat_t) * stats->ncounters);
178 sizeof(isc_stat_t) * stats->ncounters);
191 return (stats->ncounters);
271 for (i = 0; i < stats->ncounters; i++) {
279 stats->ncounters * sizeof(isc_stat_t));
288 isc_stats_create(isc_mem_t *mctx, isc_stats_t **statsp, int ncounters) {
291 return (create_stats(mctx, ncounters, statsp));
297 REQUIRE(counter < stats->ncounters);
305 REQUIRE(counter < stats->ncounters);
320 for (i = 0; i < stats->ncounters; i++) {