Symbol: stats
lib/libc/db/hash/hash_page.c
416
goto stats;
lib/libc/db/hash/hash_page.c
440
stats:
lib/libssl/ssl_clnt.c
211
s->ctx->stats.sess_connect_renegotiate++;
lib/libssl/ssl_clnt.c
271
s->ctx->stats.sess_connect++;
lib/libssl/ssl_clnt.c
604
s->ctx->stats.sess_hit++;
lib/libssl/ssl_clnt.c
609
s->ctx->stats.sess_connect_good++;
lib/libssl/ssl_lib.c
1470
return (ctx->stats.sess_connect);
lib/libssl/ssl_lib.c
1472
return (ctx->stats.sess_connect_good);
lib/libssl/ssl_lib.c
1474
return (ctx->stats.sess_connect_renegotiate);
lib/libssl/ssl_lib.c
1476
return (ctx->stats.sess_accept);
lib/libssl/ssl_lib.c
1478
return (ctx->stats.sess_accept_good);
lib/libssl/ssl_lib.c
1480
return (ctx->stats.sess_accept_renegotiate);
lib/libssl/ssl_lib.c
1482
return (ctx->stats.sess_hit);
lib/libssl/ssl_lib.c
1484
return (ctx->stats.sess_cb_hit);
lib/libssl/ssl_lib.c
1486
return (ctx->stats.sess_miss);
lib/libssl/ssl_lib.c
1488
return (ctx->stats.sess_timeout);
lib/libssl/ssl_lib.c
1490
return (ctx->stats.sess_cache_full);
lib/libssl/ssl_lib.c
2117
memset((char *)&ret->stats, 0, sizeof(ret->stats));
lib/libssl/ssl_lib.c
2566
connections = s->session_ctx->stats.sess_connect_good;
lib/libssl/ssl_lib.c
2568
connections = s->session_ctx->stats.sess_accept_good;
lib/libssl/ssl_local.h
793
} stats;
lib/libssl/ssl_sess.c
567
s->session_ctx->stats.sess_miss++;
lib/libssl/ssl_sess.c
594
s->session_ctx->stats.sess_cb_hit++;
lib/libssl/ssl_sess.c
717
s->session_ctx->stats.sess_timeout++;
lib/libssl/ssl_sess.c
725
s->session_ctx->stats.sess_hit++;
lib/libssl/ssl_sess.c
815
ctx->stats.sess_cache_full++;
lib/libssl/ssl_srvr.c
283
s->ctx->stats.sess_accept++;
lib/libssl/ssl_srvr.c
300
s->ctx->stats.sess_accept_renegotiate++;
lib/libssl/ssl_srvr.c
712
s->ctx->stats.sess_accept_good++;
libexec/ftpd/ftpd.c
1170
if ((cmd == RET_FILE) && stats)
libexec/ftpd/ftpd.c
130
int stats;
libexec/ftpd/ftpd.c
304
stats = 1;
libexec/ftpd/ftpd.c
969
if (guest && (stats == 1) && (statfd < 0))
libexec/ftpd/ftpd.c
971
stats = 0;
libexec/rpc.rstatd/rstat_proc.c
124
stats *
libexec/rpc.rstatd/rstat_proc.c
79
struct stats s1;
libexec/snmpd/snmpd_metrics/mib.c
2224
struct carpstats stats;
libexec/snmpd/snmpd_metrics/mib.c
2226
len = sizeof(stats);
libexec/snmpd/snmpd_metrics/mib.c
2228
if (sysctl(mib, 4, &stats, &len, NULL, 0) == -1) {
libexec/snmpd/snmpd_metrics/mib.c
2236
agentx_varbind_counter64(vb, stats.carps_ipackets);
libexec/snmpd/snmpd_metrics/mib.c
2238
agentx_varbind_counter64(vb, stats.carps_ipackets6);
libexec/snmpd/snmpd_metrics/mib.c
2240
agentx_varbind_counter64(vb, stats.carps_badif);
libexec/snmpd/snmpd_metrics/mib.c
2242
agentx_varbind_counter64(vb, stats.carps_badttl);
libexec/snmpd/snmpd_metrics/mib.c
2244
agentx_varbind_counter64(vb, stats.carps_hdrops);
libexec/snmpd/snmpd_metrics/mib.c
2246
agentx_varbind_counter64(vb, stats.carps_badsum);
libexec/snmpd/snmpd_metrics/mib.c
2248
agentx_varbind_counter64(vb, stats.carps_badver);
libexec/snmpd/snmpd_metrics/mib.c
2250
agentx_varbind_counter64(vb, stats.carps_badlen);
libexec/snmpd/snmpd_metrics/mib.c
2252
agentx_varbind_counter64(vb, stats.carps_badauth);
libexec/snmpd/snmpd_metrics/mib.c
2254
agentx_varbind_counter64(vb, stats.carps_badvhid);
libexec/snmpd/snmpd_metrics/mib.c
2256
agentx_varbind_counter64(vb, stats.carps_badaddrs);
libexec/snmpd/snmpd_metrics/mib.c
2258
agentx_varbind_counter64(vb, stats.carps_opackets);
libexec/snmpd/snmpd_metrics/mib.c
2260
agentx_varbind_counter64(vb, stats.carps_opackets6);
libexec/snmpd/snmpd_metrics/mib.c
2262
agentx_varbind_counter64(vb, stats.carps_onomem);
libexec/snmpd/snmpd_metrics/mib.c
2264
agentx_varbind_counter64(vb, stats.carps_preempt);
libexec/snmpd/snmpd_metrics/mib.c
3089
struct diskstats *stats;
libexec/snmpd/snmpd_metrics/mib.c
3123
stats = calloc(diskcount, sizeof(*stats));
libexec/snmpd/snmpd_metrics/mib.c
3124
if (stats == NULL) {
libexec/snmpd/snmpd_metrics/mib.c
3130
len = diskcount * sizeof(*stats);
libexec/snmpd/snmpd_metrics/mib.c
3132
if (sysctl(mib, nitems(mib), stats, &len, NULL, 0) == -1) {
libexec/snmpd/snmpd_metrics/mib.c
3134
free(stats);
libexec/snmpd/snmpd_metrics/mib.c
3142
agentx_varbind_string(vb, stats[idx - 1].ds_name);
libexec/snmpd/snmpd_metrics/mib.c
3145
(u_int32_t)stats[idx - 1].ds_rbytes);
libexec/snmpd/snmpd_metrics/mib.c
3148
(u_int32_t)stats[idx - 1].ds_wbytes);
libexec/snmpd/snmpd_metrics/mib.c
3151
(u_int32_t)stats[idx - 1].ds_rxfer);
libexec/snmpd/snmpd_metrics/mib.c
3154
(u_int32_t)stats[idx - 1].ds_wxfer);
libexec/snmpd/snmpd_metrics/mib.c
3156
agentx_varbind_counter64(vb, stats[idx - 1].ds_rbytes);
libexec/snmpd/snmpd_metrics/mib.c
3158
agentx_varbind_counter64(vb, stats[idx - 1].ds_wbytes);
libexec/snmpd/snmpd_metrics/mib.c
3161
free(stats);
regress/lib/libc/asr/bin/threads.c
136
stats();
regress/sys/nfs/mmap-sysctl-copyout.c
33
struct tcpstat stats;
regress/sys/nfs/mmap-sysctl-copyout.c
45
memset(&stats, 0, len);
regress/sys/nfs/mmap-sysctl-copyout.c
46
if ((n = write(fd, &stats, len)) == -1)
regress/sys/nfs/mmap-sysctl-copyout.c
75
if ((n = read(fd, &stats, len)) == -1)
sbin/iked/pfkey.c
1020
if (stats) {
sbin/iked/pfkey.c
1027
stats->sas_ibytes = sa_counter->sadb_x_counter_ibytes;
sbin/iked/pfkey.c
1028
stats->sas_obytes = sa_counter->sadb_x_counter_obytes;
sbin/iked/pfkey.c
1029
stats->sas_ipackets = sa_counter->sadb_x_counter_ipackets;
sbin/iked/pfkey.c
1030
stats->sas_opackets = sa_counter->sadb_x_counter_opackets;
sbin/iked/pfkey.c
1031
stats->sas_idrops = sa_counter->sadb_x_counter_idrops;
sbin/iked/pfkey.c
1032
stats->sas_odrops = sa_counter->sadb_x_counter_odrops;
sbin/iked/pfkey.c
1055
struct iked_sastats *stats)
sbin/iked/pfkey.c
1057
return pfkey_sa_lookup(env, sa, NULL, stats);
sbin/iked/pfkey.c
879
struct iked_sastats *stats)
sbin/pfctl/pfctl_queue.c
202
struct hfsc_class_stats *stats =
sbin/pfctl/pfctl_queue.c
209
(unsigned long long)stats->xmit_cnt.packets,
sbin/pfctl/pfctl_queue.c
210
(unsigned long long)stats->xmit_cnt.bytes,
sbin/pfctl/pfctl_queue.c
211
(unsigned long long)stats->drop_cnt.packets,
sbin/pfctl/pfctl_queue.c
212
(unsigned long long)stats->drop_cnt.bytes);
sbin/pfctl/pfctl_queue.c
225
" flows: %3d ]\n", stats->qlength, stats->qlimit,
sbin/pfctl/pfctl_queue.c
228
printf(" [ qlength: %3d/%3d ]\n", stats->qlength,
sbin/pfctl/pfctl_queue.c
229
stats->qlimit);
sbin/pfctl/pfctl_queue.c
242
struct hfsc_class_stats *stats =
sbin/pfctl/pfctl_queue.c
246
if (stats->xmit_cnt.bytes >= s->prev_bytes)
sbin/pfctl/pfctl_queue.c
248
(stats->xmit_cnt.bytes - s->prev_bytes)) /
sbin/pfctl/pfctl_queue.c
250
if (stats->xmit_cnt.packets >= s->prev_packets)
sbin/pfctl/pfctl_queue.c
252
(stats->xmit_cnt.packets - s->prev_packets)) /
sbin/pfctl/pfctl_queue.c
256
s->prev_bytes = stats->xmit_cnt.bytes;
sbin/pfctl/pfctl_queue.c
257
s->prev_packets = stats->xmit_cnt.packets;
sbin/unwind/libunbound/daemon/stats.h
118
void server_stats_insquery(struct ub_server_stats* stats, struct comm_point* c,
sbin/unwind/libunbound/daemon/stats.h
127
void server_stats_insrcode(struct ub_server_stats* stats, struct sldns_buffer* buf);
sbin/unwind/libunbound/daemon/stats.h
134
void server_stats_downstream_cookie(struct ub_server_stats* stats,
sbin/unwind/libunbound/daemon/stats.h
61
void server_stats_init(struct ub_server_stats* stats, struct config_file* cfg);
sbin/unwind/libunbound/daemon/stats.h
64
void server_stats_querymiss(struct ub_server_stats* stats, struct worker* worker);
sbin/unwind/libunbound/daemon/stats.h
67
void server_stats_prefetch(struct ub_server_stats* stats, struct worker* worker);
sbin/unwind/libunbound/daemon/stats.h
70
void server_stats_log(struct ub_server_stats* stats, struct worker* worker,
sbin/unwind/libunbound/daemon/worker.h
129
struct ub_server_stats stats;
sbin/unwind/libunbound/services/rpz.c
1701
struct ub_server_stats* stats,
sbin/unwind/libunbound/services/rpz.c
1736
stats->rpz_action[r->action_override]++;
sbin/unwind/libunbound/services/rpz.c
2239
struct comm_reply* repinfo, struct ub_server_stats* stats)
sbin/unwind/libunbound/services/rpz.c
2250
stats->rpz_action[RPZ_CNAME_OVERRIDE_ACTION]++;
sbin/unwind/libunbound/services/rpz.c
2262
stats->rpz_action[localzone_type_to_rpz_action(lzt)]++;
sbin/unwind/libunbound/services/rpz.c
2275
stats->rpz_action[localzone_type_to_rpz_action(lzt)]++;
sbin/unwind/libunbound/services/rpz.c
2361
ms->env->worker->stats.rpz_action[action]++;
sbin/unwind/libunbound/services/rpz.c
2423
ms->env->worker->stats.rpz_action[action]++;
sbin/unwind/libunbound/services/rpz.c
2582
ms->env->worker->stats.rpz_action[r->action_override]++;
sbin/unwind/libunbound/services/rpz.c
2659
uint8_t* taglist, size_t taglen, struct ub_server_stats* stats,
sbin/unwind/libunbound/services/rpz.c
2668
az, qinfo, repinfo, taglist, taglen, stats, z_out, a_out, r_out);
sbin/unwind/libunbound/services/rpz.c
2696
stats->rpz_action[client_action]++;
sbin/unwind/libunbound/services/rpz.c
2739
size_t taglen, struct ub_server_stats* stats, int* passthru)
sbin/unwind/libunbound/services/rpz.c
2748
edns, repinfo, taglist, taglen, stats, buf, temp, &z, &a, &r,
sbin/unwind/libunbound/services/rpz.c
2792
repinfo, stats);
sbin/unwind/libunbound/services/rpz.h
183
uint8_t* taglist, size_t taglen, struct ub_server_stats* stats,
sys/dev/ic/acx.c
1216
struct acx_stats *stats = &sc->sc_stats;
sys/dev/ic/acx.c
1237
stats->err_oth_frag++;
sys/dev/ic/acx.c
1242
stats->err_abort++;
sys/dev/ic/acx.c
1246
stats->err_param++;
sys/dev/ic/acx.c
1250
stats->err_no_wepkey++;
sys/dev/ic/acx.c
1254
stats->err_msdu_timeout++;
sys/dev/ic/acx.c
1263
stats->err_ex_retry++;
sys/dev/ic/acx.c
1267
stats->err_buf_oflow++;
sys/dev/ic/acx.c
1271
stats->err_dma++;
sys/dev/ic/acx.c
1275
stats->err_unkn++;
sys/dev/ic/aic6915.c
856
struct sf_stats stats;
sys/dev/ic/aic6915.c
861
p = &stats.TransmitOKFrames;
sys/dev/ic/aic6915.c
862
for (i = 0; i < (sizeof(stats) / sizeof(uint32_t)); i++) {
sys/dev/ic/aic6915.c
868
ifp->if_collisions += stats.SingleCollisionFrames +
sys/dev/ic/aic6915.c
869
stats.MultipleCollisionFrames;
sys/dev/ic/aic6915.c
871
ifp->if_oerrors += stats.TransmitAbortDueToExcessiveCollisions +
sys/dev/ic/aic6915.c
872
stats.TransmitAbortDueToExcessingDeferral +
sys/dev/ic/aic6915.c
873
stats.FramesLostDueToInternalTransmitErrors;
sys/dev/ic/aic6915.c
875
ifp->if_ierrors += stats.ReceiveCRCErrors + stats.AlignmentErrors +
sys/dev/ic/aic6915.c
876
stats.ReceiveFramesTooLong + stats.ReceiveFramesTooShort +
sys/dev/ic/aic6915.c
877
stats.ReceiveFramesJabbersError +
sys/dev/ic/aic6915.c
878
stats.FramesLostDueToInternalReceiveErrors;
sys/dev/ic/ami.c
279
const u_int8_t *props, const u_int8_t *stats)
sys/dev/ic/ami.c
288
sc->sc_hdr[i].hd_stat = stats[i];
sys/dev/ic/bwi.c
7771
dma_size, (caddr_t *)&st->stats, BUS_DMA_NOWAIT);
sys/dev/ic/bwi.c
7777
error = bus_dmamap_load(sc->sc_dmat, st->stats_dmap, st->stats,
sys/dev/ic/bwi.c
8136
bzero(st->stats, BWI_TXSTATS_NDESC * sizeof(struct bwi_txstats));
sys/dev/ic/bwi.c
9116
_bwi_txeof(sc, letoh16(st->stats[idx].txs_id));
sys/dev/ic/bwivar.h
239
struct bwi_txstats *stats;
sys/dev/ic/fxp.c
1195
offsetof(struct fxp_ctrl, stats));
sys/dev/ic/fxp.c
935
struct fxp_stats *sp = &sc->sc_ctrl->stats;
sys/dev/ic/fxpvar.h
193
offsetof(struct fxp_ctrl, stats), sizeof(struct fxp_stats), (p))
sys/dev/ic/fxpvar.h
98
struct fxp_stats stats;
sys/dev/ic/qwxvar.h
1291
struct ath11k_fw_stats *stats;
sys/dev/ic/qwzvar.h
1450
struct ath12k_fw_stats *stats;
sys/dev/ic/ti.c
1750
struct ti_stats *stats = &sc->ti_rdata->ti_info.ti_stats;
sys/dev/ic/ti.c
1756
ifp->if_collisions += stats->dot3StatsSingleCollisionFrames +
sys/dev/ic/ti.c
1757
stats->dot3StatsMultipleCollisionFrames +
sys/dev/ic/ti.c
1758
stats->dot3StatsExcessiveCollisions +
sys/dev/ic/ti.c
1759
stats->dot3StatsLateCollisions -
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
103
stats[TTM_PL_VRAM].drm.resident/1024UL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
105
stats[TTM_PL_TT].drm.resident/1024UL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
107
stats[TTM_PL_SYSTEM].drm.resident/1024UL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
111
stats[TTM_PL_VRAM].evicted/1024UL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
113
(stats[TTM_PL_VRAM].drm.shared +
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
114
stats[TTM_PL_VRAM].drm.private) / 1024UL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
116
(stats[TTM_PL_TT].drm.shared +
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
117
stats[TTM_PL_TT].drm.private) / 1024UL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
65
struct amdgpu_mem_stats stats[__AMDGPU_PL_NUM];
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
79
amdgpu_vm_get_memory(vm, stats);
sys/dev/pci/drm/amd/amdgpu/amdgpu_fdinfo.c
95
&stats[i].drm,
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
1299
struct amdgpu_mem_stats stats[__AMDGPU_PL_NUM])
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
1302
memcpy(stats, vm->stats, sizeof(*stats) * __AMDGPU_PL_NUM);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
2823
if (!(drm_memory_stats_is_zero(&vm->stats[i].drm) &&
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
2824
vm->stats[i].evicted == 0))
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
375
vm->stats[bo_memtype].drm.shared += size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
376
vm->stats[bo_memtype].drm.private -= size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
378
vm->stats[bo_memtype].drm.shared -= size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
379
vm->stats[bo_memtype].drm.private += size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
422
vm->stats[bo_memtype].drm.shared += size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
424
vm->stats[bo_memtype].drm.private += size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
429
vm->stats[res_memtype].drm.resident += size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
434
vm->stats[res_memtype].drm.purgeable += size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
436
vm->stats[bo_memtype].evicted += size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.h
356
struct amdgpu_mem_stats stats[__AMDGPU_PL_NUM];
sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.h
609
struct amdgpu_mem_stats stats[__AMDGPU_PL_NUM]);
sys/dev/pci/drm/drm_file.c
904
int drm_memory_stats_is_zero(const struct drm_memory_stats *stats)
sys/dev/pci/drm/drm_file.c
906
return (stats->shared == 0 &&
sys/dev/pci/drm/drm_file.c
907
stats->private == 0 &&
sys/dev/pci/drm/drm_file.c
908
stats->resident == 0 &&
sys/dev/pci/drm/drm_file.c
909
stats->purgeable == 0 &&
sys/dev/pci/drm/drm_file.c
910
stats->active == 0);
sys/dev/pci/drm/drm_file.c
923
const struct drm_memory_stats *stats,
sys/dev/pci/drm/drm_file.c
930
stats->private + stats->shared);
sys/dev/pci/drm/drm_file.c
931
drm_fdinfo_print_size(p, prefix, "shared", region, stats->shared);
sys/dev/pci/drm/drm_file.c
934
drm_fdinfo_print_size(p, prefix, "active", region, stats->active);
sys/dev/pci/drm/drm_file.c
938
stats->resident);
sys/dev/pci/drm/drm_file.c
942
stats->purgeable);
sys/dev/pci/drm/drm_ioctl.c
234
struct drm_stats *stats = data;
sys/dev/pci/drm/drm_ioctl.c
237
memset(stats, 0, sizeof(*stats));
sys/dev/pci/drm/i915/display/intel_display_core.h
168
} stats[HPD_NUM_PINS];
sys/dev/pci/drm/i915/display/intel_hotplug.c
1006
switch (display->hotplug.stats[pin].state) {
sys/dev/pci/drm/i915/display/intel_hotplug.c
1014
MISSING_CASE(display->hotplug.stats[pin].state);
sys/dev/pci/drm/i915/display/intel_hotplug.c
1031
hotplug->stats[pin].blocked_count++;
sys/dev/pci/drm/i915/display/intel_hotplug.c
1033
return hotplug->stats[pin].blocked_count == 1;
sys/dev/pci/drm/i915/display/intel_hotplug.c
1042
if (drm_WARN_ON(display->drm, hotplug->stats[pin].blocked_count == 0))
sys/dev/pci/drm/i915/display/intel_hotplug.c
1045
hotplug->stats[pin].blocked_count--;
sys/dev/pci/drm/i915/display/intel_hotplug.c
1047
return hotplug->stats[pin].blocked_count == 0;
sys/dev/pci/drm/i915/display/intel_hotplug.c
1239
hotplug->stats[i].count = 0;
sys/dev/pci/drm/i915/display/intel_hotplug.c
1317
hotplug->stats[i].count = 0;
sys/dev/pci/drm/i915/display/intel_hotplug.c
156
unsigned long start = hpd->stats[pin].last_jiffies;
sys/dev/pci/drm/i915/display/intel_hotplug.c
167
hpd->stats[pin].last_jiffies = jiffies;
sys/dev/pci/drm/i915/display/intel_hotplug.c
168
hpd->stats[pin].count = 0;
sys/dev/pci/drm/i915/display/intel_hotplug.c
171
hpd->stats[pin].count += increment;
sys/dev/pci/drm/i915/display/intel_hotplug.c
172
if (hpd->stats[pin].count > threshold) {
sys/dev/pci/drm/i915/display/intel_hotplug.c
173
hpd->stats[pin].state = HPD_MARK_DISABLED;
sys/dev/pci/drm/i915/display/intel_hotplug.c
181
hpd->stats[pin].count);
sys/dev/pci/drm/i915/display/intel_hotplug.c
245
display->hotplug.stats[pin].state != HPD_MARK_DISABLED)
sys/dev/pci/drm/i915/display/intel_hotplug.c
253
display->hotplug.stats[pin].state = HPD_DISABLED;
sys/dev/pci/drm/i915/display/intel_hotplug.c
286
display->hotplug.stats[pin].state != HPD_DISABLED)
sys/dev/pci/drm/i915/display/intel_hotplug.c
298
if (display->hotplug.stats[pin].state == HPD_DISABLED)
sys/dev/pci/drm/i915/display/intel_hotplug.c
299
display->hotplug.stats[pin].state = HPD_ENABLED;
sys/dev/pci/drm/i915/display/intel_hotplug.c
374
return display->hotplug.stats[pin].blocked_count;
sys/dev/pci/drm/i915/display/intel_hotplug.c
644
if (display->hotplug.stats[pin].state == HPD_DISABLED) {
sys/dev/pci/drm/i915/display/intel_hotplug.c
657
if (display->hotplug.stats[pin].state != HPD_ENABLED)
sys/dev/pci/drm/i915/display/intel_hotplug.c
726
display->hotplug.stats[i].count = 0;
sys/dev/pci/drm/i915/display/intel_hotplug.c
727
display->hotplug.stats[i].state = HPD_ENABLED;
sys/dev/pci/drm/i915/display/intel_hotplug.c
818
if (display->hotplug.stats[pin].state == HPD_DISABLED)
sys/dev/pci/drm/i915/display/intel_hotplug_irq.c
376
if (display->hotplug.stats[encoder->hpd_pin].state == HPD_ENABLED)
sys/dev/pci/drm/i915/gt/intel_context.c
413
ewma_runtime_init(&ce->stats.runtime.avg);
sys/dev/pci/drm/i915/gt/intel_context.c
621
total = ce->stats.runtime.total;
sys/dev/pci/drm/i915/gt/intel_context.c
625
active = READ_ONCE(ce->stats.active);
sys/dev/pci/drm/i915/gt/intel_context.c
634
u64 avg = ewma_runtime_read(&ce->stats.runtime.avg);
sys/dev/pci/drm/i915/gt/intel_context_types.h
163
} stats;
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
18
struct intel_engine_execlists_stats *stats = &engine->stats.execlists;
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
21
if (stats->active) {
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
22
stats->active++;
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
28
write_seqcount_begin(&stats->lock);
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
30
stats->start = ktime_get();
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
31
stats->active++;
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
33
write_seqcount_end(&stats->lock);
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
36
GEM_BUG_ON(!stats->active);
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
41
struct intel_engine_execlists_stats *stats = &engine->stats.execlists;
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
44
GEM_BUG_ON(!stats->active);
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
45
if (stats->active > 1) {
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
46
stats->active--;
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
51
write_seqcount_begin(&stats->lock);
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
53
stats->active--;
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
54
stats->total = ktime_add(stats->total,
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
55
ktime_sub(ktime_get(), stats->start));
sys/dev/pci/drm/i915/gt/intel_engine_stats.h
57
write_seqcount_end(&stats->lock);
sys/dev/pci/drm/i915/gt/intel_engine_types.h
637
} stats;
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3400
struct intel_engine_execlists_stats *stats = &engine->stats.execlists;
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3401
ktime_t total = stats->total;
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3408
if (READ_ONCE(stats->active))
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3409
total = ktime_add(total, ktime_sub(*now, stats->start));
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3417
struct intel_engine_execlists_stats *stats = &engine->stats.execlists;
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3422
seq = read_seqcount_begin(&stats->lock);
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3424
} while (read_seqcount_retry(&stats->lock, seq));
sys/dev/pci/drm/i915/gt/intel_execlists_submission.c
3557
seqcount_init(&engine->stats.execlists.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
163
seqcount_mutex_init(&gt->stats.lock, &gt->wakeref.mutex);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
426
ktime_t total = gt->stats.total;
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
428
if (gt->stats.active)
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
430
ktime_sub(ktime_get(), gt->stats.start));
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
442
seq = read_seqcount_begin(&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
444
} while (read_seqcount_retry(&gt->stats.lock, seq));
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
447
seq = read_seqcount_begin((seqcount_t *)&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
449
} while (read_seqcount_retry((seqcount_t *)&gt->stats.lock, seq));
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
53
write_seqcount_begin(&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
55
write_seqcount_begin((seqcount_t *)&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
57
gt->stats.start = ktime_get();
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
58
gt->stats.active = true;
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
60
write_seqcount_end(&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
62
write_seqcount_end((seqcount_t *)&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
71
write_seqcount_begin(&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
73
write_seqcount_begin((seqcount_t *)&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
75
gt->stats.active = false;
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
76
gt->stats.total =
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
77
ktime_add(gt->stats.total,
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
78
ktime_sub(ktime_get(), gt->stats.start));
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
80
write_seqcount_end(&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_pm.c
82
write_seqcount_end((seqcount_t *)&gt->stats.lock);
sys/dev/pci/drm/i915/gt/intel_gt_types.h
203
} stats;
sys/dev/pci/drm/i915/gt/intel_lrc.c
1939
static void st_runtime_underflow(struct intel_context_stats *stats, s32 dt)
sys/dev/pci/drm/i915/gt/intel_lrc.c
1942
stats->runtime.num_underflow++;
sys/dev/pci/drm/i915/gt/intel_lrc.c
1943
stats->runtime.max_underflow =
sys/dev/pci/drm/i915/gt/intel_lrc.c
1944
max_t(u32, stats->runtime.max_underflow, -dt);
sys/dev/pci/drm/i915/gt/intel_lrc.c
1961
struct intel_context_stats *stats = &ce->stats;
sys/dev/pci/drm/i915/gt/intel_lrc.c
1965
old = stats->runtime.last;
sys/dev/pci/drm/i915/gt/intel_lrc.c
1966
stats->runtime.last = lrc_get_runtime(ce);
sys/dev/pci/drm/i915/gt/intel_lrc.c
1967
dt = stats->runtime.last - old;
sys/dev/pci/drm/i915/gt/intel_lrc.c
1973
old, stats->runtime.last, dt);
sys/dev/pci/drm/i915/gt/intel_lrc.c
1974
st_runtime_underflow(stats, dt);
sys/dev/pci/drm/i915/gt/intel_lrc.c
1978
ewma_runtime_add(&stats->runtime.avg, dt);
sys/dev/pci/drm/i915/gt/intel_lrc.c
1979
stats->runtime.total += dt;
sys/dev/pci/drm/i915/gt/intel_lrc.c
859
regs[CTX_TIMESTAMP] = ce->stats.runtime.last;
sys/dev/pci/drm/i915/gt/intel_lrc.h
118
struct intel_context_stats *stats = &ce->stats;
sys/dev/pci/drm/i915/gt/intel_lrc.h
123
if (stats->active)
sys/dev/pci/drm/i915/gt/intel_lrc.h
126
WRITE_ONCE(stats->active, intel_context_clock());
sys/dev/pci/drm/i915/gt/intel_lrc.h
131
struct intel_context_stats *stats = &ce->stats;
sys/dev/pci/drm/i915/gt/intel_lrc.h
133
if (!stats->active)
sys/dev/pci/drm/i915/gt/intel_lrc.h
137
WRITE_ONCE(stats->active, 0);
sys/dev/pci/drm/i915/gt/intel_rps.c
95
last = engine->stats.rps;
sys/dev/pci/drm/i915/gt/intel_rps.c
96
engine->stats.rps = dt;
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1896
ce->stats.runtime.num_underflow = 0;
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1897
ce->stats.runtime.max_underflow = 0;
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1935
if (ce->stats.runtime.num_underflow) {
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1938
ce->stats.runtime.num_underflow,
sys/dev/pci/drm/i915/gt/selftest_lrc.c
1939
ce->stats.runtime.max_underflow);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1321
guc->log.stats[GUC_CAPTURE_LOG_BUFFER].flush += log_buf_state_local.flush_to_file;
sys/dev/pci/drm/i915/gt/uc/intel_guc_log.c
334
unsigned int prev_full_cnt = log->stats[type].sampled_overflow;
sys/dev/pci/drm/i915/gt/uc/intel_guc_log.c
340
log->stats[type].overflow = full_cnt;
sys/dev/pci/drm/i915/gt/uc/intel_guc_log.c
341
log->stats[type].sampled_overflow += full_cnt - prev_full_cnt;
sys/dev/pci/drm/i915/gt/uc/intel_guc_log.c
345
log->stats[type].sampled_overflow += 16;
sys/dev/pci/drm/i915/gt/uc/intel_guc_log.c
438
log->stats[type].flush += log_buf_state_local.flush_to_file;
sys/dev/pci/drm/i915/gt/uc/intel_guc_log.c
891
log->stats[type].flush,
sys/dev/pci/drm/i915/gt/uc/intel_guc_log.c
892
log->stats[type].sampled_overflow);
sys/dev/pci/drm/i915/gt/uc/intel_guc_log.h
81
} stats[GUC_MAX_LOG_BUFFER];
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1263
struct intel_engine_guc_stats *stats = &engine->stats.guc;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1271
stats->running = ctx_id != ~0U && last_switch;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1272
if (stats->running)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1273
__extend_last_switch(guc, &stats->start_gt_clk, last_switch);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1280
stats->total_gt_clks += (u32)(total - stats->prev_total);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1281
stats->prev_total = total;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1323
struct intel_engine_guc_stats stats_saved, *stats = &engine->stats.guc;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1356
stats_saved = *stats;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1366
*stats = stats_saved;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1371
total = intel_gt_clock_interval_to_ns(gt, stats->total_gt_clks);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1372
if (stats->running) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1373
u64 clk = guc->timestamp.gt_stamp - stats->start_gt_clk;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1378
if (total > stats->total)
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1379
stats->total = total;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1383
return ns_to_ktime(stats->total);
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1449
struct intel_engine_guc_stats *stats = &engine->stats.guc;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1457
if (stats->running) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1458
u64 clk = guc->timestamp.gt_stamp - stats->start_gt_clk;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1460
stats->total_gt_clks += clk;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1462
stats->prev_total = 0;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1463
stats->running = 0;
sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c
1478
engine->stats.guc.running = false;
sys/dev/pci/drm/i915/i915_drm_client.c
104
&stats[id],
sys/dev/pci/drm/i915/i915_drm_client.c
50
struct drm_memory_stats stats[INTEL_REGION_UNKNOWN])
sys/dev/pci/drm/i915/i915_drm_client.c
57
stats[id].shared += sz;
sys/dev/pci/drm/i915/i915_drm_client.c
59
stats[id].private += sz;
sys/dev/pci/drm/i915/i915_drm_client.c
62
stats[id].resident += sz;
sys/dev/pci/drm/i915/i915_drm_client.c
66
stats[id].active += sz;
sys/dev/pci/drm/i915/i915_drm_client.c
69
stats[id].purgeable += sz;
sys/dev/pci/drm/i915/i915_drm_client.c
75
struct drm_memory_stats stats[INTEL_REGION_UNKNOWN] = {};
sys/dev/pci/drm/i915/i915_drm_client.c
87
obj_meminfo(obj, stats);
sys/dev/pci/drm/i915/i915_drm_client.c
97
obj_meminfo(obj, stats);
sys/dev/pci/drm/i915/selftests/i915_request.c
2834
struct perf_stats *stats;
sys/dev/pci/drm/i915/selftests/i915_request.c
2839
stats = kcalloc(nengines, sizeof(*stats), GFP_KERNEL);
sys/dev/pci/drm/i915/selftests/i915_request.c
2840
if (!stats)
sys/dev/pci/drm/i915/selftests/i915_request.c
2845
kfree(stats);
sys/dev/pci/drm/i915/selftests/i915_request.c
2885
memset(&stats[idx], 0, sizeof(stats[idx]));
sys/dev/pci/drm/i915/selftests/i915_request.c
2904
struct perf_stats *p = &stats[idx];
sys/dev/pci/drm/i915/selftests/i915_request.c
2951
kfree(stats);
sys/dev/pci/drm/include/drm/drm_file.h
522
int drm_memory_stats_is_zero(const struct drm_memory_stats *stats);
sys/dev/pci/drm/include/drm/drm_file.h
529
const struct drm_memory_stats *stats,
sys/dev/pci/if_bge.c
3933
bus_size_t stats = BGE_MEMWIN_START + BGE_STATS_BLOCK;
sys/dev/pci/if_bge.c
3936
#define READ_STAT(sc, stats, stat) \
sys/dev/pci/if_bge.c
3937
CSR_READ_4(sc, stats + offsetof(struct bge_stats, stat))
sys/dev/pci/if_bge.c
3939
cnt = READ_STAT(sc, stats, txstats.etherStatsCollisions.bge_addr_lo);
sys/dev/pci/if_bge.c
3943
cnt = READ_STAT(sc, stats, nicNoMoreRxBDs.bge_addr_lo);
sys/dev/pci/if_bge.c
3945
cnt = READ_STAT(sc, stats, ifInErrors.bge_addr_lo);
sys/dev/pci/if_bge.c
3948
cnt = READ_STAT(sc, stats, ifInDiscards.bge_addr_lo);
sys/dev/pci/if_bge.c
3952
cnt = READ_STAT(sc, stats, txstats.ifOutDiscards.bge_addr_lo);
sys/dev/pci/if_bnx.c
5264
struct statistics_block *stats;
sys/dev/pci/if_bnx.c
5268
stats = (struct statistics_block *)sc->stats_block;
sys/dev/pci/if_bnx.c
5274
ifp->if_collisions = (u_long)stats->stat_EtherStatsCollisions;
sys/dev/pci/if_bnx.c
5276
ifp->if_ierrors = (u_long)stats->stat_EtherStatsUndersizePkts +
sys/dev/pci/if_bnx.c
5277
(u_long)stats->stat_EtherStatsOverrsizePkts +
sys/dev/pci/if_bnx.c
5278
(u_long)stats->stat_IfInMBUFDiscards +
sys/dev/pci/if_bnx.c
5279
(u_long)stats->stat_Dot3StatsAlignmentErrors +
sys/dev/pci/if_bnx.c
5280
(u_long)stats->stat_Dot3StatsFCSErrors;
sys/dev/pci/if_bnx.c
5283
stats->stat_emac_tx_stat_dot3statsinternalmactransmiterrors +
sys/dev/pci/if_bnx.c
5284
(u_long)stats->stat_Dot3StatsExcessiveCollisions +
sys/dev/pci/if_bnx.c
5285
(u_long)stats->stat_Dot3StatsLateCollisions;
sys/dev/pci/if_bnx.c
5294
ifp->if_oerrors += (u_long) stats->stat_Dot3StatsCarrierSenseErrors;
sys/dev/pci/if_bnx.c
5300
sc->stat_IfHCInOctets = ((u_int64_t)stats->stat_IfHCInOctets_hi << 32) +
sys/dev/pci/if_bnx.c
5301
(u_int64_t) stats->stat_IfHCInOctets_lo;
sys/dev/pci/if_bnx.c
5304
((u_int64_t) stats->stat_IfHCInBadOctets_hi << 32) +
sys/dev/pci/if_bnx.c
5305
(u_int64_t) stats->stat_IfHCInBadOctets_lo;
sys/dev/pci/if_bnx.c
5308
((u_int64_t) stats->stat_IfHCOutOctets_hi << 32) +
sys/dev/pci/if_bnx.c
5309
(u_int64_t) stats->stat_IfHCOutOctets_lo;
sys/dev/pci/if_bnx.c
5312
((u_int64_t) stats->stat_IfHCOutBadOctets_hi << 32) +
sys/dev/pci/if_bnx.c
5313
(u_int64_t) stats->stat_IfHCOutBadOctets_lo;
sys/dev/pci/if_bnx.c
5316
((u_int64_t) stats->stat_IfHCInUcastPkts_hi << 32) +
sys/dev/pci/if_bnx.c
5317
(u_int64_t) stats->stat_IfHCInUcastPkts_lo;
sys/dev/pci/if_bnx.c
5320
((u_int64_t) stats->stat_IfHCInMulticastPkts_hi << 32) +
sys/dev/pci/if_bnx.c
5321
(u_int64_t) stats->stat_IfHCInMulticastPkts_lo;
sys/dev/pci/if_bnx.c
5324
((u_int64_t) stats->stat_IfHCInBroadcastPkts_hi << 32) +
sys/dev/pci/if_bnx.c
5325
(u_int64_t) stats->stat_IfHCInBroadcastPkts_lo;
sys/dev/pci/if_bnx.c
5328
((u_int64_t) stats->stat_IfHCOutUcastPkts_hi << 32) +
sys/dev/pci/if_bnx.c
5329
(u_int64_t) stats->stat_IfHCOutUcastPkts_lo;
sys/dev/pci/if_bnx.c
5332
((u_int64_t) stats->stat_IfHCOutMulticastPkts_hi << 32) +
sys/dev/pci/if_bnx.c
5333
(u_int64_t) stats->stat_IfHCOutMulticastPkts_lo;
sys/dev/pci/if_bnx.c
5336
((u_int64_t) stats->stat_IfHCOutBroadcastPkts_hi << 32) +
sys/dev/pci/if_bnx.c
5337
(u_int64_t) stats->stat_IfHCOutBroadcastPkts_lo;
sys/dev/pci/if_bnx.c
5340
stats->stat_emac_tx_stat_dot3statsinternalmactransmiterrors;
sys/dev/pci/if_bnx.c
5343
stats->stat_Dot3StatsCarrierSenseErrors;
sys/dev/pci/if_bnx.c
5345
sc->stat_Dot3StatsFCSErrors = stats->stat_Dot3StatsFCSErrors;
sys/dev/pci/if_bnx.c
5348
stats->stat_Dot3StatsAlignmentErrors;
sys/dev/pci/if_bnx.c
5351
stats->stat_Dot3StatsSingleCollisionFrames;
sys/dev/pci/if_bnx.c
5354
stats->stat_Dot3StatsMultipleCollisionFrames;
sys/dev/pci/if_bnx.c
5357
stats->stat_Dot3StatsDeferredTransmissions;
sys/dev/pci/if_bnx.c
5360
stats->stat_Dot3StatsExcessiveCollisions;
sys/dev/pci/if_bnx.c
5362
sc->stat_Dot3StatsLateCollisions = stats->stat_Dot3StatsLateCollisions;
sys/dev/pci/if_bnx.c
5364
sc->stat_EtherStatsCollisions = stats->stat_EtherStatsCollisions;
sys/dev/pci/if_bnx.c
5366
sc->stat_EtherStatsFragments = stats->stat_EtherStatsFragments;
sys/dev/pci/if_bnx.c
5368
sc->stat_EtherStatsJabbers = stats->stat_EtherStatsJabbers;
sys/dev/pci/if_bnx.c
5370
sc->stat_EtherStatsUndersizePkts = stats->stat_EtherStatsUndersizePkts;
sys/dev/pci/if_bnx.c
5372
sc->stat_EtherStatsOverrsizePkts = stats->stat_EtherStatsOverrsizePkts;
sys/dev/pci/if_bnx.c
5375
stats->stat_EtherStatsPktsRx64Octets;
sys/dev/pci/if_bnx.c
5378
stats->stat_EtherStatsPktsRx65Octetsto127Octets;
sys/dev/pci/if_bnx.c
5381
stats->stat_EtherStatsPktsRx128Octetsto255Octets;
sys/dev/pci/if_bnx.c
5384
stats->stat_EtherStatsPktsRx256Octetsto511Octets;
sys/dev/pci/if_bnx.c
5387
stats->stat_EtherStatsPktsRx512Octetsto1023Octets;
sys/dev/pci/if_bnx.c
5390
stats->stat_EtherStatsPktsRx1024Octetsto1522Octets;
sys/dev/pci/if_bnx.c
5393
stats->stat_EtherStatsPktsRx1523Octetsto9022Octets;
sys/dev/pci/if_bnx.c
5396
stats->stat_EtherStatsPktsTx64Octets;
sys/dev/pci/if_bnx.c
5399
stats->stat_EtherStatsPktsTx65Octetsto127Octets;
sys/dev/pci/if_bnx.c
5402
stats->stat_EtherStatsPktsTx128Octetsto255Octets;
sys/dev/pci/if_bnx.c
5405
stats->stat_EtherStatsPktsTx256Octetsto511Octets;
sys/dev/pci/if_bnx.c
5408
stats->stat_EtherStatsPktsTx512Octetsto1023Octets;
sys/dev/pci/if_bnx.c
5411
stats->stat_EtherStatsPktsTx1024Octetsto1522Octets;
sys/dev/pci/if_bnx.c
5414
stats->stat_EtherStatsPktsTx1523Octetsto9022Octets;
sys/dev/pci/if_bnx.c
5416
sc->stat_XonPauseFramesReceived = stats->stat_XonPauseFramesReceived;
sys/dev/pci/if_bnx.c
5418
sc->stat_XoffPauseFramesReceived = stats->stat_XoffPauseFramesReceived;
sys/dev/pci/if_bnx.c
5420
sc->stat_OutXonSent = stats->stat_OutXonSent;
sys/dev/pci/if_bnx.c
5422
sc->stat_OutXoffSent = stats->stat_OutXoffSent;
sys/dev/pci/if_bnx.c
5424
sc->stat_FlowControlDone = stats->stat_FlowControlDone;
sys/dev/pci/if_bnx.c
5427
stats->stat_MacControlFramesReceived;
sys/dev/pci/if_bnx.c
5429
sc->stat_XoffStateEntered = stats->stat_XoffStateEntered;
sys/dev/pci/if_bnx.c
5432
stats->stat_IfInFramesL2FilterDiscards;
sys/dev/pci/if_bnx.c
5434
sc->stat_IfInRuleCheckerDiscards = stats->stat_IfInRuleCheckerDiscards;
sys/dev/pci/if_bnx.c
5436
sc->stat_IfInFTQDiscards = stats->stat_IfInFTQDiscards;
sys/dev/pci/if_bnx.c
5438
sc->stat_IfInMBUFDiscards = stats->stat_IfInMBUFDiscards;
sys/dev/pci/if_bnx.c
5440
sc->stat_IfInRuleCheckerP4Hit = stats->stat_IfInRuleCheckerP4Hit;
sys/dev/pci/if_bnx.c
5443
stats->stat_CatchupInRuleCheckerDiscards;
sys/dev/pci/if_bnx.c
5445
sc->stat_CatchupInFTQDiscards = stats->stat_CatchupInFTQDiscards;
sys/dev/pci/if_bnx.c
5447
sc->stat_CatchupInMBUFDiscards = stats->stat_CatchupInMBUFDiscards;
sys/dev/pci/if_bnx.c
5450
stats->stat_CatchupInRuleCheckerP4Hit;
sys/dev/pci/if_bnxreg.h
687
#define BNX_STATS(x) (u_long) stats->stat_ ## x ## _lo
sys/dev/pci/if_em.c
3822
sc->stats.tsctc +=
sys/dev/pci/if_em.c
3824
sc->stats.tsctfc +=
sys/dev/pci/if_ice.c
21346
memset(&sc->stats.prev, 0, sizeof(sc->stats.prev));
sys/dev/pci/if_ice.c
21347
memset(&sc->stats.cur, 0, sizeof(sc->stats.cur));
sys/dev/pci/if_ice.c
21348
sc->stats.offsets_loaded = false;
sys/dev/pci/if_ice.c
28754
prev_ps = &sc->stats.prev;
sys/dev/pci/if_ice.c
28755
cur_ps = &sc->stats.cur;
sys/dev/pci/if_ice.c
28760
sc->stats.offsets_loaded, \
sys/dev/pci/if_ice.c
28765
sc->stats.offsets_loaded, \
sys/dev/pci/if_ice.c
28770
sc->stats.offsets_loaded, \
sys/dev/pci/if_ice.c
28783
sc->stats.offsets_loaded,
sys/dev/pci/if_ice.c
28829
sc->stats.offsets_loaded = true;
sys/dev/pci/if_ice.c
324
struct ice_pf_hw_stats stats;
sys/dev/pci/if_icevar.h
4565
struct tx_stats stats;
sys/dev/pci/if_icevar.h
4613
struct rx_stats stats;
sys/dev/pci/if_iwm.c
11174
struct iwm_notif_statistics *stats;
sys/dev/pci/if_iwm.c
11175
SYNC_RESP_STRUCT(stats, pkt);
sys/dev/pci/if_iwm.c
11176
memcpy(&sc->sc_stats, stats, sizeof(sc->sc_stats));
sys/dev/pci/if_iwm.c
11177
sc->sc_noise = iwm_get_noise(&stats->rx.general);
sys/dev/pci/if_iwm.c
4666
iwm_get_noise(const struct iwm_statistics_rx_non_phy *stats)
sys/dev/pci/if_iwm.c
4672
noise = letoh32(stats->beacon_silence_rssi[i]) & 0xff;
sys/dev/pci/if_iwn.c
2471
struct iwn_stats *stats = (struct iwn_stats *)(desc + 1);
sys/dev/pci/if_iwn.c
2479
sizeof (*stats), BUS_DMASYNC_POSTREAD);
sys/dev/pci/if_iwn.c
2484
sc->rx_stats_flags = htole32(stats->flags);
sys/dev/pci/if_iwn.c
2487
if (stats->general.temp != sc->rawtemp) {
sys/dev/pci/if_iwn.c
2489
sc->rawtemp = stats->general.temp;
sys/dev/pci/if_iwn.c
2501
sc->noise = iwn_get_noise(&stats->rx.general);
sys/dev/pci/if_iwn.c
2507
if (letoh32(stats->rx.general.flags) != 1) {
sys/dev/pci/if_iwn.c
2521
iwn_collect_noise(sc, &stats->rx.general);
sys/dev/pci/if_iwn.c
2523
iwn_tune_sensitivity(sc, &stats->rx);
sys/dev/pci/if_iwn.c
4327
iwn_get_noise(const struct iwn_rx_general_stats *stats)
sys/dev/pci/if_iwn.c
4333
if ((noise = letoh32(stats->noise[i]) & 0xff) == 0)
sys/dev/pci/if_iwn.c
4437
const struct iwn_rx_general_stats *stats)
sys/dev/pci/if_iwn.c
4446
calib->rssi[i] += letoh32(stats->rssi[i]) & 0xff;
sys/dev/pci/if_iwn.c
4447
calib->noise[i] += letoh32(stats->noise[i]) & 0xff;
sys/dev/pci/if_iwn.c
4584
iwn_tune_sensitivity(struct iwn_softc *sc, const struct iwn_rx_stats *stats)
sys/dev/pci/if_iwn.c
4611
if ((rxena = letoh32(stats->general.load)) == 0)
sys/dev/pci/if_iwn.c
4615
fa = letoh32(stats->ofdm.bad_plcp) - calib->bad_plcp_ofdm;
sys/dev/pci/if_iwn.c
4616
fa += letoh32(stats->ofdm.fa) - calib->fa_ofdm;
sys/dev/pci/if_iwn.c
4620
calib->bad_plcp_ofdm = letoh32(stats->ofdm.bad_plcp);
sys/dev/pci/if_iwn.c
4621
calib->fa_ofdm = letoh32(stats->ofdm.fa);
sys/dev/pci/if_iwn.c
4642
noise[i] = (letoh32(stats->general.noise[i]) >> 8) & 0xff;
sys/dev/pci/if_iwn.c
4656
energy[i] = letoh32(stats->general.energy[i]);
sys/dev/pci/if_iwn.c
4670
fa = letoh32(stats->cck.bad_plcp) - calib->bad_plcp_cck;
sys/dev/pci/if_iwn.c
4671
fa += letoh32(stats->cck.fa) - calib->fa_cck;
sys/dev/pci/if_iwn.c
4675
calib->bad_plcp_cck = letoh32(stats->cck.bad_plcp);
sys/dev/pci/if_iwn.c
4676
calib->fa_cck = letoh32(stats->cck.fa);
sys/dev/pci/if_iwx.c
10965
struct iwx_notif_statistics *stats;
sys/dev/pci/if_iwx.c
10966
SYNC_RESP_STRUCT(stats, pkt);
sys/dev/pci/if_iwx.c
10967
memcpy(&sc->sc_stats, stats, sizeof(sc->sc_stats));
sys/dev/pci/if_iwx.c
10968
sc->sc_noise = iwx_get_noise(&stats->rx.general);
sys/dev/pci/if_iwx.c
4686
iwx_get_noise(const struct iwx_statistics_rx_non_phy *stats)
sys/dev/pci/if_iwx.c
4692
noise = letoh32(stats->beacon_silence_rssi[i]) & 0xff;
sys/dev/pci/if_ix.c
3882
struct ix_rxq_kstats *stats;
sys/dev/pci/if_ix.c
3890
stats = malloc(sizeof(*stats), M_DEVBUF, M_WAITOK|M_ZERO);
sys/dev/pci/if_ix.c
3891
*stats = ix_rxq_kstats_tpl;
sys/dev/pci/if_ix.c
3895
ks->ks_data = stats;
sys/dev/pci/if_ix.c
3896
ks->ks_datalen = sizeof(*stats);
sys/dev/pci/if_ix.c
3906
struct ix_txq_kstats *stats;
sys/dev/pci/if_ix.c
3914
stats = malloc(sizeof(*stats), M_DEVBUF, M_WAITOK|M_ZERO);
sys/dev/pci/if_ix.c
3915
*stats = ix_txq_kstats_tpl;
sys/dev/pci/if_ix.c
3919
ks->ks_data = stats;
sys/dev/pci/if_ix.c
3920
ks->ks_datalen = sizeof(*stats);
sys/dev/pci/if_ix.c
4009
struct ix_rxq_kstats *stats = ks->ks_data;
sys/dev/pci/if_ix.c
4015
kstat_kv_u64(&stats->qprc) += IXGBE_READ_REG(hw, IXGBE_QPRC(i));
sys/dev/pci/if_ix.c
4017
kstat_kv_u64(&stats->qprdc) +=
sys/dev/pci/if_ix.c
4019
kstat_kv_u64(&stats->qbrc) +=
sys/dev/pci/if_ix.c
4022
kstat_kv_u64(&stats->qprdc) +=
sys/dev/pci/if_ix.c
4024
kstat_kv_u64(&stats->qbrc) +=
sys/dev/pci/if_ix.c
4036
struct ix_txq_kstats *stats = ks->ks_data;
sys/dev/pci/if_ix.c
4042
kstat_kv_u64(&stats->qptc) += IXGBE_READ_REG(hw, IXGBE_QPTC(i));
sys/dev/pci/if_ix.c
4044
kstat_kv_u64(&stats->qbtc) +=
sys/dev/pci/if_ix.c
4047
kstat_kv_u64(&stats->qbtc) +=
sys/dev/pci/if_ixgb.c
1930
sc->stats.crcerrs += IXGB_READ_REG(&sc->hw, CRCERRS);
sys/dev/pci/if_ixgb.c
1931
sc->stats.gprcl += IXGB_READ_REG(&sc->hw, GPRCL);
sys/dev/pci/if_ixgb.c
1932
sc->stats.gprch += IXGB_READ_REG(&sc->hw, GPRCH);
sys/dev/pci/if_ixgb.c
1933
sc->stats.gorcl += IXGB_READ_REG(&sc->hw, GORCL);
sys/dev/pci/if_ixgb.c
1934
sc->stats.gorch += IXGB_READ_REG(&sc->hw, GORCH);
sys/dev/pci/if_ixgb.c
1935
sc->stats.bprcl += IXGB_READ_REG(&sc->hw, BPRCL);
sys/dev/pci/if_ixgb.c
1936
sc->stats.bprch += IXGB_READ_REG(&sc->hw, BPRCH);
sys/dev/pci/if_ixgb.c
1937
sc->stats.mprcl += IXGB_READ_REG(&sc->hw, MPRCL);
sys/dev/pci/if_ixgb.c
1938
sc->stats.mprch += IXGB_READ_REG(&sc->hw, MPRCH);
sys/dev/pci/if_ixgb.c
1939
sc->stats.roc += IXGB_READ_REG(&sc->hw, ROC);
sys/dev/pci/if_ixgb.c
1941
sc->stats.mpc += IXGB_READ_REG(&sc->hw, MPC);
sys/dev/pci/if_ixgb.c
1942
sc->stats.dc += IXGB_READ_REG(&sc->hw, DC);
sys/dev/pci/if_ixgb.c
1943
sc->stats.rlec += IXGB_READ_REG(&sc->hw, RLEC);
sys/dev/pci/if_ixgb.c
1944
sc->stats.xonrxc += IXGB_READ_REG(&sc->hw, XONRXC);
sys/dev/pci/if_ixgb.c
1945
sc->stats.xontxc += IXGB_READ_REG(&sc->hw, XONTXC);
sys/dev/pci/if_ixgb.c
1946
sc->stats.xoffrxc += IXGB_READ_REG(&sc->hw, XOFFRXC);
sys/dev/pci/if_ixgb.c
1947
sc->stats.xofftxc += IXGB_READ_REG(&sc->hw, XOFFTXC);
sys/dev/pci/if_ixgb.c
1948
sc->stats.gptcl += IXGB_READ_REG(&sc->hw, GPTCL);
sys/dev/pci/if_ixgb.c
1949
sc->stats.gptch += IXGB_READ_REG(&sc->hw, GPTCH);
sys/dev/pci/if_ixgb.c
1950
sc->stats.gotcl += IXGB_READ_REG(&sc->hw, GOTCL);
sys/dev/pci/if_ixgb.c
1951
sc->stats.gotch += IXGB_READ_REG(&sc->hw, GOTCH);
sys/dev/pci/if_ixgb.c
1952
sc->stats.ruc += IXGB_READ_REG(&sc->hw, RUC);
sys/dev/pci/if_ixgb.c
1953
sc->stats.rfc += IXGB_READ_REG(&sc->hw, RFC);
sys/dev/pci/if_ixgb.c
1954
sc->stats.rjc += IXGB_READ_REG(&sc->hw, RJC);
sys/dev/pci/if_ixgb.c
1955
sc->stats.torl += IXGB_READ_REG(&sc->hw, TORL);
sys/dev/pci/if_ixgb.c
1956
sc->stats.torh += IXGB_READ_REG(&sc->hw, TORH);
sys/dev/pci/if_ixgb.c
1957
sc->stats.totl += IXGB_READ_REG(&sc->hw, TOTL);
sys/dev/pci/if_ixgb.c
1958
sc->stats.toth += IXGB_READ_REG(&sc->hw, TOTH);
sys/dev/pci/if_ixgb.c
1959
sc->stats.tprl += IXGB_READ_REG(&sc->hw, TPRL);
sys/dev/pci/if_ixgb.c
1960
sc->stats.tprh += IXGB_READ_REG(&sc->hw, TPRH);
sys/dev/pci/if_ixgb.c
1961
sc->stats.tptl += IXGB_READ_REG(&sc->hw, TPTL);
sys/dev/pci/if_ixgb.c
1962
sc->stats.tpth += IXGB_READ_REG(&sc->hw, TPTH);
sys/dev/pci/if_ixgb.c
1963
sc->stats.plt64c += IXGB_READ_REG(&sc->hw, PLT64C);
sys/dev/pci/if_ixgb.c
1964
sc->stats.mptcl += IXGB_READ_REG(&sc->hw, MPTCL);
sys/dev/pci/if_ixgb.c
1965
sc->stats.mptch += IXGB_READ_REG(&sc->hw, MPTCH);
sys/dev/pci/if_ixgb.c
1966
sc->stats.bptcl += IXGB_READ_REG(&sc->hw, BPTCL);
sys/dev/pci/if_ixgb.c
1967
sc->stats.bptch += IXGB_READ_REG(&sc->hw, BPTCH);
sys/dev/pci/if_ixgb.c
1969
sc->stats.uprcl += IXGB_READ_REG(&sc->hw, UPRCL);
sys/dev/pci/if_ixgb.c
1970
sc->stats.uprch += IXGB_READ_REG(&sc->hw, UPRCH);
sys/dev/pci/if_ixgb.c
1971
sc->stats.vprcl += IXGB_READ_REG(&sc->hw, VPRCL);
sys/dev/pci/if_ixgb.c
1972
sc->stats.vprch += IXGB_READ_REG(&sc->hw, VPRCH);
sys/dev/pci/if_ixgb.c
1973
sc->stats.jprcl += IXGB_READ_REG(&sc->hw, JPRCL);
sys/dev/pci/if_ixgb.c
1974
sc->stats.jprch += IXGB_READ_REG(&sc->hw, JPRCH);
sys/dev/pci/if_ixgb.c
1975
sc->stats.rnbc += IXGB_READ_REG(&sc->hw, RNBC);
sys/dev/pci/if_ixgb.c
1976
sc->stats.icbc += IXGB_READ_REG(&sc->hw, ICBC);
sys/dev/pci/if_ixgb.c
1977
sc->stats.ecbc += IXGB_READ_REG(&sc->hw, ECBC);
sys/dev/pci/if_ixgb.c
1978
sc->stats.uptcl += IXGB_READ_REG(&sc->hw, UPTCL);
sys/dev/pci/if_ixgb.c
1979
sc->stats.uptch += IXGB_READ_REG(&sc->hw, UPTCH);
sys/dev/pci/if_ixgb.c
1980
sc->stats.vptcl += IXGB_READ_REG(&sc->hw, VPTCL);
sys/dev/pci/if_ixgb.c
1981
sc->stats.vptch += IXGB_READ_REG(&sc->hw, VPTCH);
sys/dev/pci/if_ixgb.c
1982
sc->stats.jptcl += IXGB_READ_REG(&sc->hw, JPTCL);
sys/dev/pci/if_ixgb.c
1983
sc->stats.jptch += IXGB_READ_REG(&sc->hw, JPTCH);
sys/dev/pci/if_ixgb.c
1984
sc->stats.tsctc += IXGB_READ_REG(&sc->hw, TSCTC);
sys/dev/pci/if_ixgb.c
1985
sc->stats.tsctfc += IXGB_READ_REG(&sc->hw, TSCTFC);
sys/dev/pci/if_ixgb.c
1986
sc->stats.ibic += IXGB_READ_REG(&sc->hw, IBIC);
sys/dev/pci/if_ixgb.c
1987
sc->stats.lfc += IXGB_READ_REG(&sc->hw, LFC);
sys/dev/pci/if_ixgb.c
1988
sc->stats.pfrc += IXGB_READ_REG(&sc->hw, PFRC);
sys/dev/pci/if_ixgb.c
1989
sc->stats.pftc += IXGB_READ_REG(&sc->hw, PFTC);
sys/dev/pci/if_ixgb.c
1990
sc->stats.mcfrc += IXGB_READ_REG(&sc->hw, MCFRC);
sys/dev/pci/if_ixgb.c
2000
sc->stats.crcerrs +
sys/dev/pci/if_ixgb.c
2001
sc->stats.rnbc +
sys/dev/pci/if_ixgb.c
2002
sc->stats.mpc +
sys/dev/pci/if_ixgb.c
2003
sc->stats.rlec;
sys/dev/pci/if_ixgb.c
2054
(long long)sc->stats.dc);
sys/dev/pci/if_ixgb.c
2056
(long long)sc->stats.mpc);
sys/dev/pci/if_ixgb.c
2058
(long long)sc->stats.rnbc);
sys/dev/pci/if_ixgb.c
2060
(long long)sc->stats.rlec);
sys/dev/pci/if_ixgb.c
2062
(long long)sc->stats.crcerrs);
sys/dev/pci/if_ixgb.c
2067
(long long)sc->stats.xonrxc);
sys/dev/pci/if_ixgb.c
2069
(long long)sc->stats.xontxc);
sys/dev/pci/if_ixgb.c
2071
(long long)sc->stats.xoffrxc);
sys/dev/pci/if_ixgb.c
2073
(long long)sc->stats.xofftxc);
sys/dev/pci/if_ixgb.c
2076
(long long)sc->stats.gprcl);
sys/dev/pci/if_ixgb.c
2078
(long long)sc->stats.gptcl);
sys/dev/pci/if_ixgb.c
2081
(long long)sc->stats.jprcl);
sys/dev/pci/if_ixgb.c
2083
(long long)sc->stats.jptcl);
sys/dev/pci/if_ixgb.h
305
struct ixgb_hw_stats stats;
sys/dev/pci/if_ixv.c
1429
struct ixv_rxq_kstats *stats;
sys/dev/pci/if_ixv.c
1437
stats = malloc(sizeof(*stats), M_DEVBUF, M_WAITOK|M_ZERO);
sys/dev/pci/if_ixv.c
1438
*stats = ixv_rxq_kstats_tpl;
sys/dev/pci/if_ixv.c
1442
ks->ks_data = stats;
sys/dev/pci/if_ixv.c
1443
ks->ks_datalen = sizeof(*stats);
sys/dev/pci/if_ixv.c
1453
struct ixv_txq_kstats *stats;
sys/dev/pci/if_ixv.c
1461
stats = malloc(sizeof(*stats), M_DEVBUF, M_WAITOK|M_ZERO);
sys/dev/pci/if_ixv.c
1462
*stats = ixv_txq_kstats_tpl;
sys/dev/pci/if_ixv.c
1466
ks->ks_data = stats;
sys/dev/pci/if_ixv.c
1467
ks->ks_datalen = sizeof(*stats);
sys/dev/pci/if_ixv.c
1540
struct ixv_rxq_kstats *stats = ks->ks_data;
sys/dev/pci/if_ixv.c
1546
kstat_kv_u64(&stats->qprc) += IXGBE_READ_REG(hw, IXGBE_QPRC(i));
sys/dev/pci/if_ixv.c
1547
kstat_kv_u64(&stats->qprdc) += IXGBE_READ_REG(hw, IXGBE_QPRDC(i));
sys/dev/pci/if_ixv.c
1548
kstat_kv_u64(&stats->qbrc) +=
sys/dev/pci/if_ixv.c
1559
struct ixv_txq_kstats *stats = ks->ks_data;
sys/dev/pci/if_ixv.c
1565
kstat_kv_u64(&stats->qptc) += IXGBE_READ_REG(hw, IXGBE_QPTC(i));
sys/dev/pci/if_ixv.c
1566
kstat_kv_u64(&stats->qbtc) +=
sys/dev/pci/if_mwx.c
4744
wcid->stats.tx_bytes += skb->len;
sys/dev/pci/if_mwx.c
4745
wcid->stats.tx_packets++;
sys/dev/pci/if_oce.c
3502
ms = &cmd->params.rsp.stats.pmem;
sys/dev/pci/if_oce.c
3503
rs = &cmd->params.rsp.stats.rxf;
sys/dev/pci/if_oce.c
3541
ms = &cmd->params.rsp.stats.pmem;
sys/dev/pci/if_oce.c
3542
rs = &cmd->params.rsp.stats.rxf;
sys/dev/pci/if_ocereg.h
2274
struct oce_hw_stats_v0 stats;
sys/dev/pci/if_ocereg.h
2287
struct oce_hw_stats_v1 stats;
sys/dev/pci/if_vmx.c
1985
vmx_tx_kstat_tpl, nitems(vmx_tx_kstat_tpl), tq->ts->stats);
sys/dev/pci/if_vmx.c
1993
vmx_rx_kstat_tpl, nitems(vmx_rx_kstat_tpl), rq->rs->stats);
sys/dev/pci/if_vmxreg.h
319
uint64_t stats[UPT1_TxStats_count];
sys/dev/pci/if_vmxreg.h
343
uint64_t stats[UPT1_RxStats_count];
sys/dev/pci/ixgbe.c
4704
hw->mbx.stats.reqs++;
sys/dev/pci/ixgbe.c
4714
hw->mbx.stats.acks++;
sys/dev/pci/ixgbe.c
4724
hw->mbx.stats.rsts++;
sys/dev/pci/ixgbe.c
4963
hw->mbx.stats.reqs++;
sys/dev/pci/ixgbe.c
4978
hw->mbx.stats.acks++;
sys/dev/pci/ixgbe.c
5042
hw->mbx.stats.rsts++;
sys/dev/pci/ixgbe.c
5133
hw->mbx.stats.msgs_tx++;
sys/dev/pci/ixgbe.c
5173
hw->mbx.stats.msgs_rx++;
sys/dev/pci/ixgbe.c
5215
hw->mbx.stats.msgs_rx++;
sys/dev/pci/ixgbe.c
5263
hw->mbx.stats.msgs_tx++;
sys/dev/pci/ixgbe.c
5301
hw->mbx.stats.msgs_rx++;
sys/dev/pci/ixgbe.c
5330
mbx->stats.msgs_tx = 0;
sys/dev/pci/ixgbe.c
5331
mbx->stats.msgs_rx = 0;
sys/dev/pci/ixgbe.c
5332
mbx->stats.reqs = 0;
sys/dev/pci/ixgbe.c
5333
mbx->stats.acks = 0;
sys/dev/pci/ixgbe.c
5334
mbx->stats.rsts = 0;
sys/dev/pci/ixgbe.c
5373
hw->mbx.stats.msgs_tx++;
sys/dev/pci/ixgbe.c
5422
mbx->stats.msgs_tx = 0;
sys/dev/pci/ixgbe.c
5423
mbx->stats.msgs_rx = 0;
sys/dev/pci/ixgbe.c
5424
mbx->stats.reqs = 0;
sys/dev/pci/ixgbe.c
5425
mbx->stats.acks = 0;
sys/dev/pci/ixgbe.c
5426
mbx->stats.rsts = 0;
sys/dev/pci/ixgbe_type.h
4300
struct ixgbe_mbx_stats stats;
sys/dev/usb/if_upgt.c
2091
struct upgt_lmac_stats *stats;
sys/dev/usb/if_upgt.c
2103
stats = (struct upgt_lmac_stats *)(mem + 1);
sys/dev/usb/if_upgt.c
2105
stats->header1.flags = 0;
sys/dev/usb/if_upgt.c
2106
stats->header1.type = UPGT_H1_TYPE_CTRL;
sys/dev/usb/if_upgt.c
2107
stats->header1.len = htole16(
sys/dev/usb/if_upgt.c
2111
stats->header2.reqid = htole32(sc->sc_memaddr_frame_start);
sys/dev/usb/if_upgt.c
2112
stats->header2.type = htole16(UPGT_H2_TYPE_STATS);
sys/dev/usb/if_upgt.c
2113
stats->header2.flags = 0;
sys/dev/usb/if_upgt.c
2115
len = sizeof(*mem) + sizeof(*stats);
sys/dev/usb/if_upgt.c
2117
mem->chksum = upgt_chksum_le((uint32_t *)stats,
sys/dev/usb/uhub.c
489
uint32_t stats = 0;
sys/dev/usb/uhub.c
501
stats |= (uint32_t)(xfer->buffer[i]) << (i * 8);
sys/dev/usb/uhub.c
502
sc->sc_status |= stats;
sys/dev/usb/usb.c
682
*(struct usb_device_stats *)data = sc->sc_bus->stats;
sys/dev/usb/usbdi.c
785
++bus->stats.uds_requests
sys/dev/usb/usbdivar.h
126
struct usb_device_stats stats;
sys/kern/kern_clockintr.c
183
goto stats;
sys/kern/kern_clockintr.c
244
stats:
sys/net/bsd-comp.c
138
static void bsd_comp_stats(void *state, struct compstat *stats);
sys/net/bsd-comp.c
258
bsd_comp_stats(void *state, struct compstat *stats)
sys/net/bsd-comp.c
263
stats->unc_bytes = db->uncomp_bytes;
sys/net/bsd-comp.c
264
stats->unc_packets = db->uncomp_count;
sys/net/bsd-comp.c
265
stats->comp_bytes = db->comp_bytes;
sys/net/bsd-comp.c
266
stats->comp_packets = db->comp_count;
sys/net/bsd-comp.c
267
stats->inc_bytes = db->incomp_bytes;
sys/net/bsd-comp.c
268
stats->inc_packets = db->incomp_count;
sys/net/bsd-comp.c
269
stats->ratio = db->in_count;
sys/net/bsd-comp.c
271
if (stats->ratio <= 0x7fffff)
sys/net/bsd-comp.c
272
stats->ratio <<= 8;
sys/net/bsd-comp.c
276
stats->ratio /= out;
sys/net/fq_codel.c
818
struct fqcodel_stats stats;
sys/net/fq_codel.c
827
if (*nbytes < sizeof(stats))
sys/net/fq_codel.c
830
memset(&stats, 0, sizeof(stats));
sys/net/fq_codel.c
837
stats.xmit_cnt = fqc->xmit_cnt;
sys/net/fq_codel.c
838
stats.drop_cnt = fqc->drop_cnt;
sys/net/fq_codel.c
840
stats.qlength = ifq_len(&ifp->if_snd);
sys/net/fq_codel.c
841
stats.qlimit = fqc->qlimit;
sys/net/fq_codel.c
843
stats.flows = 0;
sys/net/fq_codel.c
844
stats.delaysum = stats.delaysumsq = 0;
sys/net/fq_codel.c
851
stats.delaysum += delay;
sys/net/fq_codel.c
852
stats.delaysumsq += delay * delay;
sys/net/fq_codel.c
853
stats.flows++;
sys/net/fq_codel.c
858
if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
sys/net/fq_codel.c
861
*nbytes = sizeof(stats);
sys/net/hfsc.c
479
struct hfsc_class_stats stats;
sys/net/hfsc.c
485
if (*nbytes < sizeof(stats))
sys/net/hfsc.c
497
hfsc_getclstats(&stats, cl);
sys/net/hfsc.c
500
if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
sys/net/hfsc.c
503
*nbytes = sizeof(stats);
sys/net/if_ppp.c
607
psp = &((struct ifpppstatsreq *) data)->stats;
sys/net/if_ppp.c
628
pcp = &((struct ifpppcstatsreq *) data)->stats;
sys/net/if_ppp.h
109
struct ppp_stats stats;
sys/net/if_ppp.h
114
struct ppp_comp_stats stats;
sys/net/pipex.c
503
struct pipex_statistics *stats)
sys/net/pipex.c
507
memset(stats, 0, sizeof(*stats));
sys/net/pipex.c
510
stats->ipackets = counters[pxc_ipackets];
sys/net/pipex.c
511
stats->ierrors = counters[pxc_ierrors];
sys/net/pipex.c
512
stats->ibytes = counters[pxc_ibytes];
sys/net/pipex.c
513
stats->opackets = counters[pxc_opackets];
sys/net/pipex.c
514
stats->oerrors = counters[pxc_oerrors];
sys/net/pipex.c
515
stats->obytes = counters[pxc_obytes];
sys/net/pipex.c
516
stats->idle_time = session->idle_time;
sys/net/ppp-comp.h
74
void (*comp_stat)(void *state, struct compstat *stats);
sys/net/ppp-comp.h
91
void (*decomp_stat)(void *state, struct compstat *stats);
sys/net/ppp-deflate.c
174
bzero(&state->stats, sizeof(state->stats));
sys/net/ppp-deflate.c
330
state->stats.comp_bytes += olen;
sys/net/ppp-deflate.c
331
state->stats.comp_packets++;
sys/net/ppp-deflate.c
335
state->stats.inc_bytes += orig_len;
sys/net/ppp-deflate.c
336
state->stats.inc_packets++;
sys/net/ppp-deflate.c
339
state->stats.unc_bytes += orig_len;
sys/net/ppp-deflate.c
340
state->stats.unc_packets++;
sys/net/ppp-deflate.c
346
z_comp_stats(void *arg, struct compstat *stats)
sys/net/ppp-deflate.c
351
*stats = state->stats;
sys/net/ppp-deflate.c
352
stats->ratio = stats->unc_bytes;
sys/net/ppp-deflate.c
353
out = stats->comp_bytes + stats->inc_bytes;
sys/net/ppp-deflate.c
354
if (stats->ratio <= 0x7ffffff)
sys/net/ppp-deflate.c
355
stats->ratio <<= 8;
sys/net/ppp-deflate.c
359
stats->ratio /= out;
sys/net/ppp-deflate.c
394
bzero(&state->stats, sizeof(state->stats));
sys/net/ppp-deflate.c
591
state->stats.unc_bytes += olen;
sys/net/ppp-deflate.c
592
state->stats.unc_packets++;
sys/net/ppp-deflate.c
593
state->stats.comp_bytes += rlen;
sys/net/ppp-deflate.c
594
state->stats.comp_packets++;
sys/net/ppp-deflate.c
63
struct compstat stats;
sys/net/ppp-deflate.c
655
state->stats.inc_bytes += rlen;
sys/net/ppp-deflate.c
656
state->stats.inc_packets++;
sys/net/ppp-deflate.c
657
state->stats.unc_bytes += rlen;
sys/net/ppp-deflate.c
658
state->stats.unc_packets++;
sys/net/ppp-deflate.c
85
static void z_comp_stats(void *state, struct compstat *stats);
usr.bin/dig/dig.c
1089
lookup->stats = 0;
usr.bin/dig/dig.c
1156
lookup->stats = state;
usr.bin/dig/dig.c
1216
lookup->stats = 0;
usr.bin/dig/dig.c
183
if (query->lookup->stats && !short_form) {
usr.bin/dig/dig.c
709
lookup->stats = state;
usr.bin/dig/dig.c
962
lookup->stats = 0;
usr.bin/dig/dig.h
97
stats,
usr.bin/dig/dighost.c
695
looknew->stats = 1;
usr.bin/dig/dighost.c
812
looknew->stats = lookold->stats;
usr.bin/dig/nslookup.c
42
identify = 0, stats = 1,
usr.bin/dig/nslookup.c
716
lookup->stats = stats;
usr.bin/netstat/net80211.c
44
struct ieee80211_stats stats;
usr.bin/netstat/net80211.c
47
#define p(f, m) printf(m, (unsigned long)stats.f, plural(stats.f))
usr.bin/netstat/net80211.c
52
ifr.ifr_data = (caddr_t)&stats;
usr.bin/ssh/packet.c
2923
char *stats = NULL, bytes[FMT_SCALED_STRSIZE];
usr.bin/ssh/packet.c
2928
xasprintf(&stats, "%lu pkts %llu blks %sB",
usr.bin/ssh/packet.c
2930
return stats;
usr.bin/ssh/sftp-server.c
1126
Stat *stats;
usr.bin/ssh/sftp-server.c
1129
stats = xcalloc(nstats, sizeof(Stat));
usr.bin/ssh/sftp-server.c
1133
stats = xreallocarray(stats, nstats, sizeof(Stat));
usr.bin/ssh/sftp-server.c
1140
stat_to_attrib(&st, &(stats[count].attrib));
usr.bin/ssh/sftp-server.c
1141
stats[count].name = xstrdup(dp->d_name);
usr.bin/ssh/sftp-server.c
1142
stats[count].long_name = ls_file(dp->d_name, &st,
usr.bin/ssh/sftp-server.c
1151
send_names(id, count, stats);
usr.bin/ssh/sftp-server.c
1153
free(stats[i].name);
usr.bin/ssh/sftp-server.c
1154
free(stats[i].long_name);
usr.bin/ssh/sftp-server.c
1159
free(stats);
usr.bin/ssh/sftp-server.c
606
send_names(uint32_t id, int count, const Stat *stats)
usr.bin/ssh/sftp-server.c
619
if ((r = sshbuf_put_cstring(msg, stats[i].name)) != 0 ||
usr.bin/ssh/sftp-server.c
620
(r = sshbuf_put_cstring(msg, stats[i].long_name)) != 0 ||
usr.bin/ssh/sftp-server.c
621
(r = encode_attrib(msg, &stats[i].attrib)) != 0)
usr.bin/systat/malloc.c
162
if (t1->stats.ks_calls < t2->stats.ks_calls)
usr.bin/systat/malloc.c
164
if (t1->stats.ks_calls > t2->stats.ks_calls)
usr.bin/systat/malloc.c
177
if (t1->stats.ks_inuse < t2->stats.ks_inuse)
usr.bin/systat/malloc.c
179
if (t1->stats.ks_inuse > t2->stats.ks_inuse)
usr.bin/systat/malloc.c
192
if (t1->stats.ks_memuse < t2->stats.ks_memuse)
usr.bin/systat/malloc.c
194
if (t1->stats.ks_memuse > t2->stats.ks_memuse)
usr.bin/systat/malloc.c
303
if (sysctl(mib, 4, &ti->stats, &siz, NULL, 0) == -1)
usr.bin/systat/malloc.c
306
if (ti->stats.ks_calls == 0)
usr.bin/systat/malloc.c
313
ti->buckets[k] = (ti->stats.ks_size & j) ? '|' : '.';
usr.bin/systat/malloc.c
391
print_fld_size(FLD_TYPE_INUSE, t->stats.ks_inuse);
usr.bin/systat/malloc.c
392
print_fld_size(FLD_TYPE_MEMUSE, t->stats.ks_memuse);
usr.bin/systat/malloc.c
393
print_fld_size(FLD_TYPE_HIGHUSE, t->stats.ks_maxused);
usr.bin/systat/malloc.c
394
print_fld_size(FLD_TYPE_LIMIT, t->stats.ks_limit);
usr.bin/systat/malloc.c
395
print_fld_size(FLD_TYPE_REQUESTS, t->stats.ks_calls);
usr.bin/systat/malloc.c
396
print_fld_size(FLD_TYPE_TLIMIT, t->stats.ks_limblocks);
usr.bin/systat/malloc.c
50
struct kmemstats stats;
usr.bin/tcpbench/tcpbench.c
1055
const int stats = (mainstats.floor_mbps != INFINITY);
usr.bin/tcpbench/tcpbench.c
1058
if (!stats) {
usr.bin/top/display.c
457
i_memory(int *stats)
usr.bin/top/display.c
467
summary_format(memory_buffer, sizeof(memory_buffer), stats,
usr.sbin/bgpctl/bgpctl.c
473
struct rde_memstats stats;
usr.sbin/bgpctl/bgpctl.c
555
if (imsg_get_data(imsg, &stats, sizeof(stats)) == -1)
usr.sbin/bgpctl/bgpctl.c
557
output->rib_mem(&stats);
usr.sbin/bgpctl/output.c
1060
show_rib_mem(struct rde_memstats *stats)
usr.sbin/bgpctl/output.c
1067
if (stats->pt_cnt[i] == 0)
usr.sbin/bgpctl/output.c
1069
pts += stats->pt_size[i];
usr.sbin/bgpctl/output.c
1071
stats->pt_cnt[i], aid_vals[i].name,
usr.sbin/bgpctl/output.c
1072
fmt_mem(stats->pt_size[i]));
usr.sbin/bgpctl/output.c
1075
stats->rib_cnt, fmt_mem(stats->rib_cnt *
usr.sbin/bgpctl/output.c
1078
stats->prefix_cnt, fmt_mem(stats->prefix_cnt *
usr.sbin/bgpctl/output.c
1081
stats->adjout_prefix_cnt,
usr.sbin/bgpctl/output.c
1082
fmt_mem(stats->adjout_prefix_cnt * sizeof(struct adjout_prefix)));
usr.sbin/bgpctl/output.c
1083
printf(" %s memory\n", fmt_mem(stats->adjout_prefix_size));
usr.sbin/bgpctl/output.c
1085
stats->adjout_attr_cnt, fmt_mem(stats->adjout_attr_cnt *
usr.sbin/bgpctl/output.c
1088
stats->adjout_attr_refs);
usr.sbin/bgpctl/output.c
1090
stats->path_cnt, fmt_mem(stats->path_cnt *
usr.sbin/bgpctl/output.c
1093
stats->path_refs);
usr.sbin/bgpctl/output.c
1095
"%s of memory\n", stats->aspath_cnt, fmt_mem(stats->aspath_size));
usr.sbin/bgpctl/output.c
1097
"using %s of memory\n", stats->comm_cnt, stats->comm_nmemb,
usr.sbin/bgpctl/output.c
1098
fmt_mem(stats->comm_cnt * sizeof(struct rde_community) +
usr.sbin/bgpctl/output.c
1099
stats->comm_size * sizeof(struct community)));
usr.sbin/bgpctl/output.c
1101
stats->comm_refs);
usr.sbin/bgpctl/output.c
1103
stats->attr_cnt, fmt_mem(stats->attr_cnt *
usr.sbin/bgpctl/output.c
1106
stats->attr_refs);
usr.sbin/bgpctl/output.c
1108
stats->attr_dcnt, fmt_mem(stats->attr_data));
usr.sbin/bgpctl/output.c
1110
stats->pend_attr_cnt, fmt_mem(stats->pend_attr_cnt *
usr.sbin/bgpctl/output.c
1113
stats->pend_prefix_cnt, fmt_mem(stats->pend_prefix_cnt *
usr.sbin/bgpctl/output.c
1116
stats->bitmap_cnt, fmt_mem(stats->bitmap_size));
usr.sbin/bgpctl/output.c
1118
stats->hash_cnt, fmt_mem(stats->hash_size));
usr.sbin/bgpctl/output.c
1120
stats->hash_refs);
usr.sbin/bgpctl/output.c
1122
stats->filter_cnt, fmt_mem(stats->filter_size));
usr.sbin/bgpctl/output.c
1124
stats->filter_refs);
usr.sbin/bgpctl/output.c
1126
stats->filter_set_cnt, fmt_mem(stats->filter_set_size));
usr.sbin/bgpctl/output.c
1128
stats->filter_set_refs);
usr.sbin/bgpctl/output.c
1130
"%s of memory\n", stats->aset_nmemb, stats->aset_cnt,
usr.sbin/bgpctl/output.c
1131
fmt_mem(stats->aset_size));
usr.sbin/bgpctl/output.c
1133
stats->pset_cnt, fmt_mem(stats->pset_size));
usr.sbin/bgpctl/output.c
1135
stats->aspa_cnt, fmt_mem(stats->aspa_size));
usr.sbin/bgpctl/output.c
1137
stats->prefix_cnt * sizeof(struct prefix) +
usr.sbin/bgpctl/output.c
1138
stats->adjout_prefix_cnt * sizeof(struct adjout_prefix) +
usr.sbin/bgpctl/output.c
1139
stats->adjout_attr_cnt * sizeof(struct adjout_attr) +
usr.sbin/bgpctl/output.c
1140
stats->pend_prefix_cnt * sizeof(struct pend_prefix) +
usr.sbin/bgpctl/output.c
1141
stats->pend_attr_cnt * sizeof(struct pend_attr) +
usr.sbin/bgpctl/output.c
1142
stats->rib_cnt * sizeof(struct rib_entry) +
usr.sbin/bgpctl/output.c
1143
stats->path_cnt * sizeof(struct rde_aspath) +
usr.sbin/bgpctl/output.c
1144
stats->aspath_size + stats->attr_cnt * sizeof(struct attr) +
usr.sbin/bgpctl/output.c
1145
stats->attr_data + stats->bitmap_size + stats->hash_size));
usr.sbin/bgpctl/output.c
1147
fmt_mem(stats->aset_size + stats->pset_size + stats->aspa_size +
usr.sbin/bgpctl/output.c
1148
stats->filter_set_size));
usr.sbin/bgpctl/output.c
1152
stats->rde_ibufq_msg_count, fmt_mem(stats->rde_ibufq_payload_size));
usr.sbin/bgpctl/output.c
1153
printf("%10lld rib entries queued\n", stats->rde_rib_entry_count);
usr.sbin/bgpctl/output.c
1157
stats->rde_event_loop_usec, stats->rde_event_loop_count);
usr.sbin/bgpctl/output.c
1158
printf("%10lld usec spent on io\n", stats->rde_event_io_usec);
usr.sbin/bgpctl/output.c
1159
printf("%10lld usec spent on peers\n", stats->rde_event_peer_usec);
usr.sbin/bgpctl/output.c
1160
printf("%10lld usec spent on adj-out\n", stats->rde_event_adjout_usec);
usr.sbin/bgpctl/output.c
1162
stats->rde_event_ribdump_usec);
usr.sbin/bgpctl/output.c
1164
stats->rde_event_nexthop_usec);
usr.sbin/bgpctl/output.c
1165
printf("%10lld usec spent on updates\n", stats->rde_event_update_usec);
usr.sbin/bgpctl/output.c
119
p->stats.msg_rcvd_open + p->stats.msg_rcvd_notification +
usr.sbin/bgpctl/output.c
120
p->stats.msg_rcvd_update + p->stats.msg_rcvd_keepalive +
usr.sbin/bgpctl/output.c
121
p->stats.msg_rcvd_rrefresh,
usr.sbin/bgpctl/output.c
122
p->stats.msg_sent_open + p->stats.msg_sent_notification +
usr.sbin/bgpctl/output.c
123
p->stats.msg_sent_update + p->stats.msg_sent_keepalive +
usr.sbin/bgpctl/output.c
124
p->stats.msg_sent_rrefresh,
usr.sbin/bgpctl/output.c
125
p->stats.msg_queue_len,
usr.sbin/bgpctl/output.c
126
fmt_monotime(p->stats.last_updown));
usr.sbin/bgpctl/output.c
128
printf("%6u", p->stats.prefix_cnt);
usr.sbin/bgpctl/output.c
214
p->stats.msg_sent_open, p->stats.msg_rcvd_open);
usr.sbin/bgpctl/output.c
216
p->stats.msg_sent_notification, p->stats.msg_rcvd_notification);
usr.sbin/bgpctl/output.c
218
p->stats.msg_sent_update, p->stats.msg_rcvd_update);
usr.sbin/bgpctl/output.c
220
p->stats.msg_sent_keepalive, p->stats.msg_rcvd_keepalive);
usr.sbin/bgpctl/output.c
222
p->stats.msg_sent_rrefresh, p->stats.msg_rcvd_rrefresh);
usr.sbin/bgpctl/output.c
224
p->stats.msg_sent_open + p->stats.msg_sent_notification +
usr.sbin/bgpctl/output.c
225
p->stats.msg_sent_update + p->stats.msg_sent_keepalive +
usr.sbin/bgpctl/output.c
226
p->stats.msg_sent_rrefresh,
usr.sbin/bgpctl/output.c
227
p->stats.msg_rcvd_open + p->stats.msg_rcvd_notification +
usr.sbin/bgpctl/output.c
228
p->stats.msg_rcvd_update + p->stats.msg_rcvd_keepalive +
usr.sbin/bgpctl/output.c
229
p->stats.msg_rcvd_rrefresh);
usr.sbin/bgpctl/output.c
235
p->stats.prefix_out_cnt, p->stats.prefix_cnt);
usr.sbin/bgpctl/output.c
237
p->stats.prefix_sent_update, p->stats.prefix_rcvd_update,
usr.sbin/bgpctl/output.c
238
p->stats.pending_update);
usr.sbin/bgpctl/output.c
240
p->stats.prefix_sent_withdraw, p->stats.prefix_rcvd_withdraw,
usr.sbin/bgpctl/output.c
241
p->stats.pending_withdraw);
usr.sbin/bgpctl/output.c
243
p->stats.prefix_sent_eor, p->stats.prefix_rcvd_eor);
usr.sbin/bgpctl/output.c
246
p->stats.refresh_sent_req, p->stats.refresh_rcvd_req);
usr.sbin/bgpctl/output.c
248
p->stats.refresh_sent_borr, p->stats.refresh_rcvd_borr);
usr.sbin/bgpctl/output.c
250
p->stats.refresh_sent_eorr, p->stats.refresh_rcvd_eorr);
usr.sbin/bgpctl/output.c
255
p->stats.ibufq_msg_count, p->stats.ibufq_payload_size);
usr.sbin/bgpctl/output.c
257
p->stats.rib_entry_count, "-");
usr.sbin/bgpctl/output.c
328
if (monotime_valid(p->stats.last_updown))
usr.sbin/bgpctl/output.c
331
fmt_monotime(p->stats.last_updown));
usr.sbin/bgpctl/output.c
334
fmt_monotime(p->stats.last_read),
usr.sbin/bgpctl/output.c
336
printf(" Last write %s\n", fmt_monotime(p->stats.last_write));
usr.sbin/bgpctl/output.c
409
errstr = fmt_errstr(p->stats.last_sent_errcode,
usr.sbin/bgpctl/output.c
410
p->stats.last_sent_suberr);
usr.sbin/bgpctl/output.c
413
errstr = fmt_errstr(p->stats.last_rcvd_errcode,
usr.sbin/bgpctl/output.c
414
p->stats.last_rcvd_suberr);
usr.sbin/bgpctl/output.c
417
if (p->stats.last_reason[0]) {
usr.sbin/bgpctl/output.c
419
log_reason(p->stats.last_reason));
usr.sbin/bgpctl/output.c
458
p->stats.msg_sent_open, p->stats.msg_rcvd_open,
usr.sbin/bgpctl/output.c
459
p->stats.msg_sent_notification,
usr.sbin/bgpctl/output.c
460
p->stats.msg_rcvd_notification,
usr.sbin/bgpctl/output.c
461
p->stats.msg_sent_update, p->stats.msg_rcvd_update,
usr.sbin/bgpctl/output.c
462
p->stats.msg_sent_keepalive, p->stats.msg_rcvd_keepalive,
usr.sbin/bgpctl/output.c
463
p->stats.msg_sent_rrefresh, p->stats.msg_rcvd_rrefresh,
usr.sbin/bgpctl/output.c
464
p->stats.prefix_cnt, p->conf.max_prefix,
usr.sbin/bgpctl/output.c
465
p->stats.prefix_sent_update, p->stats.prefix_rcvd_update,
usr.sbin/bgpctl/output.c
466
p->stats.prefix_sent_withdraw,
usr.sbin/bgpctl/output.c
467
p->stats.prefix_rcvd_withdraw, s,
usr.sbin/bgpctl/output_json.c
145
json_do_string("last_read", fmt_monotime(p->stats.last_read));
usr.sbin/bgpctl/output_json.c
146
json_do_int("last_read_sec", get_rel_monotime(p->stats.last_read));
usr.sbin/bgpctl/output_json.c
147
json_do_string("last_write", fmt_monotime(p->stats.last_write));
usr.sbin/bgpctl/output_json.c
148
json_do_int("last_write_sec", get_rel_monotime(p->stats.last_write));
usr.sbin/bgpctl/output_json.c
151
json_do_uint("sent", p->stats.prefix_out_cnt);
usr.sbin/bgpctl/output_json.c
152
json_do_uint("received", p->stats.prefix_cnt);
usr.sbin/bgpctl/output_json.c
158
json_do_uint("open", p->stats.msg_sent_open);
usr.sbin/bgpctl/output_json.c
159
json_do_uint("notifications", p->stats.msg_sent_notification);
usr.sbin/bgpctl/output_json.c
160
json_do_uint("updates", p->stats.msg_sent_update);
usr.sbin/bgpctl/output_json.c
161
json_do_uint("keepalives", p->stats.msg_sent_keepalive);
usr.sbin/bgpctl/output_json.c
162
json_do_uint("route_refresh", p->stats.msg_sent_rrefresh);
usr.sbin/bgpctl/output_json.c
164
p->stats.msg_sent_open + p->stats.msg_sent_notification +
usr.sbin/bgpctl/output_json.c
165
p->stats.msg_sent_update + p->stats.msg_sent_keepalive +
usr.sbin/bgpctl/output_json.c
166
p->stats.msg_sent_rrefresh);
usr.sbin/bgpctl/output_json.c
170
json_do_uint("open", p->stats.msg_rcvd_open);
usr.sbin/bgpctl/output_json.c
171
json_do_uint("notifications", p->stats.msg_rcvd_notification);
usr.sbin/bgpctl/output_json.c
172
json_do_uint("updates", p->stats.msg_rcvd_update);
usr.sbin/bgpctl/output_json.c
173
json_do_uint("keepalives", p->stats.msg_rcvd_keepalive);
usr.sbin/bgpctl/output_json.c
174
json_do_uint("route_refresh", p->stats.msg_rcvd_rrefresh);
usr.sbin/bgpctl/output_json.c
176
p->stats.msg_rcvd_open + p->stats.msg_rcvd_notification +
usr.sbin/bgpctl/output_json.c
177
p->stats.msg_rcvd_update + p->stats.msg_rcvd_keepalive +
usr.sbin/bgpctl/output_json.c
178
p->stats.msg_rcvd_rrefresh);
usr.sbin/bgpctl/output_json.c
186
json_do_uint("updates", p->stats.prefix_sent_update);
usr.sbin/bgpctl/output_json.c
187
json_do_uint("withdraws", p->stats.prefix_sent_withdraw);
usr.sbin/bgpctl/output_json.c
188
json_do_uint("eor", p->stats.prefix_sent_eor);
usr.sbin/bgpctl/output_json.c
192
json_do_uint("updates", p->stats.prefix_rcvd_update);
usr.sbin/bgpctl/output_json.c
193
json_do_uint("withdraws", p->stats.prefix_rcvd_withdraw);
usr.sbin/bgpctl/output_json.c
194
json_do_uint("eor", p->stats.prefix_rcvd_eor);
usr.sbin/bgpctl/output_json.c
198
json_do_uint("updates", p->stats.pending_update);
usr.sbin/bgpctl/output_json.c
199
json_do_uint("withdraws", p->stats.pending_withdraw);
usr.sbin/bgpctl/output_json.c
207
json_do_uint("request", p->stats.refresh_sent_req);
usr.sbin/bgpctl/output_json.c
208
json_do_uint("borr", p->stats.refresh_sent_borr);
usr.sbin/bgpctl/output_json.c
209
json_do_uint("eorr", p->stats.refresh_sent_eorr);
usr.sbin/bgpctl/output_json.c
213
json_do_uint("request", p->stats.refresh_rcvd_req);
usr.sbin/bgpctl/output_json.c
214
json_do_uint("borr", p->stats.refresh_rcvd_borr);
usr.sbin/bgpctl/output_json.c
215
json_do_uint("eorr", p->stats.refresh_rcvd_eorr);
usr.sbin/bgpctl/output_json.c
223
json_do_uint("ibuf_queue", p->stats.ibufq_msg_count);
usr.sbin/bgpctl/output_json.c
224
json_do_uint("rib_entry", p->stats.rib_entry_count);
usr.sbin/bgpctl/output_json.c
227
json_do_uint("ibuf_queue", p->stats.ibufq_payload_size);
usr.sbin/bgpctl/output_json.c
283
if (p->stats.last_reason[0])
usr.sbin/bgpctl/output_json.c
285
log_reason(p->stats.last_reason));
usr.sbin/bgpctl/output_json.c
286
errstr = fmt_errstr(p->stats.last_sent_errcode,
usr.sbin/bgpctl/output_json.c
287
p->stats.last_sent_suberr);
usr.sbin/bgpctl/output_json.c
290
errstr = fmt_errstr(p->stats.last_rcvd_errcode,
usr.sbin/bgpctl/output_json.c
291
p->stats.last_rcvd_suberr);
usr.sbin/bgpctl/output_json.c
349
json_do_string("last_updown", fmt_monotime(p->stats.last_updown));
usr.sbin/bgpctl/output_json.c
350
json_do_int("last_updown_sec", get_rel_monotime(p->stats.last_updown));
usr.sbin/bgpctl/output_json.c
901
json_rib_mem(struct rde_memstats *stats)
usr.sbin/bgpctl/output_json.c
908
if (stats->pt_cnt[i] == 0)
usr.sbin/bgpctl/output_json.c
910
pts += stats->pt_size[i];
usr.sbin/bgpctl/output_json.c
911
json_rib_mem_element(aid_vals[i].name, stats->pt_cnt[i],
usr.sbin/bgpctl/output_json.c
912
stats->pt_size[i], UINT64_MAX);
usr.sbin/bgpctl/output_json.c
914
json_rib_mem_element("rib", stats->rib_cnt,
usr.sbin/bgpctl/output_json.c
915
stats->rib_cnt * sizeof(struct rib_entry), UINT64_MAX);
usr.sbin/bgpctl/output_json.c
916
json_rib_mem_element("prefix", stats->prefix_cnt,
usr.sbin/bgpctl/output_json.c
917
stats->prefix_cnt * sizeof(struct prefix), UINT64_MAX);
usr.sbin/bgpctl/output_json.c
918
json_rib_mem_element("adjout_prefix", stats->adjout_prefix_cnt,
usr.sbin/bgpctl/output_json.c
919
stats->adjout_prefix_size, UINT64_MAX);
usr.sbin/bgpctl/output_json.c
920
json_rib_mem_element("adjout_attr", stats->adjout_attr_cnt,
usr.sbin/bgpctl/output_json.c
921
stats->adjout_attr_cnt * sizeof(struct adjout_attr),
usr.sbin/bgpctl/output_json.c
922
stats->adjout_attr_refs);
usr.sbin/bgpctl/output_json.c
923
json_rib_mem_element("pend_attr", stats->pend_attr_cnt,
usr.sbin/bgpctl/output_json.c
924
stats->pend_attr_cnt * sizeof(struct pend_attr), UINT64_MAX);
usr.sbin/bgpctl/output_json.c
925
json_rib_mem_element("pend_prefix", stats->pend_prefix_cnt,
usr.sbin/bgpctl/output_json.c
926
stats->pend_prefix_cnt * sizeof(struct pend_prefix), UINT64_MAX);
usr.sbin/bgpctl/output_json.c
927
json_rib_mem_element("rde_aspath", stats->path_cnt,
usr.sbin/bgpctl/output_json.c
928
stats->path_cnt * sizeof(struct rde_aspath),
usr.sbin/bgpctl/output_json.c
929
stats->path_refs);
usr.sbin/bgpctl/output_json.c
930
json_rib_mem_element("aspath", stats->aspath_cnt,
usr.sbin/bgpctl/output_json.c
931
stats->aspath_size, UINT64_MAX);
usr.sbin/bgpctl/output_json.c
932
json_rib_mem_element("community_entries", stats->comm_cnt,
usr.sbin/bgpctl/output_json.c
933
stats->comm_cnt * sizeof(struct rde_community), UINT64_MAX);
usr.sbin/bgpctl/output_json.c
934
json_rib_mem_element("community", stats->comm_nmemb,
usr.sbin/bgpctl/output_json.c
935
stats->comm_size * sizeof(struct community), stats->comm_refs);
usr.sbin/bgpctl/output_json.c
936
json_rib_mem_element("attributes_entries", stats->attr_cnt,
usr.sbin/bgpctl/output_json.c
937
stats->attr_cnt * sizeof(struct attr), stats->attr_refs);
usr.sbin/bgpctl/output_json.c
938
json_rib_mem_element("attributes", stats->attr_dcnt,
usr.sbin/bgpctl/output_json.c
939
stats->attr_data, UINT64_MAX);
usr.sbin/bgpctl/output_json.c
940
json_rib_mem_element("bitmaps", stats->bitmap_cnt,
usr.sbin/bgpctl/output_json.c
941
stats->bitmap_size, UINT64_MAX);
usr.sbin/bgpctl/output_json.c
942
json_rib_mem_element("hashtables", stats->hash_cnt,
usr.sbin/bgpctl/output_json.c
943
stats->hash_size, stats->hash_refs);
usr.sbin/bgpctl/output_json.c
945
pts + stats->prefix_cnt * sizeof(struct prefix) +
usr.sbin/bgpctl/output_json.c
946
stats->adjout_prefix_cnt * sizeof(struct adjout_prefix) +
usr.sbin/bgpctl/output_json.c
947
stats->adjout_attr_cnt * sizeof(struct adjout_attr) +
usr.sbin/bgpctl/output_json.c
948
stats->pend_prefix_cnt * sizeof(struct pend_prefix) +
usr.sbin/bgpctl/output_json.c
949
stats->pend_attr_cnt * sizeof(struct pend_attr) +
usr.sbin/bgpctl/output_json.c
950
stats->rib_cnt * sizeof(struct rib_entry) +
usr.sbin/bgpctl/output_json.c
951
stats->path_cnt * sizeof(struct rde_aspath) +
usr.sbin/bgpctl/output_json.c
952
stats->aspath_size + stats->attr_cnt * sizeof(struct attr) +
usr.sbin/bgpctl/output_json.c
953
stats->attr_data + stats->bitmap_size + stats->hash_size,
usr.sbin/bgpctl/output_json.c
958
json_rib_mem_element("filter", stats->filter_cnt,
usr.sbin/bgpctl/output_json.c
959
stats->filter_size, stats->filter_refs);
usr.sbin/bgpctl/output_json.c
960
json_rib_mem_element("filter_set", stats->filter_set_cnt,
usr.sbin/bgpctl/output_json.c
961
stats->filter_set_size, stats->filter_set_refs);
usr.sbin/bgpctl/output_json.c
963
stats->filter_size + stats->filter_set_size, UINT64_MAX);
usr.sbin/bgpctl/output_json.c
967
json_rib_mem_element("as_set", stats->aset_nmemb,
usr.sbin/bgpctl/output_json.c
968
stats->aset_size, UINT64_MAX);
usr.sbin/bgpctl/output_json.c
969
json_rib_mem_element("as_set_tables", stats->aset_cnt, UINT64_MAX,
usr.sbin/bgpctl/output_json.c
971
json_rib_mem_element("prefix_set", stats->pset_cnt, stats->pset_size,
usr.sbin/bgpctl/output_json.c
973
json_rib_mem_element("aspa_set", stats->aspa_cnt, stats->aspa_size,
usr.sbin/bgpctl/output_json.c
976
stats->aset_size + stats->pset_size + stats->aspa_size, UINT64_MAX);
usr.sbin/bgpctl/output_json.c
980
json_rib_mem_element("ibuf_queue", stats->rde_ibufq_msg_count,
usr.sbin/bgpctl/output_json.c
981
stats->rde_ibufq_payload_size, UINT64_MAX);
usr.sbin/bgpctl/output_json.c
982
json_rib_mem_element("rib_entry", stats->rde_rib_entry_count,
usr.sbin/bgpctl/output_json.c
987
json_do_uint("count", stats->rde_event_loop_count);
usr.sbin/bgpctl/output_json.c
988
json_do_uint("loop_usec", stats->rde_event_loop_usec);
usr.sbin/bgpctl/output_json.c
989
json_do_uint("io_usec", stats->rde_event_io_usec);
usr.sbin/bgpctl/output_json.c
990
json_do_uint("peer_usec", stats->rde_event_peer_usec);
usr.sbin/bgpctl/output_json.c
991
json_do_uint("adjout_usec", stats->rde_event_adjout_usec);
usr.sbin/bgpctl/output_json.c
992
json_do_uint("ribdump_usec", stats->rde_event_ribdump_usec);
usr.sbin/bgpctl/output_json.c
993
json_do_uint("nexthop_usec", stats->rde_event_nexthop_usec);
usr.sbin/bgpctl/output_json.c
994
json_do_uint("update_usec", stats->rde_event_update_usec);
usr.sbin/bgpctl/output_ometric.c
218
get_rel_monotime(p->stats.last_updown), ol);
usr.sbin/bgpctl/output_ometric.c
222
get_rel_monotime(p->stats.last_read), ol);
usr.sbin/bgpctl/output_ometric.c
224
get_rel_monotime(p->stats.last_write), ol);
usr.sbin/bgpctl/output_ometric.c
227
ometric_set_int(peer_prefixes_transmit, p->stats.prefix_out_cnt, ol);
usr.sbin/bgpctl/output_ometric.c
228
ometric_set_int(peer_prefixes_receive, p->stats.prefix_cnt, ol);
usr.sbin/bgpctl/output_ometric.c
231
p->stats.msg_sent_open, OKV("messages"), OKV("open"), ol);
usr.sbin/bgpctl/output_ometric.c
233
p->stats.msg_sent_notification, OKV("messages"),
usr.sbin/bgpctl/output_ometric.c
236
p->stats.msg_sent_update, OKV("messages"), OKV("update"), ol);
usr.sbin/bgpctl/output_ometric.c
238
p->stats.msg_sent_keepalive, OKV("messages"), OKV("keepalive"), ol);
usr.sbin/bgpctl/output_ometric.c
240
p->stats.msg_sent_rrefresh, OKV("messages"), OKV("route_refresh"),
usr.sbin/bgpctl/output_ometric.c
244
p->stats.msg_rcvd_open, OKV("messages"), OKV("open"), ol);
usr.sbin/bgpctl/output_ometric.c
246
p->stats.msg_rcvd_notification, OKV("messages"),
usr.sbin/bgpctl/output_ometric.c
249
p->stats.msg_rcvd_update, OKV("messages"), OKV("update"), ol);
usr.sbin/bgpctl/output_ometric.c
251
p->stats.msg_rcvd_keepalive, OKV("messages"), OKV("keepalive"), ol);
usr.sbin/bgpctl/output_ometric.c
253
p->stats.msg_rcvd_rrefresh, OKV("messages"), OKV("route_refresh"),
usr.sbin/bgpctl/output_ometric.c
256
ometric_set_int(peer_update_transmit, p->stats.prefix_sent_update, ol);
usr.sbin/bgpctl/output_ometric.c
257
ometric_set_int(peer_update_pending, p->stats.pending_update, ol);
usr.sbin/bgpctl/output_ometric.c
258
ometric_set_int(peer_update_receive, p->stats.prefix_rcvd_update, ol);
usr.sbin/bgpctl/output_ometric.c
259
ometric_set_int(peer_withdraw_transmit, p->stats.prefix_sent_withdraw,
usr.sbin/bgpctl/output_ometric.c
261
ometric_set_int(peer_withdraw_pending, p->stats.pending_withdraw, ol);
usr.sbin/bgpctl/output_ometric.c
262
ometric_set_int(peer_withdraw_receive, p->stats.prefix_rcvd_withdraw,
usr.sbin/bgpctl/output_ometric.c
265
ometric_set_int(peer_rr_req_transmit, p->stats.refresh_sent_req, ol);
usr.sbin/bgpctl/output_ometric.c
266
ometric_set_int(peer_rr_req_receive, p->stats.refresh_rcvd_req, ol);
usr.sbin/bgpctl/output_ometric.c
267
ometric_set_int(peer_rr_borr_transmit, p->stats.refresh_sent_borr, ol);
usr.sbin/bgpctl/output_ometric.c
268
ometric_set_int(peer_rr_borr_receive, p->stats.refresh_rcvd_borr, ol);
usr.sbin/bgpctl/output_ometric.c
269
ometric_set_int(peer_rr_eorr_transmit, p->stats.refresh_sent_eorr, ol);
usr.sbin/bgpctl/output_ometric.c
270
ometric_set_int(peer_rr_eorr_receive, p->stats.refresh_rcvd_eorr, ol);
usr.sbin/bgpctl/output_ometric.c
272
ometric_set_int_with_labels(peer_queue_count, p->stats.ibufq_msg_count,
usr.sbin/bgpctl/output_ometric.c
274
ometric_set_int_with_labels(peer_queue_count, p->stats.rib_entry_count,
usr.sbin/bgpctl/output_ometric.c
277
p->stats.ibufq_payload_size, OKV("type"), OKV("ibuf_queue"), ol);
usr.sbin/bgpctl/output_ometric.c
299
ometric_rib_mem(struct rde_memstats *stats)
usr.sbin/bgpctl/output_ometric.c
305
if (stats->pt_cnt[i] == 0)
usr.sbin/bgpctl/output_ometric.c
307
pts += stats->pt_size[i];
usr.sbin/bgpctl/output_ometric.c
308
ometric_rib_mem_element(aid_vals[i].name, stats->pt_cnt[i],
usr.sbin/bgpctl/output_ometric.c
309
stats->pt_size[i], UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
311
ometric_rib_mem_element("rib", stats->rib_cnt,
usr.sbin/bgpctl/output_ometric.c
312
stats->rib_cnt * sizeof(struct rib_entry), UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
313
ometric_rib_mem_element("prefix", stats->prefix_cnt,
usr.sbin/bgpctl/output_ometric.c
314
stats->prefix_cnt * sizeof(struct prefix), UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
315
ometric_rib_mem_element("adjout_prefix", stats->adjout_prefix_cnt,
usr.sbin/bgpctl/output_ometric.c
316
stats->adjout_prefix_size, UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
317
ometric_rib_mem_element("pend_attr", stats->pend_attr_cnt,
usr.sbin/bgpctl/output_ometric.c
318
stats->pend_attr_cnt * sizeof(struct pend_attr), UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
319
ometric_rib_mem_element("pend_prefix", stats->pend_prefix_cnt,
usr.sbin/bgpctl/output_ometric.c
320
stats->pend_prefix_cnt * sizeof(struct pend_prefix), UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
321
ometric_rib_mem_element("adjout_attr", stats->adjout_attr_cnt,
usr.sbin/bgpctl/output_ometric.c
322
stats->adjout_attr_cnt * sizeof(struct adjout_attr),
usr.sbin/bgpctl/output_ometric.c
323
stats->adjout_attr_refs);
usr.sbin/bgpctl/output_ometric.c
324
ometric_rib_mem_element("rde_aspath", stats->path_cnt,
usr.sbin/bgpctl/output_ometric.c
325
stats->path_cnt * sizeof(struct rde_aspath),
usr.sbin/bgpctl/output_ometric.c
326
stats->path_refs);
usr.sbin/bgpctl/output_ometric.c
327
ometric_rib_mem_element("aspath", stats->aspath_cnt,
usr.sbin/bgpctl/output_ometric.c
328
stats->aspath_size, UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
329
ometric_rib_mem_element("community_entries", stats->comm_cnt,
usr.sbin/bgpctl/output_ometric.c
330
stats->comm_cnt * sizeof(struct rde_community), UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
331
ometric_rib_mem_element("community", stats->comm_nmemb,
usr.sbin/bgpctl/output_ometric.c
332
stats->comm_size * sizeof(struct community), stats->comm_refs);
usr.sbin/bgpctl/output_ometric.c
333
ometric_rib_mem_element("attributes_entries", stats->attr_cnt,
usr.sbin/bgpctl/output_ometric.c
334
stats->attr_cnt * sizeof(struct attr), stats->attr_refs);
usr.sbin/bgpctl/output_ometric.c
335
ometric_rib_mem_element("attributes", stats->attr_dcnt,
usr.sbin/bgpctl/output_ometric.c
336
stats->attr_data, UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
337
ometric_rib_mem_element("bitmap", stats->bitmap_cnt,
usr.sbin/bgpctl/output_ometric.c
338
stats->bitmap_size, UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
339
ometric_rib_mem_element("hashtable", stats->hash_cnt,
usr.sbin/bgpctl/output_ometric.c
340
stats->hash_size, stats->hash_refs);
usr.sbin/bgpctl/output_ometric.c
343
pts + stats->prefix_cnt * sizeof(struct prefix) +
usr.sbin/bgpctl/output_ometric.c
344
stats->adjout_prefix_cnt * sizeof(struct adjout_prefix) +
usr.sbin/bgpctl/output_ometric.c
345
stats->adjout_attr_cnt * sizeof(struct adjout_attr) +
usr.sbin/bgpctl/output_ometric.c
346
stats->pend_prefix_cnt * sizeof(struct pend_prefix) +
usr.sbin/bgpctl/output_ometric.c
347
stats->pend_attr_cnt * sizeof(struct pend_attr) +
usr.sbin/bgpctl/output_ometric.c
348
stats->rib_cnt * sizeof(struct rib_entry) +
usr.sbin/bgpctl/output_ometric.c
349
stats->path_cnt * sizeof(struct rde_aspath) +
usr.sbin/bgpctl/output_ometric.c
350
stats->aspath_size + stats->attr_cnt * sizeof(struct attr) +
usr.sbin/bgpctl/output_ometric.c
351
stats->attr_data + stats->bitmap_size + stats->hash_size,
usr.sbin/bgpctl/output_ometric.c
354
ometric_rib_mem_element("filter", stats->filter_cnt,
usr.sbin/bgpctl/output_ometric.c
355
stats->filter_size, stats->filter_refs);
usr.sbin/bgpctl/output_ometric.c
356
ometric_rib_mem_element("filter_set", stats->filter_set_cnt,
usr.sbin/bgpctl/output_ometric.c
357
stats->filter_set_size, stats->filter_set_refs);
usr.sbin/bgpctl/output_ometric.c
359
stats->filter_size + stats->filter_set_size, UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
361
ometric_set_int(rde_table_count, stats->aset_cnt, NULL);
usr.sbin/bgpctl/output_ometric.c
363
ometric_set_int_with_labels(rde_set_size, stats->aset_size,
usr.sbin/bgpctl/output_ometric.c
365
ometric_set_int_with_labels(rde_set_count, stats->aset_nmemb,
usr.sbin/bgpctl/output_ometric.c
367
ometric_set_int_with_labels(rde_set_size, stats->pset_size,
usr.sbin/bgpctl/output_ometric.c
369
ometric_set_int_with_labels(rde_set_size, stats->aspa_size,
usr.sbin/bgpctl/output_ometric.c
371
ometric_set_int_with_labels(rde_set_count, stats->pset_cnt,
usr.sbin/bgpctl/output_ometric.c
373
ometric_set_int_with_labels(rde_set_count, stats->aspa_cnt,
usr.sbin/bgpctl/output_ometric.c
376
stats->aset_size + stats->pset_size + stats->aspa_size, UINT64_MAX);
usr.sbin/bgpctl/output_ometric.c
378
ometric_set_int_with_labels(rde_queue_count, stats->rde_ibufq_msg_count,
usr.sbin/bgpctl/output_ometric.c
380
ometric_set_int_with_labels(rde_queue_count, stats->rde_rib_entry_count,
usr.sbin/bgpctl/output_ometric.c
383
stats->rde_ibufq_payload_size, OKV("type"), OKV("ibuf_queue"),
usr.sbin/bgpctl/output_ometric.c
386
ometric_set_int(rde_evloop_count, stats->rde_event_loop_count, NULL);
usr.sbin/bgpctl/output_ometric.c
388
(double)stats->rde_event_loop_usec / (1000.0 * 1000.0) ,
usr.sbin/bgpctl/output_ometric.c
391
(double)stats->rde_event_io_usec / (1000.0 * 1000.0) ,
usr.sbin/bgpctl/output_ometric.c
394
(double)stats->rde_event_peer_usec / (1000.0 * 1000.0) ,
usr.sbin/bgpctl/output_ometric.c
397
(double)stats->rde_event_adjout_usec / (1000.0 * 1000.0) ,
usr.sbin/bgpctl/output_ometric.c
400
(double)stats->rde_event_ribdump_usec / (1000.0 * 1000.0) ,
usr.sbin/bgpctl/output_ometric.c
403
(double)stats->rde_event_nexthop_usec / (1000.0 * 1000.0) ,
usr.sbin/bgpctl/output_ometric.c
406
(double)stats->rde_event_update_usec / (1000.0 * 1000.0) ,
usr.sbin/bgpd/chash.c
902
_ch_get_stats(struct ch_stats *stats, const struct ch_counts *counts)
usr.sbin/bgpd/chash.c
904
stats->cs_num_elm = counts->cc_num_elm;
usr.sbin/bgpd/chash.c
905
stats->cs_num_tables = counts->cc_num_tables;
usr.sbin/bgpd/chash.c
906
stats->cs_num_extendible = counts->cc_num_extendible;
usr.sbin/bgpd/chash.c
907
stats->cs_max_elm = counts->cc_num_tables * CH_H2_SIZE * 7;
usr.sbin/bgpd/chash.c
908
stats->cs_size_tables = counts->cc_num_tables *
usr.sbin/bgpd/chash.c
910
stats->cs_size_extendible = stats->cs_num_extendible *
usr.sbin/bgpd/chash.h
156
_name##_CH_STATS(struct _name *head, struct ch_stats *stats) \
usr.sbin/bgpd/chash.h
158
_ch_get_stats(stats, &head->ch_table.ch_counts); \
usr.sbin/bgpd/chash.h
162
_name##_CH_GLOBAL_STATS(struct ch_stats *stats) \
usr.sbin/bgpd/chash.h
164
_ch_get_stats(stats, _name##_CH_TYPE->t_counts); \
usr.sbin/bgpd/control.c
560
struct rde_peer_stats stats;
usr.sbin/bgpd/control.c
567
if (imsg_get_data(imsg, &stats, sizeof(stats)) == -1)
usr.sbin/bgpd/control.c
573
peer.stats.prefix_cnt = stats.prefix_cnt;
usr.sbin/bgpd/control.c
574
peer.stats.prefix_out_cnt = stats.prefix_out_cnt;
usr.sbin/bgpd/control.c
575
peer.stats.prefix_rcvd_update = stats.prefix_rcvd_update;
usr.sbin/bgpd/control.c
576
peer.stats.prefix_rcvd_withdraw = stats.prefix_rcvd_withdraw;
usr.sbin/bgpd/control.c
577
peer.stats.prefix_rcvd_eor = stats.prefix_rcvd_eor;
usr.sbin/bgpd/control.c
578
peer.stats.prefix_sent_update = stats.prefix_sent_update;
usr.sbin/bgpd/control.c
579
peer.stats.prefix_sent_withdraw = stats.prefix_sent_withdraw;
usr.sbin/bgpd/control.c
580
peer.stats.prefix_sent_eor = stats.prefix_sent_eor;
usr.sbin/bgpd/control.c
581
peer.stats.pending_update = stats.pending_update;
usr.sbin/bgpd/control.c
582
peer.stats.pending_withdraw = stats.pending_withdraw;
usr.sbin/bgpd/control.c
583
peer.stats.rib_entry_count = stats.rib_entry_count;
usr.sbin/bgpd/control.c
584
peer.stats.ibufq_msg_count = stats.ibufq_msg_count;
usr.sbin/bgpd/control.c
585
peer.stats.ibufq_payload_size = stats.ibufq_payload_size;
usr.sbin/bgpd/control.c
586
peer.stats.msg_queue_len = msgbuf_queuelen(p->wbuf);
usr.sbin/bgpd/rde.c
1989
peer->stats.prefix_rcvd_update++;
usr.sbin/bgpd/rde.c
2000
peer->stats.prefix_cnt++;
usr.sbin/bgpd/rde.c
2004
peer->stats.prefix_cnt > peer->conf.max_prefix) {
usr.sbin/bgpd/rde.c
2006
peer->stats.prefix_cnt, peer->conf.max_prefix);
usr.sbin/bgpd/rde.c
2063
peer->stats.prefix_cnt--;
usr.sbin/bgpd/rde.c
2065
peer->stats.prefix_rcvd_withdraw++;
usr.sbin/bgpd/rde.c
3928
peer->stats.prefix_cnt > peer->conf.max_prefix) {
usr.sbin/bgpd/rde.c
3931
peer->stats.prefix_cnt, peer->conf.max_prefix);
usr.sbin/bgpd/rde.c
3937
peer->stats.prefix_out_cnt > peer->conf.max_out_prefix) {
usr.sbin/bgpd/rde.c
3940
peer->stats.prefix_out_cnt,
usr.sbin/bgpd/rde.c
404
struct ch_stats stats;
usr.sbin/bgpd/rde.c
406
attr_stats(&stats);
usr.sbin/bgpd/rde.c
407
*cnt = stats.cs_num_tables;
usr.sbin/bgpd/rde.c
408
*size = stats.cs_size_tables + stats.cs_size_extendible;
usr.sbin/bgpd/rde.c
409
*refs = stats.cs_num_elm;
usr.sbin/bgpd/rde.c
411
path_stats(&stats);
usr.sbin/bgpd/rde.c
412
*cnt += stats.cs_num_tables;
usr.sbin/bgpd/rde.c
413
*size += stats.cs_size_tables + stats.cs_size_extendible;
usr.sbin/bgpd/rde.c
414
*refs += stats.cs_num_elm;
usr.sbin/bgpd/rde.c
416
communities_stats(&stats);
usr.sbin/bgpd/rde.c
417
*cnt += stats.cs_num_tables;
usr.sbin/bgpd/rde.c
418
*size += stats.cs_size_tables + stats.cs_size_extendible;
usr.sbin/bgpd/rde.c
419
*refs += stats.cs_num_elm;
usr.sbin/bgpd/rde.c
421
rde_filtertable_stats(&stats);
usr.sbin/bgpd/rde.c
422
*cnt += stats.cs_num_tables;
usr.sbin/bgpd/rde.c
423
*size += stats.cs_size_tables + stats.cs_size_extendible;
usr.sbin/bgpd/rde.c
424
*refs += stats.cs_num_elm;
usr.sbin/bgpd/rde.c
426
rde_filterset_stats(&stats);
usr.sbin/bgpd/rde.c
427
*cnt += stats.cs_num_tables;
usr.sbin/bgpd/rde.c
428
*size += stats.cs_size_tables + stats.cs_size_extendible;
usr.sbin/bgpd/rde.c
429
*refs += stats.cs_num_elm;
usr.sbin/bgpd/rde.c
431
pend_attr_stats(&stats);
usr.sbin/bgpd/rde.c
432
*cnt += stats.cs_num_tables;
usr.sbin/bgpd/rde.c
433
*size += stats.cs_size_tables + stats.cs_size_extendible;
usr.sbin/bgpd/rde.c
434
*refs += stats.cs_num_elm;
usr.sbin/bgpd/rde.c
436
pend_prefix_stats(&stats);
usr.sbin/bgpd/rde.c
437
*cnt += stats.cs_num_tables;
usr.sbin/bgpd/rde.c
438
*size += stats.cs_size_tables + stats.cs_size_extendible;
usr.sbin/bgpd/rde.c
439
*refs += stats.cs_num_elm;
usr.sbin/bgpd/rde.c
441
adjout_attr_stats(&stats);
usr.sbin/bgpd/rde.c
442
*cnt += stats.cs_num_tables;
usr.sbin/bgpd/rde.c
443
*size += stats.cs_size_tables + stats.cs_size_extendible;
usr.sbin/bgpd/rde.c
444
*refs += stats.cs_num_elm;
usr.sbin/bgpd/rde.c
4543
peer->stats.prefix_rcvd_eor++;
usr.sbin/bgpd/rde.c
4568
peer->stats.prefix_sent_eor++;
usr.sbin/bgpd/rde.c
457
struct rde_peer_stats stats;
usr.sbin/bgpd/rde.c
4713
peerself->stats.prefix_cnt++;
usr.sbin/bgpd/rde.c
4788
peerself->stats.prefix_cnt--;
usr.sbin/bgpd/rde.c
4849
peerself->stats.prefix_cnt--;
usr.sbin/bgpd/rde.c
4871
peerself->stats.prefix_cnt++;
usr.sbin/bgpd/rde.c
4884
peerself->stats.prefix_cnt--;
usr.sbin/bgpd/rde.c
4898
peerself->stats.prefix_cnt--;
usr.sbin/bgpd/rde.c
783
memcpy(&stats, &peer->stats, sizeof(stats));
usr.sbin/bgpd/rde.c
785
memset(&stats, 0, sizeof(stats));
usr.sbin/bgpd/rde.c
787
peerid, pid, -1, &stats, sizeof(stats));
usr.sbin/bgpd/rde.h
91
struct rde_peer_stats stats;
usr.sbin/bgpd/rde_adjout.c
130
pend_attr_stats(struct ch_stats *stats)
usr.sbin/bgpd/rde_adjout.c
132
CH_GLOBAL_STATS(pend_attr_hash, stats);
usr.sbin/bgpd/rde_adjout.c
174
peer->stats.pending_withdraw--;
usr.sbin/bgpd/rde_adjout.c
176
peer->stats.pending_update--;
usr.sbin/bgpd/rde_adjout.c
210
peer->stats.pending_withdraw++;
usr.sbin/bgpd/rde_adjout.c
213
peer->stats.pending_update++;
usr.sbin/bgpd/rde_adjout.c
262
pend_prefix_stats(struct ch_stats *stats)
usr.sbin/bgpd/rde_adjout.c
264
CH_GLOBAL_STATS(pend_prefix_hash, stats);
usr.sbin/bgpd/rde_adjout.c
401
adjout_attr_stats(struct ch_stats *stats)
usr.sbin/bgpd/rde_adjout.c
403
CH_GLOBAL_STATS(adjout_attr_tree, stats);
usr.sbin/bgpd/rde_adjout.c
560
peer->stats.prefix_out_cnt--;
usr.sbin/bgpd/rde_adjout.c
565
peer->stats.prefix_out_cnt++;
usr.sbin/bgpd/rde_adjout.c
586
peer->stats.prefix_out_cnt--;
usr.sbin/bgpd/rde_attr.c
321
attr_stats(struct ch_stats *stats)
usr.sbin/bgpd/rde_attr.c
323
CH_GLOBAL_STATS(attr_tree, stats);
usr.sbin/bgpd/rde_community.c
673
communities_stats(struct ch_stats *stats)
usr.sbin/bgpd/rde_community.c
675
CH_GLOBAL_STATS(comm_tree, stats);
usr.sbin/bgpd/rde_filter.c
1016
rde_filterset_stats(struct ch_stats *stats)
usr.sbin/bgpd/rde_filter.c
1018
CH_GLOBAL_STATS(rde_filterset, stats);
usr.sbin/bgpd/rde_filter.c
573
rde_filtertable_stats(struct ch_stats *stats)
usr.sbin/bgpd/rde_filter.c
575
CH_GLOBAL_STATS(rde_filtertable, stats);
usr.sbin/bgpd/rde_peer.c
340
peer->stats.rib_entry_count--;
usr.sbin/bgpd/rde_peer.c
350
peer->stats.rib_entry_count++;
usr.sbin/bgpd/rde_peer.c
365
peer->stats.rib_entry_count--;
usr.sbin/bgpd/rde_peer.c
421
peer->stats.prefix_cnt--;
usr.sbin/bgpd/rde_peer.c
508
peer->stats.prefix_cnt = 0;
usr.sbin/bgpd/rde_peer.c
544
peerself->stats.rib_entry_count += peer->stats.rib_entry_count;
usr.sbin/bgpd/rde_peer.c
545
peer->stats.rib_entry_count = 0;
usr.sbin/bgpd/rde_peer.c
753
peer->stats.ibufq_msg_count++;
usr.sbin/bgpd/rde_peer.c
755
peer->stats.ibufq_payload_size += imsg_get_len(imsg);
usr.sbin/bgpd/rde_peer.c
772
peer->stats.ibufq_msg_count--;
usr.sbin/bgpd/rde_peer.c
774
peer->stats.ibufq_payload_size -= imsg_get_len(imsg);
usr.sbin/bgpd/rde_peer.c
790
rdemem.rde_ibufq_msg_count -= peer->stats.ibufq_msg_count;
usr.sbin/bgpd/rde_peer.c
791
rdemem.rde_ibufq_payload_size -= peer->stats.ibufq_payload_size;
usr.sbin/bgpd/rde_peer.c
792
peer->stats.ibufq_msg_count = 0;
usr.sbin/bgpd/rde_peer.c
793
peer->stats.ibufq_payload_size = 0;
usr.sbin/bgpd/rde_rib.c
811
path_stats(struct ch_stats *stats)
usr.sbin/bgpd/rde_rib.c
813
CH_GLOBAL_STATS(path_tree, stats);
usr.sbin/bgpd/rde_update.c
209
peer->stats.prefix_out_cnt > peer->conf.max_out_prefix) {
usr.sbin/bgpd/rde_update.c
212
peer->stats.prefix_out_cnt, peer->conf.max_out_prefix);
usr.sbin/bgpd/rde_update.c
455
peer->stats.prefix_out_cnt > peer->conf.max_out_prefix) {
usr.sbin/bgpd/rde_update.c
458
peer->stats.prefix_out_cnt, peer->conf.max_out_prefix);
usr.sbin/bgpd/rde_update.c
853
peer->stats.prefix_sent_withdraw++;
usr.sbin/bgpd/rde_update.c
855
peer->stats.prefix_sent_update++;
usr.sbin/bgpd/session.c
1729
peer->stats.last_updown = getmonotime();
usr.sbin/bgpd/session.c
1749
p->stats.last_sent_errcode = 0;
usr.sbin/bgpd/session.c
1750
p->stats.last_sent_suberr = 0;
usr.sbin/bgpd/session.c
1751
p->stats.last_rcvd_errcode = 0;
usr.sbin/bgpd/session.c
1752
p->stats.last_rcvd_suberr = 0;
usr.sbin/bgpd/session.c
1753
memset(p->stats.last_reason, 0, sizeof(p->stats.last_reason));
usr.sbin/bgpd/session.c
1777
p->stats.last_updown = getmonotime();
usr.sbin/bgpd/session.c
604
p->stats.last_updown = getmonotime();
usr.sbin/bgpd/session.c
671
p->stats.last_write = getmonotime();
usr.sbin/bgpd/session.c
690
p->stats.last_read = getmonotime();
usr.sbin/bgpd/session.h
201
struct peer_stats stats;
usr.sbin/bgpd/session_bgp.c
1110
peer->stats.refresh_rcvd_req++;
usr.sbin/bgpd/session_bgp.c
1126
peer->stats.refresh_rcvd_borr++;
usr.sbin/bgpd/session_bgp.c
1128
peer->stats.refresh_rcvd_eorr++;
usr.sbin/bgpd/session_bgp.c
1138
peer->stats.refresh_rcvd_req++;
usr.sbin/bgpd/session_bgp.c
1190
peer->stats.last_rcvd_errcode = errcode;
usr.sbin/bgpd/session_bgp.c
1191
peer->stats.last_rcvd_suberr = subcode;
usr.sbin/bgpd/session_bgp.c
1195
CTASSERT(sizeof(peer->stats.last_reason) > UINT8_MAX);
usr.sbin/bgpd/session_bgp.c
1196
memset(peer->stats.last_reason, 0, sizeof(peer->stats.last_reason));
usr.sbin/bgpd/session_bgp.c
1202
if (ibuf_get(msg, peer->stats.last_reason,
usr.sbin/bgpd/session_bgp.c
1246
p->stats.msg_rcvd_open++;
usr.sbin/bgpd/session_bgp.c
1250
p->stats.msg_rcvd_update++;
usr.sbin/bgpd/session_bgp.c
1254
p->stats.msg_rcvd_notification++;
usr.sbin/bgpd/session_bgp.c
1258
p->stats.msg_rcvd_keepalive++;
usr.sbin/bgpd/session_bgp.c
1262
p->stats.msg_rcvd_rrefresh++;
usr.sbin/bgpd/session_bgp.c
350
p->stats.msg_sent_open++;
usr.sbin/bgpd/session_bgp.c
365
p->stats.msg_sent_keepalive++;
usr.sbin/bgpd/session_bgp.c
399
p->stats.msg_sent_update++;
usr.sbin/bgpd/session_bgp.c
514
p->stats.msg_sent_notification++;
usr.sbin/bgpd/session_bgp.c
515
p->stats.last_sent_errcode = errcode;
usr.sbin/bgpd/session_bgp.c
516
p->stats.last_sent_suberr = subcode;
usr.sbin/bgpd/session_bgp.c
545
p->stats.refresh_sent_req++;
usr.sbin/bgpd/session_bgp.c
553
p->stats.refresh_sent_borr++;
usr.sbin/bgpd/session_bgp.c
555
p->stats.refresh_sent_eorr++;
usr.sbin/bgpd/session_bgp.c
580
p->stats.msg_sent_rrefresh++;
usr.sbin/eigrpctl/eigrpctl.c
839
cs->stats.hellos_sent, cs->stats.hellos_recv);
usr.sbin/eigrpctl/eigrpctl.c
841
cs->stats.updates_sent, cs->stats.updates_recv);
usr.sbin/eigrpctl/eigrpctl.c
843
cs->stats.queries_sent, cs->stats.queries_recv);
usr.sbin/eigrpctl/eigrpctl.c
845
cs->stats.replies_sent, cs->stats.replies_recv);
usr.sbin/eigrpctl/eigrpctl.c
847
cs->stats.acks_sent, cs->stats.acks_recv);
usr.sbin/eigrpctl/eigrpctl.c
849
cs->stats.squeries_sent, cs->stats.squeries_recv);
usr.sbin/eigrpctl/eigrpctl.c
851
cs->stats.sreplies_sent, cs->stats.sreplies_recv);
usr.sbin/eigrpd/eigrpd.h
304
struct eigrp_stats stats;
usr.sbin/eigrpd/eigrpd.h
438
struct eigrp_stats stats;
usr.sbin/eigrpd/eigrpe.c
685
sctl.stats = eigrp->stats;
usr.sbin/eigrpd/packet.c
227
ei->eigrp->stats.hellos_sent++;
usr.sbin/eigrpd/packet.c
229
ei->eigrp->stats.acks_sent++;
usr.sbin/eigrpd/packet.c
232
ei->eigrp->stats.updates_sent++;
usr.sbin/eigrpd/packet.c
235
ei->eigrp->stats.queries_sent++;
usr.sbin/eigrpd/packet.c
238
ei->eigrp->stats.replies_sent++;
usr.sbin/eigrpd/packet.c
241
ei->eigrp->stats.squeries_sent++;
usr.sbin/eigrpd/packet.c
244
ei->eigrp->stats.sreplies_sent++;
usr.sbin/eigrpd/packet.c
443
ei->eigrp->stats.hellos_recv++;
usr.sbin/eigrpd/packet.c
445
ei->eigrp->stats.acks_recv++;
usr.sbin/eigrpd/packet.c
449
ei->eigrp->stats.updates_recv++;
usr.sbin/eigrpd/packet.c
453
ei->eigrp->stats.queries_recv++;
usr.sbin/eigrpd/packet.c
457
ei->eigrp->stats.replies_recv++;
usr.sbin/eigrpd/packet.c
461
ei->eigrp->stats.squeries_recv++;
usr.sbin/eigrpd/packet.c
465
ei->eigrp->stats.sreplies_recv++;
usr.sbin/iscsid/vscsi.c
154
v.stats.cnt_read++;
usr.sbin/iscsid/vscsi.c
155
v.stats.bytes_rd += len;
usr.sbin/iscsid/vscsi.c
157
v.stats.cnt_write++;
usr.sbin/iscsid/vscsi.c
158
v.stats.bytes_wr += len;
usr.sbin/iscsid/vscsi.c
173
v.stats.cnt_t2i++;
usr.sbin/iscsid/vscsi.c
174
if (status < (int)nitems(v.stats.cnt_t2i_status))
usr.sbin/iscsid/vscsi.c
175
v.stats.cnt_t2i_status[status]++;
usr.sbin/iscsid/vscsi.c
196
v.stats.cnt_probe++;
usr.sbin/iscsid/vscsi.c
198
v.stats.cnt_detach++;
usr.sbin/iscsid/vscsi.c
339
return &v.stats;
usr.sbin/iscsid/vscsi.c
39
struct vscsi_stats stats;
usr.sbin/iscsid/vscsi.c
82
v.stats.cnt_i2t++;
usr.sbin/iscsid/vscsi.c
83
if (i2t.direction < (int)nitems(v.stats.cnt_i2t_dir))
usr.sbin/iscsid/vscsi.c
84
v.stats.cnt_i2t_dir[i2t.direction]++;
usr.sbin/ldapd/auth.c
408
++stats.req_bind;
usr.sbin/ldapd/conn.c
147
++stats.requests;
usr.sbin/ldapd/conn.c
325
++stats.conns;
usr.sbin/ldapd/conn.c
84
--stats.conns;
usr.sbin/ldapd/control.c
205
&stats, sizeof(stats));
usr.sbin/ldapd/ldapd.c
185
stats.started_at = time(0);
usr.sbin/ldapd/ldapd.c
56
struct ldapd_stats stats;
usr.sbin/ldapd/ldapd.h
336
extern struct ldapd_stats stats;
usr.sbin/ldapd/modify.c
136
++stats.req_mod;
usr.sbin/ldapd/modify.c
248
++stats.req_mod;
usr.sbin/ldapd/modify.c
42
++stats.req_mod;
usr.sbin/ldapd/search.c
1004
++stats.unindexed;
usr.sbin/ldapd/search.c
198
--stats.searches;
usr.sbin/ldapd/search.c
473
++stats.timeouts;
usr.sbin/ldapd/search.c
567
ober_add_string(val, ldap_strftime(stats.started_at));
usr.sbin/ldapd/search.c
572
ober_add_string(val, ldap_strftime(stats.started_at));
usr.sbin/ldapd/search.c
855
if (stats.searches > MAX_SEARCHES) {
usr.sbin/ldapd/search.c
861
++stats.searches;
usr.sbin/ldapd/search.c
862
++stats.req_search;
usr.sbin/nsd/remote.c
3234
process_stats_alloc(struct xfrd_state* xfrd, struct nsdst** stats,
usr.sbin/nsd/remote.c
3237
*stats = xmallocarray(xfrd->nsd->child_count*2, sizeof(struct nsdst));
usr.sbin/nsd/remote.c
3248
struct nsdst* stats, struct nsdst** zonestats)
usr.sbin/nsd/remote.c
3252
memcpy(stats, xfrd->nsd->stat_map,
usr.sbin/nsd/remote.c
3265
process_stats_add_old_new(struct xfrd_state* xfrd, struct nsdst* stats)
usr.sbin/nsd/remote.c
3268
uint64_t dbd = stats[0].db_disk;
usr.sbin/nsd/remote.c
3269
uint64_t dbm = stats[0].db_mem;
usr.sbin/nsd/remote.c
3273
count1 = stats[0].reloadcount;
usr.sbin/nsd/remote.c
3274
count2 = stats[xfrd->nsd->child_count+0].reloadcount;
usr.sbin/nsd/remote.c
3278
dbd = stats[xfrd->nsd->child_count+0].db_disk;
usr.sbin/nsd/remote.c
3279
dbm = stats[xfrd->nsd->child_count+0].db_mem;
usr.sbin/nsd/remote.c
3287
stats_add(&stats[i], &stats[xfrd->nsd->child_count+i]);
usr.sbin/nsd/remote.c
3289
stats[0].db_disk = dbd;
usr.sbin/nsd/remote.c
3290
stats[0].db_mem = dbm;
usr.sbin/nsd/remote.c
3294
process_stats_manage_clear(struct xfrd_state* xfrd, struct nsdst* stats,
usr.sbin/nsd/remote.c
3306
stats_subtract(&stats[i], &xfrd->stat_clear[i]);
usr.sbin/nsd/remote.c
3315
memcpy(&st, &stats[i], sizeof(st));
usr.sbin/nsd/remote.c
3317
stats_subtract(&stats[i], &xfrd->stat_clear[i]);
usr.sbin/nsd/remote.c
3325
struct nsdst* stats)
usr.sbin/nsd/remote.c
3329
memcpy(total, &stats[0], sizeof(*total));
usr.sbin/nsd/remote.c
3330
xfrd->nsd->children[0].query_count = stats[0].qudp + stats[0].qudp6
usr.sbin/nsd/remote.c
3331
+ stats[0].ctcp + stats[0].ctcp6 + stats[0].ctls
usr.sbin/nsd/remote.c
3332
+ stats[0].ctls6;
usr.sbin/nsd/remote.c
3334
stats_add(total, &stats[i]);
usr.sbin/nsd/remote.c
3335
xfrd->nsd->children[i].query_count = stats[i].qudp
usr.sbin/nsd/remote.c
3336
+ stats[i].qudp6 + stats[i].ctcp + stats[i].ctcp6
usr.sbin/nsd/remote.c
3337
+ stats[i].ctls + stats[i].ctls6;
usr.sbin/nsd/remote.c
3345
struct nsdst* stats, *zonestats[2], total;
usr.sbin/nsd/remote.c
3351
process_stats_alloc(xfrd, &stats, zonestats);
usr.sbin/nsd/remote.c
3352
process_stats_grab(xfrd, &stattime, stats, zonestats);
usr.sbin/nsd/remote.c
3353
process_stats_add_old_new(xfrd, stats);
usr.sbin/nsd/remote.c
3354
process_stats_manage_clear(xfrd, stats, peek);
usr.sbin/nsd/remote.c
3355
process_stats_add_total(xfrd, &total, stats);
usr.sbin/nsd/remote.c
3378
free(stats);
usr.sbin/nsd/remote.h
122
struct nsdst** stats,
usr.sbin/nsd/remote.h
134
struct nsdst* stats,
usr.sbin/nsd/remote.h
142
void process_stats_add_old_new(struct xfrd_state* xfrd, struct nsdst* stats);
usr.sbin/nsd/remote.h
152
struct nsdst* stats,
usr.sbin/nsd/remote.h
163
struct nsdst* stats);
usr.sbin/ospf6d/neighbor.c
199
nbr->stats.sta_chng++;
usr.sbin/ospf6d/neighbor.c
691
nctl.state_chng_cnt = nbr->stats.sta_chng;
usr.sbin/ospf6d/ospfe.h
62
struct nbr_stats stats;
usr.sbin/ospfd/neighbor.c
199
nbr->stats.sta_chng++;
usr.sbin/ospfd/neighbor.c
691
nctl.state_chng_cnt = nbr->stats.sta_chng;
usr.sbin/ospfd/ospfe.h
62
struct nbr_stats stats;
usr.sbin/pppd/pppstats/pppstats.c
119
*curp = req.stats;
usr.sbin/pppd/pppstats/pppstats.c
139
*csp = creq.stats;
usr.sbin/relayctl/relayctl.c
352
struct ctl_stats stats[PROC_MAX_INSTANCES];
usr.sbin/relayctl/relayctl.c
406
bcopy(imsg->data, &stats[0], sizeof(stats[0]));
usr.sbin/relayctl/relayctl.c
407
stats[1].id = EMPTY_ID;
usr.sbin/relayctl/relayctl.c
408
print_statistics(stats);
usr.sbin/relayctl/relayctl.c
413
bcopy(imsg->data, &stats, sizeof(stats));
usr.sbin/relayctl/relayctl.c
414
print_statistics(stats);
usr.sbin/relayctl/relayctl.c
558
print_statistics(struct ctl_stats stats[PROC_MAX_INSTANCES + 1])
usr.sbin/relayctl/relayctl.c
564
crs.interval = stats[0].interval;
usr.sbin/relayctl/relayctl.c
565
for (i = 0; stats[i].id != EMPTY_ID; i++) {
usr.sbin/relayctl/relayctl.c
566
crs.cnt += stats[i].cnt;
usr.sbin/relayctl/relayctl.c
567
crs.last += stats[i].last;
usr.sbin/relayctl/relayctl.c
568
crs.avg += stats[i].avg;
usr.sbin/relayctl/relayctl.c
569
crs.last_hour += stats[i].last_hour;
usr.sbin/relayctl/relayctl.c
570
crs.avg_hour += stats[i].avg_hour;
usr.sbin/relayctl/relayctl.c
571
crs.last_day += stats[i].last_day;
usr.sbin/relayctl/relayctl.c
572
crs.avg_day += stats[i].avg_day;
usr.sbin/relayd/agentx_control.c
573
agentx_varbind_counter64(sav, rdr->stats.cnt);
usr.sbin/relayd/agentx_control.c
575
agentx_varbind_gauge32(sav, rdr->stats.avg);
usr.sbin/relayd/agentx_control.c
577
agentx_varbind_gauge32(sav, rdr->stats.last);
usr.sbin/relayd/agentx_control.c
579
agentx_varbind_gauge32(sav, rdr->stats.avg_hour);
usr.sbin/relayd/agentx_control.c
581
agentx_varbind_gauge32(sav, rdr->stats.last_hour);
usr.sbin/relayd/agentx_control.c
583
agentx_varbind_gauge32(sav, rdr->stats.avg_day);
usr.sbin/relayd/agentx_control.c
585
agentx_varbind_gauge32(sav, rdr->stats.last_day);
usr.sbin/relayd/pfe.c
372
&rdr->stats, sizeof(rdr->stats));
usr.sbin/relayd/pfe.c
828
cur = &rdr->stats;
usr.sbin/relayd/pfe.c
851
rdr->stats.interval = env->sc_conf.statinterval.tv_sec;
usr.sbin/relayd/relayd.h
560
struct ctl_stats stats;
usr.sbin/rpki-client/ccr.c
851
output_ccr_der(FILE *out, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/extern.h
1000
int output_bird(FILE *, struct validation_data *, struct stats *);
usr.sbin/rpki-client/extern.h
1001
int output_ccr_der(FILE *, struct validation_data *, struct stats *);
usr.sbin/rpki-client/extern.h
1002
int output_csv(FILE *, struct validation_data *, struct stats *);
usr.sbin/rpki-client/extern.h
1003
int output_json(FILE *, struct validation_data *, struct stats *);
usr.sbin/rpki-client/extern.h
1005
struct stats *);
usr.sbin/rpki-client/extern.h
997
int outputfiles(struct validation_data *, struct stats *);
usr.sbin/rpki-client/extern.h
998
int outputheader(FILE *, struct validation_data *, struct stats *);
usr.sbin/rpki-client/extern.h
999
int output_bgpd(FILE *, struct validation_data *, struct stats *);
usr.sbin/rpki-client/main.c
1467
entity_process(b, &vd, &stats);
usr.sbin/rpki-client/main.c
1545
timespecsub(&now_time, &start_time, &stats.elapsed_time);
usr.sbin/rpki-client/main.c
1547
TIMEVAL_TO_TIMESPEC(&ru.ru_utime, &stats.user_time);
usr.sbin/rpki-client/main.c
1548
TIMEVAL_TO_TIMESPEC(&ru.ru_stime, &stats.system_time);
usr.sbin/rpki-client/main.c
1554
timespecadd(&stats.user_time, &ts, &stats.user_time);
usr.sbin/rpki-client/main.c
1556
timespecadd(&stats.system_time, &ts, &stats.system_time);
usr.sbin/rpki-client/main.c
1567
repo_tal_stats_collect(sum_stats, i, &stats.repo_tal_stats);
usr.sbin/rpki-client/main.c
1569
repo_stats_collect(sum_repostats, &stats.repo_stats);
usr.sbin/rpki-client/main.c
1573
if (outputfiles(&vd, &stats))
usr.sbin/rpki-client/main.c
1578
(long long)stats.elapsed_time.tv_sec,
usr.sbin/rpki-client/main.c
1579
(long long)stats.user_time.tv_sec,
usr.sbin/rpki-client/main.c
1580
(long long)stats.system_time.tv_sec);
usr.sbin/rpki-client/main.c
1581
printf("Skiplist entries: %u\n", stats.skiplistentries);
usr.sbin/rpki-client/main.c
1586
"invalid)\n", stats.repo_tal_stats.roas,
usr.sbin/rpki-client/main.c
1587
stats.repo_tal_stats.roas_fail,
usr.sbin/rpki-client/main.c
1588
stats.repo_tal_stats.roas_invalid);
usr.sbin/rpki-client/main.c
1590
"invalid)\n", stats.repo_tal_stats.aspas,
usr.sbin/rpki-client/main.c
1591
stats.repo_tal_stats.aspas_fail,
usr.sbin/rpki-client/main.c
1592
stats.repo_tal_stats.aspas_invalid);
usr.sbin/rpki-client/main.c
1596
stats.repo_tal_stats.spls, stats.repo_tal_stats.spls_fail,
usr.sbin/rpki-client/main.c
1597
stats.repo_tal_stats.spls_invalid);
usr.sbin/rpki-client/main.c
1599
printf("BGPsec Router Certificates: %u\n", stats.repo_tal_stats.brks);
usr.sbin/rpki-client/main.c
1601
stats.repo_tal_stats.certs, stats.repo_tal_stats.certs_fail,
usr.sbin/rpki-client/main.c
1602
stats.repo_tal_stats.certs_nonfunc);
usr.sbin/rpki-client/main.c
1604
stats.tals, talsz - stats.tals);
usr.sbin/rpki-client/main.c
1606
stats.repo_tal_stats.mfts, stats.repo_tal_stats.mfts_fail,
usr.sbin/rpki-client/main.c
1607
stats.repo_tal_stats.mfts_gap);
usr.sbin/rpki-client/main.c
1608
printf("Certificate revocation lists: %u\n", stats.repo_tal_stats.crls);
usr.sbin/rpki-client/main.c
1609
printf("Trust Anchor Keys: %u\n", stats.repo_tal_stats.taks);
usr.sbin/rpki-client/main.c
1610
printf("Repositories: %u\n", stats.repos);
usr.sbin/rpki-client/main.c
1612
stats.repo_stats.new_files);
usr.sbin/rpki-client/main.c
1615
stats.repo_stats.del_files, stats.repo_stats.del_dirs,
usr.sbin/rpki-client/main.c
1616
stats.repo_stats.extra_files, stats.repo_stats.del_extra_files);
usr.sbin/rpki-client/main.c
1617
printf("VRP Entries: %u (%u unique)\n", stats.repo_tal_stats.vrps,
usr.sbin/rpki-client/main.c
1618
stats.repo_tal_stats.vrps_uniqs);
usr.sbin/rpki-client/main.c
1620
stats.repo_tal_stats.vaps, stats.repo_tal_stats.vaps_uniqs,
usr.sbin/rpki-client/main.c
1621
stats.repo_tal_stats.vaps_overflowed);
usr.sbin/rpki-client/main.c
1622
printf("VSP Entries: %u (%u unique)\n", stats.repo_tal_stats.vsps,
usr.sbin/rpki-client/main.c
1623
stats.repo_tal_stats.vsps_uniqs);
usr.sbin/rpki-client/main.c
587
entity_process(struct ibuf *b, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/main.c
85
struct stats stats;
usr.sbin/rpki-client/main.c
918
stats.skiplistentries++;
usr.sbin/rpki-client/output-bgpd.c
23
output_bgpd(FILE *out, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/output-bird.c
24
output_bird(FILE *out, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/output-csv.c
23
output_csv(FILE *out, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/output-json.c
152
output_json(FILE *out, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/output-json.c
27
outputheader_json(struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/output-ometric.c
168
output_ometric(FILE *out, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/output.c
126
outputfiles(struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/output.c
253
outputheader(FILE *out, struct validation_data *vd, struct stats *st)
usr.sbin/rpki-client/output.c
66
int (*fn)(FILE *, struct validation_data *, struct stats *);
usr.sbin/rpki-client/repo.c
100
struct repotalstats stats[TALSZ_MAX];
usr.sbin/rpki-client/repo.c
1063
stats.rsync_repos++;
usr.sbin/rpki-client/repo.c
1068
stats.rsync_fails++;
usr.sbin/rpki-client/repo.c
1084
stats.rsync_repos++;
usr.sbin/rpki-client/repo.c
1089
stats.rsync_fails++;
usr.sbin/rpki-client/repo.c
1119
stats.rrdp_repos++;
usr.sbin/rpki-client/repo.c
1124
stats.rrdp_fails++;
usr.sbin/rpki-client/repo.c
1160
stats.http_repos++;
usr.sbin/rpki-client/repo.c
1548
rp->stats[talid].certs++;
usr.sbin/rpki-client/repo.c
1550
rp->stats[talid].certs_fail++;
usr.sbin/rpki-client/repo.c
1552
rp->stats[talid].certs_nonfunc++;
usr.sbin/rpki-client/repo.c
1554
rp->stats[talid].certs_nonfunc--;
usr.sbin/rpki-client/repo.c
1556
rp->stats[talid].certs--;
usr.sbin/rpki-client/repo.c
1557
rp->stats[talid].brks++;
usr.sbin/rpki-client/repo.c
1562
rp->stats[talid].mfts++;
usr.sbin/rpki-client/repo.c
1564
rp->stats[talid].mfts_fail++;
usr.sbin/rpki-client/repo.c
1566
rp->stats[talid].mfts_gap++;
usr.sbin/rpki-client/repo.c
1571
rp->stats[talid].roas++;
usr.sbin/rpki-client/repo.c
1574
rp->stats[talid].roas_fail++;
usr.sbin/rpki-client/repo.c
1577
rp->stats[talid].roas_invalid++;
usr.sbin/rpki-client/repo.c
1580
rp->stats[talid].vrps++;
usr.sbin/rpki-client/repo.c
1583
rp->stats[talid].vrps_uniqs++;
usr.sbin/rpki-client/repo.c
1586
rp->stats[talid].vrps_uniqs--;
usr.sbin/rpki-client/repo.c
1595
rp->stats[talid].aspas++;
usr.sbin/rpki-client/repo.c
1598
rp->stats[talid].aspas_fail++;
usr.sbin/rpki-client/repo.c
1601
rp->stats[talid].aspas_invalid++;
usr.sbin/rpki-client/repo.c
1604
rp->stats[talid].vaps++;
usr.sbin/rpki-client/repo.c
1607
rp->stats[talid].vaps_uniqs++;
usr.sbin/rpki-client/repo.c
1610
rp->stats[talid].vaps_uniqs--;
usr.sbin/rpki-client/repo.c
1613
rp->stats[talid].vaps_pas++;
usr.sbin/rpki-client/repo.c
1616
rp->stats[talid].vaps_overflowed++;
usr.sbin/rpki-client/repo.c
1625
rp->stats[talid].spls++;
usr.sbin/rpki-client/repo.c
1628
rp->stats[talid].spls_fail++;
usr.sbin/rpki-client/repo.c
1631
rp->stats[talid].spls_invalid++;
usr.sbin/rpki-client/repo.c
1634
rp->stats[talid].vsps++;
usr.sbin/rpki-client/repo.c
1637
rp->stats[talid].vsps_uniqs++;
usr.sbin/rpki-client/repo.c
1640
rp->stats[talid].vsps_uniqs--;
usr.sbin/rpki-client/repo.c
1647
rp->stats[talid].crls++;
usr.sbin/rpki-client/repo.c
1650
rp->stats[talid].taks++;
usr.sbin/rpki-client/repo.c
1665
cb(rp, &rp->stats[talid], arg);
usr.sbin/rpki-client/repo.c
1909
stats.repo_stats.del_extra_files++;
usr.sbin/rpki-client/repo.c
1916
stats.repo_stats.del_files++;
usr.sbin/rpki-client/repo.c
1978
stats.repo_stats.del_dirs++;
usr.sbin/rpki-client/repo.c
1986
stats.repo_stats.del_extra_files++;
usr.sbin/rpki-client/repo.c
40
extern struct stats stats;
usr.sbin/rpki-client/repo.c
661
stats.repos++;
usr.sbin/smtpd/stat_ramstat.c
109
np = RB_FIND(stats_tree, &stats, &lk);
usr.sbin/smtpd/stat_ramstat.c
113
RB_INSERT(stats_tree, &stats, np);
usr.sbin/smtpd/stat_ramstat.c
125
if (RB_EMPTY(&stats))
usr.sbin/smtpd/stat_ramstat.c
129
np = RB_MIN(stats_tree, &stats);
usr.sbin/smtpd/stat_ramstat.c
131
np = RB_NEXT(stats_tree, &stats, *iter);
usr.sbin/smtpd/stat_ramstat.c
35
RB_HEAD(stats_tree, ramstat_entry) stats;
usr.sbin/smtpd/stat_ramstat.c
52
RB_INIT(&stats);
usr.sbin/smtpd/stat_ramstat.c
73
np = RB_FIND(stats_tree, &stats, &lk);
usr.sbin/smtpd/stat_ramstat.c
77
RB_INSERT(stats_tree, &stats, np);
usr.sbin/smtpd/stat_ramstat.c
91
np = RB_FIND(stats_tree, &stats, &lk);
usr.sbin/smtpd/stat_ramstat.c
95
RB_INSERT(stats_tree, &stats, np);
usr.sbin/snmpd/application_internal.c
459
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/application_internal.c
464
stats->snmp_enableauthentraps ? 1 : 2);
usr.sbin/snmpd/application_internal.c
466
value = ober_add_integer(NULL, stats->snmp_inpkts);
usr.sbin/snmpd/application_internal.c
468
value = ober_add_integer(NULL, stats->snmp_outpkts);
usr.sbin/snmpd/application_internal.c
470
value = ober_add_integer(NULL, stats->snmp_inbadversions);
usr.sbin/snmpd/application_internal.c
472
value = ober_add_integer(NULL, stats->snmp_inbadcommunitynames);
usr.sbin/snmpd/application_internal.c
474
value = ober_add_integer(NULL, stats->snmp_inbadcommunityuses);
usr.sbin/snmpd/application_internal.c
476
value = ober_add_integer(NULL, stats->snmp_inasnparseerrs);
usr.sbin/snmpd/application_internal.c
478
value = ober_add_integer(NULL, stats->snmp_intoobigs);
usr.sbin/snmpd/application_internal.c
480
value = ober_add_integer(NULL, stats->snmp_innosuchnames);
usr.sbin/snmpd/application_internal.c
482
value = ober_add_integer(NULL, stats->snmp_inbadvalues);
usr.sbin/snmpd/application_internal.c
484
value = ober_add_integer(NULL, stats->snmp_inreadonlys);
usr.sbin/snmpd/application_internal.c
486
value = ober_add_integer(NULL, stats->snmp_ingenerrs);
usr.sbin/snmpd/application_internal.c
488
value = ober_add_integer(NULL, stats->snmp_intotalreqvars);
usr.sbin/snmpd/application_internal.c
490
value = ober_add_integer(NULL, stats->snmp_intotalsetvars);
usr.sbin/snmpd/application_internal.c
492
value = ober_add_integer(NULL, stats->snmp_ingetrequests);
usr.sbin/snmpd/application_internal.c
494
value = ober_add_integer(NULL, stats->snmp_ingetnexts);
usr.sbin/snmpd/application_internal.c
496
value = ober_add_integer(NULL, stats->snmp_insetrequests);
usr.sbin/snmpd/application_internal.c
498
value = ober_add_integer(NULL, stats->snmp_ingetresponses);
usr.sbin/snmpd/application_internal.c
500
value = ober_add_integer(NULL, stats->snmp_intraps);
usr.sbin/snmpd/application_internal.c
502
value = ober_add_integer(NULL, stats->snmp_outtoobigs);
usr.sbin/snmpd/application_internal.c
504
value = ober_add_integer(NULL, stats->snmp_outnosuchnames);
usr.sbin/snmpd/application_internal.c
506
value = ober_add_integer(NULL, stats->snmp_outbadvalues);
usr.sbin/snmpd/application_internal.c
508
value = ober_add_integer(NULL, stats->snmp_outgenerrs);
usr.sbin/snmpd/application_internal.c
510
value = ober_add_integer(NULL, stats->snmp_outgetrequests);
usr.sbin/snmpd/application_internal.c
512
value = ober_add_integer(NULL, stats->snmp_outgetnexts);
usr.sbin/snmpd/application_internal.c
514
value = ober_add_integer(NULL, stats->snmp_outsetrequests);
usr.sbin/snmpd/application_internal.c
516
value = ober_add_integer(NULL, stats->snmp_outgetresponses);
usr.sbin/snmpd/application_internal.c
518
value = ober_add_integer(NULL, stats->snmp_outtraps);
usr.sbin/snmpd/application_internal.c
520
value = ober_add_integer(NULL, stats->snmp_silentdrops);
usr.sbin/snmpd/application_internal.c
522
value = ober_add_integer(NULL, stats->snmp_proxydrops);
usr.sbin/snmpd/application_internal.c
547
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/application_internal.c
551
value = ober_add_integer(NULL, stats->snmp_usmbadseclevel);
usr.sbin/snmpd/application_internal.c
553
value = ober_add_integer(NULL, stats->snmp_usmtimewindow);
usr.sbin/snmpd/application_internal.c
555
value = ober_add_integer(NULL, stats->snmp_usmnosuchuser);
usr.sbin/snmpd/application_internal.c
557
value = ober_add_integer(NULL, stats->snmp_usmnosuchengine);
usr.sbin/snmpd/application_internal.c
559
value = ober_add_integer(NULL, stats->snmp_usmwrongdigest);
usr.sbin/snmpd/application_internal.c
561
value = ober_add_integer(NULL, stats->snmp_usmdecrypterr);
usr.sbin/snmpd/snmpe.c
239
struct snmp_stats *stats = &env->sc_stats;
usr.sbin/snmpd/snmpe.c
279
stats->snmp_inbadcommunitynames++;
usr.sbin/snmpd/snmpe.c
302
stats->snmp_usmbadseclevel++;
usr.sbin/snmpd/snmpe.c
324
stats->snmp_inbadversions++;
usr.sbin/snmpd/snmpe.c
339
stats->snmp_inbadversions++;
usr.sbin/snmpd/snmpe.c
347
stats->snmp_ingetrequests++;
usr.sbin/snmpd/snmpe.c
352
stats->snmp_ingetnexts++;
usr.sbin/snmpd/snmpe.c
360
stats->snmp_inbadcommunitynames++;
usr.sbin/snmpd/snmpe.c
367
stats->snmp_insetrequests++;
usr.sbin/snmpd/snmpe.c
375
stats->snmp_inbadcommunitynames++;
usr.sbin/snmpd/snmpe.c
377
stats->snmp_inbadcommunityuses++;
usr.sbin/snmpd/snmpe.c
384
stats->snmp_ingetresponses++;
usr.sbin/snmpd/snmpe.c
410
stats->snmp_inbadcommunitynames++;
usr.sbin/snmpd/snmpe.c
414
stats->snmp_intraps++;
usr.sbin/snmpd/snmpe.c
432
stats->snmp_silentdrops++;
usr.sbin/snmpd/snmpe.c
472
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/snmpe.c
541
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/snmpe.c
562
stats->snmp_inpkts++;
usr.sbin/snmpd/snmpe.c
601
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/snmpe.c
633
stats->snmp_outpkts++;
usr.sbin/snmpd/snmpe.c
668
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/snmpe.c
686
stats->snmp_inpkts++;
usr.sbin/snmpd/snmpe.c
695
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/snmpe.c
756
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/snmpe.c
767
stats->snmp_intoobigs++;
usr.sbin/snmpd/snmpe.c
770
stats->snmp_innosuchnames++;
usr.sbin/snmpd/snmpe.c
773
stats->snmp_inbadvalues++;
usr.sbin/snmpd/snmpe.c
776
stats->snmp_inreadonlys++;
usr.sbin/snmpd/snmpe.c
780
stats->snmp_ingenerrs++;
usr.sbin/snmpd/snmpe.c
805
stats->snmp_outpkts++;
usr.sbin/snmpd/traphandler.c
101
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/traphandler.c
107
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/traphandler.c
142
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/traphandler.c
156
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/traphandler.c
182
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/traphandler.c
189
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/traphandler.c
64
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/traphandler.c
82
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/traphandler.c
86
stats->snmp_inasnparseerrs++;
usr.sbin/snmpd/usm.c
265
struct snmp_stats *stats = &snmpd_env->sc_stats;
usr.sbin/snmpd/usm.c
326
stats->snmp_usmnosuchengine++;
usr.sbin/snmpd/usm.c
340
stats->snmp_usmnosuchuser++;
usr.sbin/snmpd/usm.c
347
stats->snmp_usmbadseclevel++;
usr.sbin/snmpd/usm.c
359
stats->snmp_usmwrongdigest++;
usr.sbin/snmpd/usm.c
369
stats->snmp_usmdecrypterr++;
usr.sbin/snmpd/usm.c
383
stats->snmp_usmtimewindow++;
usr.sbin/tcpdump/privsep.c
612
struct pcap_stat stats;
usr.sbin/tcpdump/privsep.c
616
if (ioctl(*bpfd, BIOCGSTATS, &stats) == -1)
usr.sbin/tcpdump/privsep.c
619
must_write(fd, &stats, sizeof(stats));
usr.sbin/unbound/daemon/stats.c
100
if((long long)worker->env.mesh->all.count > stats->max_query_list_size)
usr.sbin/unbound/daemon/stats.c
101
stats->max_query_list_size = (long long)worker->env.mesh->all.count;
usr.sbin/unbound/daemon/stats.c
104
void server_stats_prefetch(struct ub_server_stats* stats, struct worker* worker)
usr.sbin/unbound/daemon/stats.c
106
stats->num_queries_prefetch++;
usr.sbin/unbound/daemon/stats.c
108
stats->sum_query_list_size += worker->env.mesh->all.count;
usr.sbin/unbound/daemon/stats.c
109
if((long long)worker->env.mesh->all.count > stats->max_query_list_size)
usr.sbin/unbound/daemon/stats.c
110
stats->max_query_list_size = (long long)worker->env.mesh->all.count;
usr.sbin/unbound/daemon/stats.c
113
void server_stats_log(struct ub_server_stats* stats, struct worker* worker,
usr.sbin/unbound/daemon/stats.c
119
threadnum, (unsigned)stats->num_queries,
usr.sbin/unbound/daemon/stats.c
120
(unsigned)(stats->num_queries -
usr.sbin/unbound/daemon/stats.c
121
stats->num_queries_missed_cache),
usr.sbin/unbound/daemon/stats.c
122
(unsigned)stats->num_queries_missed_cache,
usr.sbin/unbound/daemon/stats.c
123
(unsigned)stats->num_queries_prefetch,
usr.sbin/unbound/daemon/stats.c
124
(unsigned)stats->num_queries_ip_ratelimited);
usr.sbin/unbound/daemon/stats.c
127
(unsigned)stats->max_query_list_size,
usr.sbin/unbound/daemon/stats.c
128
(stats->num_queries_missed_cache+stats->num_queries_prefetch)?
usr.sbin/unbound/daemon/stats.c
129
(double)stats->sum_query_list_size/
usr.sbin/unbound/daemon/stats.c
130
(double)(stats->num_queries_missed_cache+
usr.sbin/unbound/daemon/stats.c
131
stats->num_queries_prefetch) : 0.0,
usr.sbin/unbound/daemon/stats.c
262
s->svr = worker->stats;
usr.sbin/unbound/daemon/stats.c
532
void server_stats_insquery(struct ub_server_stats* stats, struct comm_point* c,
usr.sbin/unbound/daemon/stats.c
538
stats->qtype[qtype]++;
usr.sbin/unbound/daemon/stats.c
539
else stats->qtype_big++;
usr.sbin/unbound/daemon/stats.c
541
stats->qclass[qclass]++;
usr.sbin/unbound/daemon/stats.c
542
else stats->qclass_big++;
usr.sbin/unbound/daemon/stats.c
543
stats->qopcode[ LDNS_OPCODE_WIRE(sldns_buffer_begin(c->buffer)) ]++;
usr.sbin/unbound/daemon/stats.c
546
stats->qtcp++;
usr.sbin/unbound/daemon/stats.c
548
stats->qtls++;
usr.sbin/unbound/daemon/stats.c
551
stats->qtls_resume++;
usr.sbin/unbound/daemon/stats.c
554
stats->qhttps++;
usr.sbin/unbound/daemon/stats.c
557
stats->qquic++;
usr.sbin/unbound/daemon/stats.c
562
stats->qipv6++;
usr.sbin/unbound/daemon/stats.c
564
stats->qbit_QR++;
usr.sbin/unbound/daemon/stats.c
566
stats->qbit_AA++;
usr.sbin/unbound/daemon/stats.c
568
stats->qbit_TC++;
usr.sbin/unbound/daemon/stats.c
570
stats->qbit_RD++;
usr.sbin/unbound/daemon/stats.c
572
stats->qbit_RA++;
usr.sbin/unbound/daemon/stats.c
574
stats->qbit_Z++;
usr.sbin/unbound/daemon/stats.c
576
stats->qbit_AD++;
usr.sbin/unbound/daemon/stats.c
578
stats->qbit_CD++;
usr.sbin/unbound/daemon/stats.c
580
stats->qEDNS++;
usr.sbin/unbound/daemon/stats.c
582
stats->qEDNS_DO++;
usr.sbin/unbound/daemon/stats.c
586
void server_stats_insrcode(struct ub_server_stats* stats, sldns_buffer* buf)
usr.sbin/unbound/daemon/stats.c
588
if(stats->extended && sldns_buffer_limit(buf) != 0) {
usr.sbin/unbound/daemon/stats.c
590
stats->ans_rcode[r] ++;
usr.sbin/unbound/daemon/stats.c
592
stats->ans_rcode_nodata ++;
usr.sbin/unbound/daemon/stats.c
596
void server_stats_downstream_cookie(struct ub_server_stats* stats,
usr.sbin/unbound/daemon/stats.c
601
stats->num_queries_cookie_valid++;
usr.sbin/unbound/daemon/stats.c
603
stats->num_queries_cookie_client++;
usr.sbin/unbound/daemon/stats.c
605
stats->num_queries_cookie_invalid++;
usr.sbin/unbound/daemon/stats.c
90
void server_stats_init(struct ub_server_stats* stats, struct config_file* cfg)
usr.sbin/unbound/daemon/stats.c
92
memset(stats, 0, sizeof(*stats));
usr.sbin/unbound/daemon/stats.c
93
stats->extended = cfg->stat_extended;
usr.sbin/unbound/daemon/stats.c
96
void server_stats_querymiss(struct ub_server_stats* stats, struct worker* worker)
usr.sbin/unbound/daemon/stats.c
98
stats->num_queries_missed_cache++;
usr.sbin/unbound/daemon/stats.c
99
stats->sum_query_list_size += worker->env.mesh->all.count;
usr.sbin/unbound/daemon/stats.h
118
void server_stats_insquery(struct ub_server_stats* stats, struct comm_point* c,
usr.sbin/unbound/daemon/stats.h
127
void server_stats_insrcode(struct ub_server_stats* stats, struct sldns_buffer* buf);
usr.sbin/unbound/daemon/stats.h
134
void server_stats_downstream_cookie(struct ub_server_stats* stats,
usr.sbin/unbound/daemon/stats.h
61
void server_stats_init(struct ub_server_stats* stats, struct config_file* cfg);
usr.sbin/unbound/daemon/stats.h
64
void server_stats_querymiss(struct ub_server_stats* stats, struct worker* worker);
usr.sbin/unbound/daemon/stats.h
67
void server_stats_prefetch(struct ub_server_stats* stats, struct worker* worker);
usr.sbin/unbound/daemon/stats.h
70
void server_stats_log(struct ub_server_stats* stats, struct worker* worker,
usr.sbin/unbound/daemon/worker.c
1215
if(worker->stats.extended)
usr.sbin/unbound/daemon/worker.c
1216
worker->stats.unwanted_queries++;
usr.sbin/unbound/daemon/worker.c
1227
if(worker->stats.extended)
usr.sbin/unbound/daemon/worker.c
1228
worker->stats.unwanted_queries++;
usr.sbin/unbound/daemon/worker.c
1488
if (worker->stats.max_query_time_us < wait_queue_time)
usr.sbin/unbound/daemon/worker.c
1489
worker->stats.max_query_time_us = wait_queue_time;
usr.sbin/unbound/daemon/worker.c
1493
worker->stats.num_queries_timed_out++;
usr.sbin/unbound/daemon/worker.c
1501
worker->stats.num_query_dnscrypt_crypted_malformed++;
usr.sbin/unbound/daemon/worker.c
1534
worker->stats.num_query_dnscrypt_cleartext++;
usr.sbin/unbound/daemon/worker.c
1537
worker->stats.num_query_dnscrypt_cert++;
usr.sbin/unbound/daemon/worker.c
1540
worker->stats.num_query_dnscrypt_crypted++;
usr.sbin/unbound/daemon/worker.c
1584
worker->stats.num_queries++;
usr.sbin/unbound/daemon/worker.c
1596
worker->stats.num_queries_ip_ratelimited++;
usr.sbin/unbound/daemon/worker.c
1631
if(worker->stats.extended) {
usr.sbin/unbound/daemon/worker.c
1632
worker->stats.qtype[qinfo.qtype]++;
usr.sbin/unbound/daemon/worker.c
1653
if(worker->stats.extended) {
usr.sbin/unbound/daemon/worker.c
1654
worker->stats.qtype[qinfo.qtype]++;
usr.sbin/unbound/daemon/worker.c
1700
server_stats_downstream_cookie(&worker->stats, &edns);
usr.sbin/unbound/daemon/worker.c
1709
worker->stats.num_queries_ip_ratelimited++;
usr.sbin/unbound/daemon/worker.c
1779
if(worker->stats.extended)
usr.sbin/unbound/daemon/worker.c
1780
server_stats_insquery(&worker->stats, c, qinfo.qtype,
usr.sbin/unbound/daemon/worker.c
1812
repinfo, acladdr->taglist, acladdr->taglen, &worker->stats,
usr.sbin/unbound/daemon/worker.c
1995
server_stats_querymiss(&worker->stats, worker);
usr.sbin/unbound/daemon/worker.c
2022
worker->stats.ans_expired++;
usr.sbin/unbound/daemon/worker.c
2024
server_stats_insrcode(&worker->stats, c->buffer);
usr.sbin/unbound/daemon/worker.c
2025
if(worker->stats.extended) {
usr.sbin/unbound/daemon/worker.c
2026
if(is_secure_answer) worker->stats.ans_secure++;
usr.sbin/unbound/daemon/worker.c
2120
server_stats_log(&worker->stats, worker, worker->thread_num);
usr.sbin/unbound/daemon/worker.c
2310
server_stats_init(&worker->stats, cfg);
usr.sbin/unbound/daemon/worker.c
2418
server_stats_log(&worker->stats, worker, worker->thread_num);
usr.sbin/unbound/daemon/worker.c
2489
server_stats_init(&worker->stats, worker->env.cfg);
usr.sbin/unbound/daemon/worker.c
610
if(worker->stats.extended) {
usr.sbin/unbound/daemon/worker.c
611
worker->stats.ans_bogus++;
usr.sbin/unbound/daemon/worker.c
612
worker->stats.ans_rcode[LDNS_RCODE_SERVFAIL]++;
usr.sbin/unbound/daemon/worker.c
662
if(worker->stats.extended) {
usr.sbin/unbound/daemon/worker.c
663
if(secure) worker->stats.ans_secure++;
usr.sbin/unbound/daemon/worker.c
664
server_stats_insrcode(&worker->stats, repinfo->c->buffer);
usr.sbin/unbound/daemon/worker.c
709
if(worker->stats.extended && actinfo.rpz_used) {
usr.sbin/unbound/daemon/worker.c
711
worker->stats.rpz_action[RPZ_DISABLED_ACTION]++;
usr.sbin/unbound/daemon/worker.c
713
worker->stats.rpz_action[RPZ_CNAME_OVERRIDE_ACTION]++;
usr.sbin/unbound/daemon/worker.c
715
worker->stats.rpz_action[
usr.sbin/unbound/daemon/worker.c
815
if(worker->stats.extended) {
usr.sbin/unbound/daemon/worker.c
816
worker->stats.ans_bogus ++;
usr.sbin/unbound/daemon/worker.c
817
worker->stats.ans_rcode[LDNS_RCODE_SERVFAIL] ++;
usr.sbin/unbound/daemon/worker.c
933
server_stats_prefetch(&worker->stats, worker);
usr.sbin/unbound/daemon/worker.h
129
struct ub_server_stats stats;
usr.sbin/unbound/services/rpz.c
1701
struct ub_server_stats* stats,
usr.sbin/unbound/services/rpz.c
1736
stats->rpz_action[r->action_override]++;
usr.sbin/unbound/services/rpz.c
2239
struct comm_reply* repinfo, struct ub_server_stats* stats)
usr.sbin/unbound/services/rpz.c
2250
stats->rpz_action[RPZ_CNAME_OVERRIDE_ACTION]++;
usr.sbin/unbound/services/rpz.c
2262
stats->rpz_action[localzone_type_to_rpz_action(lzt)]++;
usr.sbin/unbound/services/rpz.c
2275
stats->rpz_action[localzone_type_to_rpz_action(lzt)]++;
usr.sbin/unbound/services/rpz.c
2361
ms->env->worker->stats.rpz_action[action]++;
usr.sbin/unbound/services/rpz.c
2423
ms->env->worker->stats.rpz_action[action]++;
usr.sbin/unbound/services/rpz.c
2582
ms->env->worker->stats.rpz_action[r->action_override]++;
usr.sbin/unbound/services/rpz.c
2659
uint8_t* taglist, size_t taglen, struct ub_server_stats* stats,
usr.sbin/unbound/services/rpz.c
2668
az, qinfo, repinfo, taglist, taglen, stats, z_out, a_out, r_out);
usr.sbin/unbound/services/rpz.c
2696
stats->rpz_action[client_action]++;
usr.sbin/unbound/services/rpz.c
2739
size_t taglen, struct ub_server_stats* stats, int* passthru)
usr.sbin/unbound/services/rpz.c
2748
edns, repinfo, taglist, taglen, stats, buf, temp, &z, &a, &r,
usr.sbin/unbound/services/rpz.c
2792
repinfo, stats);
usr.sbin/unbound/services/rpz.h
183
uint8_t* taglist, size_t taglen, struct ub_server_stats* stats,
usr.sbin/unbound/smallapp/unbound-control.c
457
static void do_stats_shm(struct config_file* cfg, struct ub_stats_info* stats,
usr.sbin/unbound/smallapp/unbound-control.c
464
pr_stats(nm, &stats[i+1]);
usr.sbin/unbound/smallapp/unbound-control.c
466
pr_stats("total", &stats[0]);
usr.sbin/unbound/smallapp/unbound-control.c
469
print_mem(shm_stat, &stats[0]);
usr.sbin/unbound/smallapp/unbound-control.c
470
print_hist(stats);
usr.sbin/unbound/smallapp/unbound-control.c
471
print_extended(stats, cfg->stat_inhibit_zero);
usr.sbin/unbound/smallapp/unbound-control.c
481
struct ub_stats_info* stats;
usr.sbin/unbound/smallapp/unbound-control.c
502
stats = (struct ub_stats_info*)shmat(id_arr, NULL, SHM_RDONLY);
usr.sbin/unbound/smallapp/unbound-control.c
503
if(stats == (void*)-1) {
usr.sbin/unbound/smallapp/unbound-control.c
510
do_stats_shm(cfg, stats, shm_stat);
usr.sbin/unbound/smallapp/unbound-control.c
515
shmdt(stats);