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

1234567891011>>

/freebsd-10-stable/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-stable/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-10-stable/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-stable/contrib/subversion/subversion/svnfsfs/
H A Dstats-cmd.c0 /* stats-cmd.c -- implements the size stats sub-command.
69 print_rep_stats(svn_fs_fs__representation_stats_t *stats, argument
78 svn__ui64toa_sep(stats->total.packed_size, ',', pool),
79 svn__ui64toa_sep(stats->total.count, ',', pool),
80 svn__ui64toa_sep(stats->shared.packed_size, ',', pool),
81 svn__ui64toa_sep(stats->shared.count, ',', pool),
82 svn__ui64toa_sep(stats->total.expanded_size, ',', pool),
83 svn__ui64toa_sep(stats->shared.expanded_size, ',', pool),
84 svn__ui64toa_sep(stats
180 get_by_extensions(svn_fs_fs__stats_t *stats, int (*comparison_func)(const svn_sort__item_t *, const svn_sort__item_t *), apr_pool_t *pool) argument
229 print_extensions_by_changes(svn_fs_fs__stats_t *stats, apr_pool_t *pool) argument
280 print_extensions_by_nodes(svn_fs_fs__stats_t *stats, apr_pool_t *pool) argument
315 print_extensions_by_reps(svn_fs_fs__stats_t *stats, apr_pool_t *pool) argument
349 print_histograms_by_extension(svn_fs_fs__stats_t *stats, apr_pool_t *pool) argument
374 print_stats(svn_fs_fs__stats_t *stats, apr_pool_t *pool) argument
498 svn_fs_fs__stats_t *stats; local
[all...]
/freebsd-10-stable/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-stable/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-stable/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-10-stable/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-stable/contrib/top/
H A Ddisplay.h18 void i_arc(int *stats);
21 void i_memory(int *stats);
25 void i_swap(int *stats);
31 void u_arc(int *stats);
36 void u_memory(int *stats);
40 void u_swap(int *stats);
/freebsd-10-stable/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-stable/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-10-stable/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-10-stable/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-stable/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-stable/contrib/unbound/daemon/
H A Dstats.c2 * daemon/stats.c - collect runtime performance indicators.
48 #include "daemon/stats.h"
78 void server_stats_init(struct server_stats* stats, struct config_file* cfg) argument
80 memset(stats, 0, sizeof(*stats));
81 stats->extended = cfg->stat_extended;
84 void server_stats_querymiss(struct server_stats* stats, struct worker* worker) argument
86 stats->num_queries_missed_cache++;
87 stats->sum_query_list_size += worker->env.mesh->all.count;
88 if(worker->env.mesh->all.count > stats
92 server_stats_prefetch(struct server_stats* stats, struct worker* worker) argument
101 server_stats_log(struct server_stats* stats, struct worker* worker, int threadnum) argument
284 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
323 server_stats_insrcode(struct server_stats* stats, sldns_buffer* buf) argument
[all...]
/freebsd-10-stable/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-stable/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-10-stable/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-stable/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-10-stable/contrib/subversion/subversion/libsvn_fs_fs/
H A Dstats.c0 /* stats.c -- implements the svn_fs_fs__get_stats private API.
164 svn_fs_fs__stats_t *stats; member in struct:query_t
200 initialize_largest_changes(svn_fs_fs__stats_t *stats, argument
206 stats->largest_changes = apr_pcalloc(result_pool,
207 sizeof(*stats->largest_changes));
208 stats->largest_changes->count = count;
209 stats->largest_changes->min_size = 1;
210 stats->largest_changes->changes
211 = apr_palloc(result_pool, count * sizeof(*stats->largest_changes->changes));
216 stats
251 add_change(svn_fs_fs__stats_t *stats, apr_uint64_t rep_size, apr_uint64_t expanded_size, svn_revnum_t revision, const char *path, rep_kind_t kind, svn_boolean_t plain_added) argument
1090 add_rep_pack_stats(svn_fs_fs__rep_pack_stats_t *stats, rep_stats_t *rep) argument
1103 add_rep_stats(svn_fs_fs__representation_stats_t *stats, rep_stats_t *rep) argument
1120 aggregate_stats(const apr_array_header_t *revisions, svn_fs_fs__stats_t *stats) argument
1181 svn_fs_fs__stats_t *stats = apr_pcalloc(result_pool, sizeof(*stats)); local
1195 create_query(query_t **query, svn_fs_t *fs, svn_fs_fs__stats_t *stats, svn_fs_progress_notify_func_t progress_func, void *progress_baton, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
1236 svn_fs_fs__get_stats(svn_fs_fs__stats_t **stats, svn_fs_t *fs, svn_fs_progress_notify_func_t progress_func, void *progress_baton, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
[all...]
/freebsd-10-stable/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_ethtool.c127 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

Completed in 325 milliseconds

1234567891011>>