/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/ |
H A D | stats.c | 34 #include <isc/stats.h> 79 * of the stats structure so that the dump operation won't fail due 91 isc_stats_t *stats; local 96 stats = isc_mem_get(mctx, sizeof(*stats)); 97 if (stats == NULL) 100 result = isc_mutex_init(&stats->lock); 104 stats->counters = isc_mem_get(mctx, sizeof(isc_stat_t) * ncounters); 105 if (stats->counters == NULL) { 109 stats 152 isc_stats_attach(isc_stats_t *stats, isc_stats_t **statsp) argument 165 isc_stats_t *stats; local 190 isc_stats_ncounters(isc_stats_t *stats) argument 197 incrementcounter(isc_stats_t *stats, int counter) argument 235 decrementcounter(isc_stats_t *stats, int counter) argument 261 copy_counters(isc_stats_t *stats) argument 297 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter) argument 305 isc_stats_decrement(isc_stats_t *stats, isc_statscounter_t counter) argument 313 isc_stats_dump(isc_stats_t *stats, isc_stats_dumper_t dump_fn, void *arg, unsigned int options) argument [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/ |
H A D | stats.c | 19 /* Id: stats.c,v 1.3.6.2 2009/01/29 23:47:44 tbox Exp */ 34 #include <isc/stats.h> 79 * of the stats structure so that the dump operation won't fail due 91 isc_stats_t *stats; local 96 stats = isc_mem_get(mctx, sizeof(*stats)); 97 if (stats == NULL) 100 result = isc_mutex_init(&stats->lock); 104 stats->counters = isc_mem_get(mctx, sizeof(isc_stat_t) * ncounters); 105 if (stats 152 isc_stats_attach(isc_stats_t *stats, isc_stats_t **statsp) argument 165 isc_stats_t *stats; local 190 isc_stats_ncounters(isc_stats_t *stats) argument 197 incrementcounter(isc_stats_t *stats, int counter) argument 235 decrementcounter(isc_stats_t *stats, int counter) argument 261 copy_counters(isc_stats_t *stats) argument 297 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter) argument 305 isc_stats_decrement(isc_stats_t *stats, isc_statscounter_t counter) argument 313 isc_stats_dump(isc_stats_t *stats, isc_stats_dumper_t dump_fn, void *arg, unsigned int options) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/kern/ |
H A D | subr_iostat.c | 140 struct io_stats *stats; local 142 stats = kmem_zalloc(sizeof(*stats), KM_SLEEP); 143 if (stats == NULL) 144 panic("iostat_alloc: cannot allocate memory for stats buffer"); 146 stats->io_type = type; 147 stats->io_parent = parent; 148 (void)strlcpy(stats->io_name, name, sizeof(stats->io_name)); 153 getmicrouptime(&stats 170 iostat_free(struct io_stats *stats) argument 190 iostat_busy(struct io_stats *stats) argument 202 iostat_unbusy(struct io_stats *stats, long bcount, int read) argument 232 iostat_isbusy(struct io_stats *stats) argument 243 iostat_seek(struct io_stats *stats) argument 269 struct io_stats *stats; local 323 struct io_stats *stats; local [all...] |
H A D | kern_rndpool.c | 67 memset(&rp->stats, 0, sizeof(rp->stats)); 69 rp->stats.curentropy = 0; 70 rp->stats.poolsize = RND_POOLWORDS; 71 rp->stats.threshold = RND_ENTROPY_THRESHOLD; 72 rp->stats.maxentropy = RND_POOLBITS; 81 return (rp->stats.curentropy); 87 memcpy(rsp, &rp->stats, size); 94 rp->stats.curentropy += entropy; 95 rp->stats [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/dns/ |
H A D | stats.c | 20 /* Id: stats.c,v 1.18 2009/01/27 23:47:54 tbox Exp */ 28 #include <isc/stats.h> 33 #include <dns/stats.h> 89 dns_stats_attach(dns_stats_t *stats, dns_stats_t **statsp) { argument 90 REQUIRE(DNS_STATS_VALID(stats)); 93 LOCK(&stats->lock); 94 stats->references++; 95 UNLOCK(&stats->lock); 97 *statsp = stats; 102 dns_stats_t *stats; local 127 dns_stats_t *stats; local 195 dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter) argument 202 dns_rdatatypestats_increment(dns_stats_t *stats, dns_rdatatype_t type) argument 218 update_rdatasetstats(dns_stats_t *stats, dns_rdatastatstype_t rrsettype, isc_boolean_t increment) argument 248 dns_rdatasetstats_increment(dns_stats_t *stats, dns_rdatastatstype_t rrsettype) argument 257 dns_rdatasetstats_decrement(dns_stats_t *stats, dns_rdatastatstype_t rrsettype) argument 265 dns_opcodestats_increment(dns_stats_t *stats, dns_opcode_t code) argument 275 dns_generalstats_dump(dns_stats_t *stats, dns_generalstats_dumper_t dump_fn, void *arg, unsigned int options) argument 312 dns_rdatatypestats_dump(dns_stats_t *stats, dns_rdatatypestats_dumper_t dump_fn, void *arg0, unsigned int options) argument 341 dns_rdatasetstats_dump(dns_stats_t *stats, dns_rdatatypestats_dumper_t dump_fn, void *arg0, unsigned int options) argument 362 dns_opcodestats_dump(dns_stats_t *stats, dns_opcodestats_dumper_t dump_fn, void *arg0, unsigned int options) argument [all...] |
/netbsd-6-1-5-RELEASE/gnu/dist/grep/lib/ |
H A D | isdir.c | 41 struct stat stats; local 43 return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode);
|
/netbsd-6-1-5-RELEASE/sys/external/bsd/drm/dist/tests/ |
H A D | getstats.c | 40 drm_stats_t stats; local 44 ret = ioctl(fd, DRM_IOCTL_GET_STATS, &stats); 47 assert(stats.count >= 0);
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/include/isc/ |
H A D | stats.h | 24 /*! \file isc/stats.h */ 58 isc_stats_attach(isc_stats_t *stats, isc_stats_t **statsp); 63 *\li 'stats' is a valid isc_stats_t. 78 isc_stats_ncounters(isc_stats_t *stats); 80 * Returns the number of counters contained in stats. 83 *\li 'stats' is a valid isc_stats_t. 88 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter); 90 * Increment the counter-th counter of stats. 93 *\li 'stats' is a valid isc_stats_t. 95 *\li counter is less than the maximum available ID for the stats specifie [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/include/isc/ |
H A D | stats.h | 19 /* Id: stats.h,v 1.4.2.2 2009/01/29 23:47:44 tbox Exp */ 24 /*! \file isc/stats.h */ 58 isc_stats_attach(isc_stats_t *stats, isc_stats_t **statsp); 63 *\li 'stats' is a valid isc_stats_t. 78 isc_stats_ncounters(isc_stats_t *stats); 80 * Returns the number of counters contained in stats. 83 *\li 'stats' is a valid isc_stats_t. 88 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter); 90 * Increment the counter-th counter of stats. 93 *\li 'stats' i [all...] |
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/global/ |
H A D | log_adhoc.c | 11 /* void log_adhoc(id, stats, recipient, relay, dsn, status) 13 /* MSG_STATS *stats; 28 /* .IP stats 87 void log_adhoc(const char *id, MSG_STATS *stats, RECIPIENT *recipient, argument 116 if (stats->reuse_count > 0) 117 vstring_sprintf_append(buf, ", conn_use=%d", stats->reuse_count + 1); 162 if (TIME_STAMPED(stats->deliver_done)) 163 now = stats->deliver_done; 167 DELTA(delay, now, stats->incoming_arrival); 171 if (TIME_STAMPED(stats [all...] |
H A D | msg_stats_scan.c | 21 /* ... ATTR_SCAN_FUNC, msg_stats_scan, (void *) &stats, ... 61 MSG_STATS *stats = (MSG_STATS *) ptr; local 78 if (LEN(buf) == sizeof(*stats)) { 79 memcpy((char *) stats, STR(buf), sizeof(*stats)); 82 (unsigned) LEN(buf), (unsigned) sizeof(*stats));
|
H A D | sent.c | 11 /* int sent(flags, queue_id, stats, recipient, relay, dsn) 14 /* MSG_STATS *stats; 43 /* .IP stats 97 int sent(int flags, const char *id, MSG_STATS *stats, argument 118 status = verify_append(id, stats, recipient, relay, &my_dsn, 129 status = trace_append(flags, id, stats, recipient, relay, &my_dsn); 141 || trace_append(flags, id, stats, recipient, relay, &my_dsn) == 0) 143 || trace_append(flags, id, stats, recipient, relay, &my_dsn) == 0)) { 144 log_adhoc(id, stats, recipient, relay, &my_dsn, "sent"); 153 status = defer_append(flags, id, stats, recipien [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/pthreads/ |
H A D | mutex.c | 85 static isc_mutexstats_t stats[ISC_MUTEX_PROFTABLESIZE]; variable 115 mp->stats = &stats[stats_next++]; 119 mp->stats->file = file; 120 mp->stats->line = line; 121 mp->stats->count = 0; 122 timevalclear(&mp->stats->locked_total); 123 timevalclear(&mp->stats->wait_total); 125 mp->stats->lockers[i].file = NULL; 126 mp->stats [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/pthreads/ |
H A D | mutex.c | 85 static isc_mutexstats_t stats[ISC_MUTEX_PROFTABLESIZE]; variable 115 mp->stats = &stats[stats_next++]; 119 mp->stats->file = file; 120 mp->stats->line = line; 121 mp->stats->count = 0; 122 timevalclear(&mp->stats->locked_total); 123 timevalclear(&mp->stats->wait_total); 125 mp->stats->lockers[i].file = NULL; 126 mp->stats [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/cnwctl/ |
H A D | cnwctl.c | 154 cnwis.stats.nws_txretries[0] = 0; 157 cnwis.stats.nws_txretries[0] += 158 cnwis.stats.nws_txretries[i] * i; 167 printf("%10llu rx\n", (unsigned long long)cnwis.stats.nws_rx); 169 (unsigned long long)cnwis.stats.nws_rxoverflow); 171 (unsigned long long)cnwis.stats.nws_rxoverrun); 173 (unsigned long long)cnwis.stats.nws_rxcrcerror); 175 (unsigned long long)cnwis.stats.nws_rxframe); 177 (unsigned long long)cnwis.stats.nws_rxerrors); 179 (unsigned long long)cnwis.stats [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/pci/n8/QMgr/ |
H A D | QMUtil.c | 322 N8_Status_t N8_QMgrQueryStatistics(N8_QueueStatistics_t *stats) argument 327 if (QMgr_get_control_struct(&queuePK_p, N8_PKP, stats->chip) == N8_INVALID_PARAMETER) 331 if (QMgr_get_control_struct(&queueRN_p, N8_RNG, stats->chip) == N8_INVALID_PARAMETER) 335 if (QMgr_get_control_struct(&queueEA_p, N8_EA, stats->chip) == N8_INVALID_PARAMETER) 341 stats->PKstats = queuePK_p->stats; 344 stats->EAstats = queueEA_p->stats; 347 stats->RNstats = queueRN_p->stats; [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.target/sparc/ |
H A D | mnofpu.c | 65 struct e1000_hw_stats stats; member in struct:e1000_adapter 77 adapter->stats.prc64 += __er32(hw, E1000_PRC64); 78 adapter->stats.prc127 += __er32(hw, E1000_PRC127); 79 adapter->stats.prc255 += __er32(hw, E1000_PRC255); 80 adapter->stats.ptc511 += __er32(hw, E1000_PTC511); 81 adapter->stats.ptc1023 += __er32(hw, E1000_PTC1023); 82 adapter->stats.ptc1522 += __er32(hw, E1000_PTC1522); 84 adapter->stats.mptc += __er32(hw, E1000_MPTC);
|
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/oqmgr/ |
H A D | qmgr_bounce.c | 62 MSG_STATS stats; local 66 QMGR_MSG_STATS(&stats, message), recipient,
|
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/qmgr/ |
H A D | qmgr_bounce.c | 62 MSG_STATS stats; local 66 QMGR_MSG_STATS(&stats, message), recipient,
|
/netbsd-6-1-5-RELEASE/external/bsd/top/dist/ |
H A D | display.h | 58 void i_kernel(int *stats); 59 void u_kernel(int *stats); 60 void i_memory(long *stats); 61 void u_memory(long *stats); 62 void i_swap(long *stats); 63 void u_swap(long *stats);
|
/netbsd-6-1-5-RELEASE/external/gpl2/lvm2/dist/libdm/mm/ |
H A D | pool-debug.c | 45 pool_stats stats; member in struct:dm_pool 66 mem->stats.block_serialno = 0; 67 mem->stats.blocks_allocated = 0; 68 mem->stats.blocks_max = 0; 69 mem->stats.bytes = 0; 70 mem->stats.maxbytes = 0; 87 p->stats.bytes -= b->size; 88 p->stats.blocks_allocated--; 101 "%u allocations)", action, p->name, p->stats.bytes, 102 p->stats [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/dns/include/dns/ |
H A D | stats.h | 1 /* $NetBSD: stats.h,v 1.4 2012/12/04 23:38:43 spz Exp $ */ 25 /*! \file dns/stats.h */ 70 * DNSSEC stats. 232 dns_stats_attach(dns_stats_t *stats, dns_stats_t **statsp); 237 *\li 'stats' is a valid dns_stats_t. 252 dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter); 254 * Increment the counter-th counter of stats. This function is obsolete. 258 *\li 'stats' is a valid dns_stats_t created by dns_generalstats_create(). 260 *\li counter is less than the maximum available ID for the stats specified 265 dns_rdatatypestats_increment(dns_stats_t *stats, dns_rdatatype_ [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/altq/altqstat/ |
H A D | qdisc_wfq.c | 53 queue_stats stats; member in struct:wfqinfo 110 qinfo[i].stats = wfq_stats.stats; 120 qinfo[i].bps = calc_rate(qinfo[i].stats.xmit_cnt.bytes, 122 qinfo[i].last_bytes = qinfo[i].stats.xmit_cnt.bytes; 131 top[j]->stats.xmit_cnt.packets < 132 qinfo[i].stats.xmit_cnt.packets)) { 150 top[j]->stats.weight, 151 top[j]->stats.bytes / 1024, 152 (ull)top[j]->stats [all...] |
/netbsd-6-1-5-RELEASE/external/cddl/osnet/dist/tools/ctf/dump/ |
H A D | dump.c | 94 } stats; variable in typeref:struct:__anon2645 306 stats.s_ndata = n; 379 stats.s_nfunc++; 380 stats.s_nargs += n; 381 stats.s_argmax = MAX(stats.s_argmax, n); 511 stats.s_nsmem += n; 512 stats.s_smmax = MAX(stats.s_smmax, n); 513 stats [all...] |
/netbsd-6-1-5-RELEASE/dist/pppd/pppdump/ |
H A D | deflate.c | 66 struct compstat stats; member in struct:deflate_state 80 static void z_comp_stats __P((void *state, struct compstat *stats)); 123 z_comp_stats(arg, stats) 125 struct compstat *stats; 130 *stats = state->stats; 131 stats->ratio = stats->unc_bytes; 132 out = stats->comp_bytes + stats [all...] |