Searched refs:stats (Results 1 - 25 of 389) sorted by relevance

1234567891011>>

/freebsd-10.0-release/tools/tools/crypto/
H A Dubsecstats.c38 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 Dsafestats.c38 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 Dhifnstats.c38 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 Dcryptostats.c31 * 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.0-release/tools/tools/mtxstat/
H A Dmtxratio.sh2 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.0-release/contrib/ofed/management/opensm/include/opensm/
H A Dosm_stats.h149 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.0-release/gnu/usr.bin/grep/
H A Disdir.c39 struct stat stats; local
41 return stat (path, &stats) == 0 && S_ISDIR (stats.st_mode);
/freebsd-10.0-release/sys/dev/nxge/xgehal/
H A Dxgehal-stats.c29 #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->hw_info,
70 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.0-release/tools/LibraryReport/
H A DLibraryReport.tcl64 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.0-release/contrib/sendmail/src/
H A Dstats.c16 SM_RCSID("@(#)$Id: stats.c,v 8.57 2006/08/15 23:24:58 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.0-release/sys/contrib/rdma/krping/
H A Dkrping_dev.c61 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.0-release/contrib/sendmail/mailstats/
H A Dmailstats.c67 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.0-release/contrib/unbound/daemon/
H A Dstats.c2 * daemon/stats.c - collect runtime performance indicators.
44 #include "daemon/stats.h"
69 void server_stats_init(struct server_stats* stats, struct config_file* cfg) argument
71 memset(stats, 0, sizeof(*stats));
72 stats->extended = cfg->stat_extended;
75 void server_stats_querymiss(struct server_stats* stats, struct worker* worker) argument
77 stats->num_queries_missed_cache++;
78 stats->sum_query_list_size += worker->env.mesh->all.count;
79 if(worker->env.mesh->all.count > stats
83 server_stats_prefetch(struct server_stats* stats, struct worker* worker) argument
92 server_stats_log(struct server_stats* stats, struct worker* worker, int threadnum) argument
256 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
295 server_stats_insrcode(struct server_stats* stats, ldns_buffer* buf) argument
[all...]
H A Dstats.h2 * 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 */
143 /** the thread stats */
146 /** mesh stats: current number of states */
148 /** mesh stats: current number of reply (user) states */
150 /** mesh stats
[all...]
/freebsd-10.0-release/tools/tools/iwi/
H A Diwistats.c113 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.0-release/sys/netgraph/
H A Dng_tee.c69 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 Dng_hole.c60 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...]
H A Dng_source.c87 struct ng_source_stats stats; member in struct:privdata
298 bzero(&sc->stats, sizeof(sc->stats));
359 struct ng_source_stats *stats; local
363 sizeof(*stats), M_NOWAIT);
368 sc->stats.queueOctets = sc->queueOctets;
369 sc->stats.queueFrames = sc->snd_queue.ifq_len;
371 && !timevalisset(&sc->stats.endTime)) {
372 getmicrotime(&sc->stats.elapsedTime);
373 timevalsub(&sc->stats
[all...]
/freebsd-10.0-release/sys/dev/cxgbe/iw_cxgbe/
H A Dresource.c121 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.0-release/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c94 } stats; variable in typeref:struct:__anon90
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.0-release/tools/tools/mwl/mwlstats/
H A Dstatfoo.c49 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.0-release/usr.sbin/ancontrol/
H A Dancontrol.c439 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...]
/freebsd-10.0-release/sys/dev/iscsi_initiator/
H A Discsivar.h97 | some stats
162 struct i_stats stats; member in struct:isc_session
342 if(++sp->stats.nrsp > sp->stats.max_rsp)
343 sp->stats.max_rsp = sp->stats.nrsp;
355 sp->stats.nrsp--;
367 if(++sp->stats.nrsv > sp->stats.max_rsv)
368 sp->stats
[all...]
/freebsd-10.0-release/sys/dev/bfe/
H A Dif_bfe.c476 "stats", CTLTYPE_INT | CTLFLAG_RW, sc, 0, sysctl_bfe_stats,
1245 struct bfe_hw_stats *stats; local
1260 stats = &sc->bfe_stats;
1262 stats->tx_good_octets += mib[MIB_TX_GOOD_O];
1263 stats->tx_good_frames += mib[MIB_TX_GOOD_P];
1264 stats->tx_octets += mib[MIB_TX_O];
1265 stats->tx_frames += mib[MIB_TX_P];
1266 stats->tx_bcast_frames += mib[MIB_TX_BCAST];
1267 stats->tx_mcast_frames += mib[MIB_TX_MCAST];
1268 stats
1869 struct bfe_hw_stats *stats; local
[all...]
/freebsd-10.0-release/libexec/rpc.rstatd/
H A Drstat_proc.c86 struct stats s1;
131 stats *
235 if (sysctlbyname("vm.stats." #cnt , &(stat), &len, 0, 0) < 0) { \
236 syslog(LOG_ERR, "sysctl(vm.stats." #cnt "): %m"); \
303 struct statinfo stats; local
317 stats.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo));
318 bzero(stats.dinfo, sizeof(struct devinfo));
320 if (devstat_getdevs(NULL, &stats) == -1) {
325 for (i = 0; i < stats.dinfo->numdevs; i++) {
326 if (((stats
346 struct statinfo stats; local
[all...]

Completed in 178 milliseconds

1234567891011>>