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

1234567891011>>

/freebsd-9.3-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-9.3-release/contrib/bind9/lib/isc/
H A Dstats.c32 #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-9.3-release/contrib/ntp/lib/isc/
H A Dstats.c32 #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-9.3-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-9.3-release/contrib/bind9/lib/dns/
H A Dstats.c18 /* $Id: stats.c,v 1.18 2009/01/27 23:47:54 tbox Exp $ */
26 #include <isc/stats.h>
31 #include <dns/stats.h>
87 dns_stats_attach(dns_stats_t *stats, dns_stats_t **statsp) { argument
88 REQUIRE(DNS_STATS_VALID(stats));
91 LOCK(&stats->lock);
92 stats->references++;
93 UNLOCK(&stats->lock);
95 *statsp = stats;
100 dns_stats_t *stats; local
125 dns_stats_t *stats; local
193 dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter) argument
200 dns_rdatatypestats_increment(dns_stats_t *stats, dns_rdatatype_t type) argument
216 update_rdatasetstats(dns_stats_t *stats, dns_rdatastatstype_t rrsettype, isc_boolean_t increment) argument
246 dns_rdatasetstats_increment(dns_stats_t *stats, dns_rdatastatstype_t rrsettype) argument
255 dns_rdatasetstats_decrement(dns_stats_t *stats, dns_rdatastatstype_t rrsettype) argument
263 dns_opcodestats_increment(dns_stats_t *stats, dns_opcode_t code) argument
273 dns_generalstats_dump(dns_stats_t *stats, dns_generalstats_dumper_t dump_fn, void *arg, unsigned int options) argument
310 dns_rdatatypestats_dump(dns_stats_t *stats, dns_rdatatypestats_dumper_t dump_fn, void *arg0, unsigned int options) argument
339 dns_rdatasetstats_dump(dns_stats_t *stats, dns_rdatatypestats_dumper_t dump_fn, void *arg0, unsigned int options) argument
360 dns_opcodestats_dump(dns_stats_t *stats, dns_opcodestats_dumper_t dump_fn, void *arg0, unsigned int options) argument
[all...]
/freebsd-9.3-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-9.3-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-9.3-release/contrib/bind9/lib/isc/include/isc/
H A Dstats.h22 /*! \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-9.3-release/contrib/ntp/lib/isc/include/isc/
H A Dstats.h22 /*! \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-9.3-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-9.3-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-9.3-release/contrib/bind9/lib/isc/pthreads/
H A Dmutex.c83 static isc_mutexstats_t stats[ISC_MUTEX_PROFTABLESIZE]; variable
113 mp->stats = &stats[stats_next++];
117 mp->stats->file = file;
118 mp->stats->line = line;
119 mp->stats->count = 0;
120 timevalclear(&mp->stats->locked_total);
121 timevalclear(&mp->stats->wait_total);
123 mp->stats->lockers[i].file = NULL;
124 mp->stats
[all...]
/freebsd-9.3-release/contrib/ntp/lib/isc/pthreads/
H A Dmutex.c92 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-9.3-release/contrib/sendmail/src/
H A Dstats.c16 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-9.3-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-9.3-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-9.3-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...]
/freebsd-9.3-release/contrib/bind9/lib/dns/include/dns/
H A Dstats.h23 /*! \file dns/stats.h */
68 * DNSSEC stats.
230 dns_stats_attach(dns_stats_t *stats, dns_stats_t **statsp);
235 *\li 'stats' is a valid dns_stats_t.
250 dns_generalstats_increment(dns_stats_t *stats, isc_statscounter_t counter);
252 * Increment the counter-th counter of stats. This function is obsolete.
256 *\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
258 *\li counter is less than the maximum available ID for the stats specified
263 dns_rdatatypestats_increment(dns_stats_t *stats, dns_rdatatype_t type);
268 *\li 'stats' i
[all...]
/freebsd-9.3-release/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c94 } 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-9.3-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-9.3-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...]

Completed in 219 milliseconds

1234567891011>>