/freebsd-10.2-release/tools/tools/crypto/ |
H A D | ubsecstats.c | 38 struct ubsec_stats stats; local 41 slen = sizeof (stats); 42 if (sysctlbyname("hw.ubsec.stats", &stats, &slen, NULL, NULL) < 0) 46 stats.hst_ibytes, stats.hst_ipackets); 48 stats.hst_obytes, stats.hst_opackets); 50 stats.hst_invalid, stats [all...] |
H A D | safestats.c | 38 struct safe_stats stats; local 41 slen = sizeof (stats); 42 if (sysctlbyname("hw.safe.stats", &stats, &slen, NULL, NULL) < 0) 43 err(1, "hw.safe.stats"); 46 stats.st_ibytes, stats.st_ipackets); 48 stats.st_obytes, stats.st_opackets); 50 stats [all...] |
H A D | hifnstats.c | 38 struct hifn_stats stats; local 41 slen = sizeof (stats); 42 if (sysctlbyname("hw.hifn.stats", &stats, &slen, NULL, NULL) < 0) 43 err(1, "kern.hifn.stats"); 46 stats.hst_ibytes, stats.hst_ipackets); 48 stats.hst_obytes, stats.hst_opackets); 50 stats [all...] |
H A D | cryptostats.c | 31 * zero all the stats or just the timing stuff. 59 struct cryptostats stats; local 62 slen = sizeof (stats); 63 if (sysctlbyname("kern.crypto_stats", &stats, &slen, NULL, 0) < 0) 67 bzero(&stats.cs_invoke, sizeof (stats.cs_invoke)); 68 bzero(&stats.cs_done, sizeof (stats.cs_done)); 69 bzero(&stats.cs_cb, sizeof (stats [all...] |
/freebsd-10.2-release/contrib/ntp/lib/isc/ |
H A D | stats.c | 32 #include <isc/stats.h> 77 * of the stats structure so that the dump operation won't fail due 89 isc_stats_t *stats; local 94 stats = isc_mem_get(mctx, sizeof(*stats)); 95 if (stats == NULL) 98 result = isc_mutex_init(&stats->lock); 102 stats->counters = isc_mem_get(mctx, sizeof(isc_stat_t) * ncounters); 103 if (stats->counters == NULL) { 107 stats 150 isc_stats_attach(isc_stats_t *stats, isc_stats_t **statsp) argument 163 isc_stats_t *stats; local 188 isc_stats_ncounters(isc_stats_t *stats) argument 195 incrementcounter(isc_stats_t *stats, int counter) argument 233 decrementcounter(isc_stats_t *stats, int counter) argument 259 copy_counters(isc_stats_t *stats) argument 295 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter) argument 303 isc_stats_decrement(isc_stats_t *stats, isc_statscounter_t counter) argument 311 isc_stats_dump(isc_stats_t *stats, isc_stats_dumper_t dump_fn, void *arg, unsigned int options) argument [all...] |
/freebsd-10.2-release/tools/tools/mtxstat/ |
H A D | mtxratio.sh | 2 sysctl debug.mutex.prof.stats | awk '$1 ~ /[0-9]+/ { if ($3 != 0) { hld_prc = $5 / $3 * 100; lck_prc = $6 / $3 * 100 } else { hld_prc = 0; lck_prc = 0 } print $1 " " $2 " " $3 " " $4 " " $5 " " hld_prc " " $6 " " lck_prc " " substr($0, index($0, $7)); next } { print }'
|
/freebsd-10.2-release/contrib/ofed/management/opensm/include/opensm/ |
H A D | osm_stats.h | 149 static inline uint32_t osm_stats_inc_qp0_outstanding(osm_stats_t *stats) argument 154 pthread_mutex_lock(&stats->mutex); 155 outstanding = ++stats->qp0_mads_outstanding; 156 pthread_mutex_unlock(&stats->mutex); 158 outstanding = cl_atomic_inc(&stats->qp0_mads_outstanding); 164 static inline uint32_t osm_stats_dec_qp0_outstanding(osm_stats_t *stats) argument 169 pthread_mutex_lock(&stats->mutex); 170 outstanding = --stats->qp0_mads_outstanding; 172 pthread_cond_signal(&stats->cond); 173 pthread_mutex_unlock(&stats [all...] |
/freebsd-10.2-release/gnu/usr.bin/grep/ |
H A D | isdir.c | 39 struct stat stats; local 41 return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode);
|
/freebsd-10.2-release/contrib/ntp/lib/isc/include/isc/ |
H A D | stats.h | 22 /*! \file isc/stats.h */ 56 isc_stats_attach(isc_stats_t *stats, isc_stats_t **statsp); 61 *\li 'stats' is a valid isc_stats_t. 76 isc_stats_ncounters(isc_stats_t *stats); 78 * Returns the number of counters contained in stats. 81 *\li 'stats' is a valid isc_stats_t. 86 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter); 88 * Increment the counter-th counter of stats. 91 *\li 'stats' is a valid isc_stats_t. 93 *\li counter is less than the maximum available ID for the stats specifie [all...] |
/freebsd-10.2-release/sys/dev/nxge/xgehal/ |
H A D | xgehal-stats.c | 26 * $FreeBSD: releng/10.2/sys/dev/nxge/xgehal/xgehal-stats.c 173139 2007-10-29 14:19:32Z rwatson $ 29 #include <dev/nxge/include/xgehal-stats.h> 34 * @stats: xge_hal_stats_t structure that contains, in particular, 42 __hal_stats_initialize (xge_hal_stats_t *stats, xge_hal_device_h devh) argument 47 xge_assert(!stats->is_initialized); 56 stats->hw_info = 61 &stats->hw_info_dmah, 62 &stats->hw_info_dma_acch); 64 if (stats->hw_info == NULL) { 68 xge_os_memzero(stats 189 __hal_stats_save(xge_hal_stats_t *stats) argument 219 __hal_stats_disable(xge_hal_stats_t *stats) argument 253 __hal_stats_terminate(xge_hal_stats_t *stats) argument 310 __hal_stats_enable(xge_hal_stats_t *stats) argument [all...] |
/freebsd-10.2-release/tools/LibraryReport/ |
H A D | LibraryReport.tcl | 64 global Libs stats verbose; 123 set stats(libs) [llength [array names Libs]]; 138 global stats verbose; 151 incr stats(dirs); 159 incr stats(files); 185 global Libs stats verbose; 193 incr stats(execs); 260 global stats verbose argv; 275 set stats(libs) 0; 276 set stats(dir [all...] |
/freebsd-10.2-release/contrib/ntp/lib/isc/pthreads/ |
H A D | mutex.c | 92 static isc_mutexstats_t stats[ISC_MUTEX_PROFTABLESIZE]; variable 122 mp->stats = &stats[stats_next++]; 126 mp->stats->file = file; 127 mp->stats->line = line; 128 mp->stats->count = 0; 129 timevalclear(&mp->stats->locked_total); 130 timevalclear(&mp->stats->wait_total); 132 mp->stats->lockers[i].file = NULL; 133 mp->stats [all...] |
/freebsd-10.2-release/contrib/sendmail/src/ |
H A D | stats.c | 16 SM_RCSID("@(#)$Id: stats.c,v 8.58 2013-11-22 20:51:56 ca Exp $") 22 static bool GotStats = false; /* set when we have stats to merge */ 33 ** type -- type of stats this represents. 138 struct statistics stats; local 165 if (read(fd, (char *) &stats, sizeof(stats)) == sizeof(stats) && 166 stats.stat_size == sizeof(stats) && 167 stats [all...] |
/freebsd-10.2-release/sys/contrib/rdma/krping/ |
H A D | krping_dev.c | 61 struct krping_stats *stats; member in struct:stats_list_entry 107 krping_copy_stats(struct krping_stats *stats, void *arg) argument 115 if (stats != NULL) { 116 s->stats = malloc(sizeof(*stats), M_DEVBUF, M_NOWAIT | M_ZERO); 117 if (s->stats == NULL) { 121 *s->stats = *stats; 146 if (e->stats == NULL) 149 struct krping_stats *stats local [all...] |
/freebsd-10.2-release/contrib/sendmail/mailstats/ |
H A D | mailstats.c | 67 struct statistics stats; local 224 if ((fd < 0) || (i = read(fd, &stats, sizeof stats)) < 0) 235 if ((i = read(fd, &stats, sizeof stats)) < 0) 246 memset((ARBPTR_T) &stats, '\0', sizeof stats); 247 (void) time(&stats.stat_itime); 252 if (stats.stat_magic != STAT_MAGIC) 259 else if (stats [all...] |
/freebsd-10.2-release/contrib/unbound/daemon/ |
H A D | stats.c | 2 * daemon/stats.c - collect runtime performance indicators. 48 #include "daemon/stats.h" 77 void server_stats_init(struct server_stats* stats, struct config_file* cfg) argument 79 memset(stats, 0, sizeof(*stats)); 80 stats->extended = cfg->stat_extended; 83 void server_stats_querymiss(struct server_stats* stats, struct worker* worker) argument 85 stats->num_queries_missed_cache++; 86 stats->sum_query_list_size += worker->env.mesh->all.count; 87 if(worker->env.mesh->all.count > stats 91 server_stats_prefetch(struct server_stats* stats, struct worker* worker) argument 100 server_stats_log(struct server_stats* stats, struct worker* worker, int threadnum) argument 274 server_stats_insquery(struct server_stats* stats, struct comm_point* c, uint16_t qtype, uint16_t qclass, struct edns_data* edns, struct comm_reply* repinfo) argument 313 server_stats_insrcode(struct server_stats* stats, sldns_buffer* buf) argument [all...] |
H A D | stats.h | 2 * daemon/stats.h - collect runtime performance indicators. 57 /** number of rcodes in stats */ 59 /** number of opcodes in stats */ 79 /** Extended stats below (bool) */ 82 /** qtype stats */ 86 /** qclass stats */ 154 /** the thread stats */ 157 /** mesh stats: current number of states */ 159 /** mesh stats: current number of reply (user) states */ 161 /** mesh stats [all...] |
/freebsd-10.2-release/tools/tools/iwi/ |
H A D | iwistats.c | 113 static uint32_t stats[256]; local 122 len = sizeof(stats); 123 (void)snprintf(oid, sizeof(oid), "dev.iwi.%u.stats", ifaceno); 124 if (sysctlbyname(oid, stats, &len, NULL, 0) == -1) 128 (void)printf("%-60s[%u]\n", stat->desc, stats[stat->index]);
|
/freebsd-10.2-release/sys/netgraph/ |
H A D | ng_tee.c | 69 struct ng_tee_hookstat stats; member in struct:hookinfo 199 bzero(&hinfo->stats, sizeof(hinfo->stats)); 223 struct ng_tee_stats *stats; local 227 sizeof(*stats), M_NOWAIT); 232 stats = (struct ng_tee_stats *)resp->data; 233 bcopy(&sc->right.stats, &stats->right, 234 sizeof(stats->right)); 235 bcopy(&sc->left.stats, [all...] |
H A D | ng_hole.c | 60 struct ng_hole_hookstat stats; member in struct:ng_hole_hookinfo 151 struct ng_hole_hookstat *stats; local 172 stats = &((hinfo_p)NG_HOOK_PRIVATE(hook))->stats; 175 NG_MKRESPONSE(resp, msg, sizeof(*stats), 181 bcopy(stats, resp->data, sizeof(*stats)); 183 /* Clear stats (if desired). */ 185 bzero(stats, sizeof(*stats)); [all...] |
/freebsd-10.2-release/sys/dev/cxgbe/iw_cxgbe/ |
H A D | resource.c | 121 mutex_lock(&rdev->stats.lock); 122 rdev->stats.qid.cur += rdev->qpmask + 1; 123 mutex_unlock(&rdev->stats.lock); 152 mutex_lock(&rdev->stats.lock); 153 if (rdev->stats.qid.cur > rdev->stats.qid.max) 154 rdev->stats.qid.max = rdev->stats.qid.cur; 155 mutex_unlock(&rdev->stats.lock); 191 mutex_lock(&rdev->stats [all...] |
/freebsd-10.2-release/cddl/contrib/opensolaris/tools/ctf/dump/ |
H A D | dump.c | 94 } stats; variable in typeref:struct:__anon92 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...] |
/freebsd-10.2-release/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_ethtool.c | 127 struct ethtool_stats *stats, uint64_t *data) 133 data[index++] = priv->lro.lro_mgr.stats.aggregated; 134 data[index++] = priv->lro.lro_mgr.stats.flushed; 135 if (priv->lro.lro_mgr.stats.flushed) 136 data[index++] = priv->lro.lro_mgr.stats.aggregated / 137 priv->lro.lro_mgr.stats.flushed; 140 data[index++] = priv->lro.lro_mgr.stats.no_desc; 126 ipoib_get_ethtool_stats(struct ifnet *dev, struct ethtool_stats *stats, uint64_t *data) argument
|
/freebsd-10.2-release/tools/tools/mwl/mwlstats/ |
H A D | statfoo.c | 49 if (strcasecmp(tok, sf->stats[i].name) == 0) 57 fprintf(stderr, "%s: not enough room for all stats; " 95 const struct fmt *f = &sf->stats[*cp &~ 0x80]; 111 const struct fmt *f = &sf->stats[*cp &~ 0x80]; 128 const struct fmt *f = &sf->stats[*cp &~ 0x80]; 145 fprintf(fd, "%s %s\n", s, sf->stats[i].desc); 156 w = strlen(sf->stats[i].name); 161 const struct fmt *f = &sf->stats[i]; 168 statfoo_init(struct statfoo *sf, const char *name, const struct fmt *stats, int nstats) argument 171 sf->stats [all...] |
/freebsd-10.2-release/usr.sbin/ancontrol/ |
H A D | ancontrol.c | 439 struct an_ltv_stats *stats; local 447 stats = (struct an_ltv_stats *)((uint16_t *)&areq - 1); 449 printf("RX overruns:\t\t\t\t\t[ %u ]\n", stats->an_rx_overruns); 451 stats->an_rx_plcp_csum_errs); 453 stats->an_rx_plcp_format_errs); 455 stats->an_rx_plcp_len_errs); 457 stats->an_rx_mac_crc_errs); 459 stats->an_rx_mac_crc_ok); 461 stats->an_rx_wep_errs); 463 stats [all...] |