/freebsd-current/tools/tools/crypto/ |
H A D | safestats.c | 41 struct safe_stats stats; local 44 slen = sizeof (stats); 45 if (sysctlbyname("hw.safe.stats", &stats, &slen, NULL, 0) < 0) 46 err(1, "hw.safe.stats"); 49 stats.st_ibytes, stats.st_ipackets); 51 stats.st_obytes, stats.st_opackets); 53 stats [all...] |
H A D | hifnstats.c | 41 struct hifn_stats stats; local 44 slen = sizeof (stats); 45 if (sysctlbyname("hw.hifn.stats", &stats, &slen, NULL, 0) < 0) 46 err(1, "kern.hifn.stats"); 49 stats.hst_ibytes, stats.hst_ipackets); 51 stats.hst_obytes, stats.hst_opackets); 53 stats [all...] |
H A D | cryptostats.c | 29 * zero all the stats or just the timing stuff. 61 struct cryptostats stats; local 64 slen = sizeof (stats); 65 if (sysctlbyname("kern.crypto_stats", &stats, &slen, NULL, 0) < 0) 69 bzero(&stats.cs_invoke, sizeof (stats.cs_invoke)); 70 bzero(&stats.cs_done, sizeof (stats.cs_done)); 71 bzero(&stats.cs_cb, sizeof (stats [all...] |
/freebsd-current/tools/tools/mtxstat/ |
H A D | mtxratio.sh | 1 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-current/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_stats.cpp | 57 void AsanStats::MergeFrom(const AsanStats *stats) { argument 59 const uptr *src_ptr = reinterpret_cast<const uptr*>(stats); 78 accumulated_stats->MergeFrom(&t->stats()); 81 static void GetAccumulatedStats(AsanStats *stats) { argument 82 stats->Clear(); 86 .RunCallbackForEachThreadLocked(MergeThreadStats, stats); 88 stats->MergeFrom(&unknown_thread_stats); 91 stats->MergeFrom(&dead_threads_stats); 96 if (max_malloced_memory < stats->malloced) { 97 max_malloced_memory = stats 101 FlushToDeadThreadStats(AsanStats *stats) argument 108 AsanStats stats; local 122 AsanStats stats; local 139 AsanStats stats; local 149 AsanStats stats; local 155 AsanStats stats; local [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_stats.cpp | 57 void MemprofStats::MergeFrom(const MemprofStats *stats) { argument 59 const uptr *src_ptr = reinterpret_cast<const uptr *>(stats); 78 accumulated_stats->MergeFrom(&t->stats()); 81 static void GetAccumulatedStats(MemprofStats *stats) { argument 82 stats->Clear(); 86 stats); 88 stats->MergeFrom(&unknown_thread_stats); 91 stats->MergeFrom(&dead_threads_stats); 96 if (max_malloced_memory < stats->malloced) { 97 max_malloced_memory = stats 101 FlushToDeadThreadStats(MemprofStats *stats) argument 113 MemprofStats stats; local 130 MemprofStats stats; local 140 MemprofStats stats; local 146 MemprofStats stats; local [all...] |
H A D | memprof_stats.h | 43 // Ctor for global MemprofStats (accumulated stats for dead threads). 45 // Creates empty stats. 48 void Print(); // Prints formatted stats to stderr. 50 void MergeFrom(const MemprofStats *stats); 53 // Returns stats for GetCurrentThread(), or stats for fake "unknown thread" 56 // Flushes a given stats into accumulated stats of dead threads. 57 void FlushToDeadThreadStats(MemprofStats *stats);
|
/freebsd-current/contrib/ofed/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-current/contrib/unbound/daemon/ |
H A D | stats.h | 2 * daemon/stats.h - collect runtime performance indicators. 53 /* stats struct */ 57 * Initialize server stats to 0. 58 * @param stats: what to init (this is alloced by the caller). 61 void server_stats_init(struct ub_server_stats* stats, struct config_file* cfg); 64 void server_stats_querymiss(struct ub_server_stats* stats, struct worker* worker); 67 void server_stats_prefetch(struct ub_server_stats* stats, struct worker* worker); 69 /** display the stats to the log */ 70 void server_stats_log(struct ub_server_stats* stats, struct worker* worker, 74 * Obtain the stats inf [all...] |
/freebsd-current/tools/LibraryReport/ |
H A D | LibraryReport.tcl | 63 global Libs stats verbose; 122 set stats(libs) [llength [array names Libs]]; 137 global stats verbose; 150 incr stats(dirs); 158 incr stats(files); 184 global Libs stats verbose; 192 incr stats(execs); 259 global stats verbose argv; 274 set stats(libs) 0; 275 set stats(dir [all...] |
/freebsd-current/contrib/ntp/libntp/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-current/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-current/contrib/jemalloc/include/jemalloc/internal/ |
H A D | bin.h | 82 bin_stats_t stats; member in struct:bin_s 110 dst_bin_stats->nmalloc += bin->stats.nmalloc; 111 dst_bin_stats->ndalloc += bin->stats.ndalloc; 112 dst_bin_stats->nrequests += bin->stats.nrequests; 113 dst_bin_stats->curregs += bin->stats.curregs; 114 dst_bin_stats->nfills += bin->stats.nfills; 115 dst_bin_stats->nflushes += bin->stats.nflushes; 116 dst_bin_stats->nslabs += bin->stats.nslabs; 117 dst_bin_stats->reslabs += bin->stats.reslabs; 118 dst_bin_stats->curslabs += bin->stats [all...] |
/freebsd-current/sys/contrib/rdma/krping/ |
H A D | krping_dev.c | 64 struct krping_stats *stats; member in struct:stats_list_entry 109 krping_copy_stats(struct krping_stats *stats, void *arg) argument 117 if (stats != NULL) { 118 s->stats = malloc(sizeof(*stats), M_DEVBUF, M_NOWAIT | M_ZERO); 119 if (s->stats == NULL) { 123 *s->stats = *stats; 148 if (e->stats == NULL) 151 struct krping_stats *stats local [all...] |
/freebsd-current/usr.bin/top/ |
H A D | display.h | 15 void i_arc(int *stats); 17 void i_carc(int *stats); 20 void i_memory(int *stats); 24 void i_swap(int *stats); 30 void u_arc(int *stats); 31 void u_carc(int *stats); 36 void u_memory(int *stats); 40 void u_swap(int *stats);
|
/freebsd-current/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-current/lib/libclang_rt/stats_client/ |
H A D | Makefile | 6 SRCS+= stats/stats_client.cpp
|
/freebsd-current/tools/tools/iwi/ |
H A D | iwistats.c | 109 static uint32_t stats[256]; local 118 len = sizeof(stats); 119 (void)snprintf(oid, sizeof(oid), "dev.iwi.%u.stats", ifaceno); 120 if (sysctlbyname(oid, stats, &len, NULL, 0) == -1) 124 (void)printf("%-60s[%u]\n", stat->desc, stats[stat->index]);
|
/freebsd-current/sys/netgraph/ |
H A D | ng_tee.c | 67 struct ng_tee_hookstat stats; member in struct:hookinfo 197 bzero(&hinfo->stats, sizeof(hinfo->stats)); 221 struct ng_tee_stats *stats; local 225 sizeof(*stats), M_NOWAIT); 230 stats = (struct ng_tee_stats *)resp->data; 231 bcopy(&sc->right.stats, &stats->right, 232 sizeof(stats->right)); 233 bcopy(&sc->left.stats, [all...] |
H A D | ng_hole.c | 58 struct ng_hole_hookstat stats; member in struct:ng_hole_hookinfo 149 struct ng_hole_hookstat *stats; local 170 stats = &((hinfo_p)NG_HOOK_PRIVATE(hook))->stats; 173 NG_MKRESPONSE(resp, msg, sizeof(*stats), 179 bcopy(stats, resp->data, sizeof(*stats)); 181 /* Clear stats (if desired). */ 183 bzero(stats, sizeof(*stats)); [all...] |
/freebsd-current/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-current/sys/dev/gve/ |
H A D | gve_sysctl.c | 39 struct gve_rxq_stats *stats; local 47 stats = &rxq->stats; 51 &stats->rbytes, "Bytes received"); 54 &stats->rpackets, "Packets received"); 56 CTLFLAG_RD, &stats->rx_copybreak_cnt, 59 CTLFLAG_RD, &stats->rx_frag_flip_cnt, 62 CTLFLAG_RD, &stats->rx_frag_copy_cnt, 65 CTLFLAG_RD, &stats->rx_dropped_pkt, 69 &stats 90 struct gve_txq_stats *stats; local [all...] |
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/dump/ |
H A D | dump.c | 93 } stats; variable in typeref:struct:__anon2 309 stats.s_ndata = n; 392 stats.s_nfunc++; 393 stats.s_nargs += n; 394 stats.s_argmax = MAX(stats.s_argmax, n); 576 stats.s_nsmem += n; 577 stats.s_smmax = MAX(stats.s_smmax, n); 578 stats [all...] |
/freebsd-current/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.h | 36 counter_u64_add((c)->stats[ \ 40 counter_u64_fetch((c)->stats[ \ 57 counter_u64_t stats[NPTV6STATS]; /* Statistics counters */ member in struct:nptv6_cfg
|
/freebsd-current/lib/libstats/ |
H A D | Makefile | 2 LIB= stats
|