/openbsd/usr.sbin/bgpctl/ |
H A D | output_ometric.c | 276 if (stats->pt_cnt[i] == 0) in ometric_rib_mem() 278 pts += stats->pt_size[i]; in ometric_rib_mem() 280 stats->pt_size[i], UINT64_MAX); in ometric_rib_mem() 288 stats->path_refs); in ometric_rib_mem() 290 stats->aspath_size, UINT64_MAX); in ometric_rib_mem() 294 stats->comm_size * sizeof(struct community), stats->comm_refs); in ometric_rib_mem() 296 stats->attr_cnt * sizeof(struct attr), stats->attr_refs); in ometric_rib_mem() 298 stats->attr_data, UINT64_MAX); in ometric_rib_mem() 304 stats->aspath_size + stats->attr_cnt * sizeof(struct attr) + in ometric_rib_mem() 305 stats->attr_data, UINT64_MAX); in ometric_rib_mem() [all …]
|
H A D | output.c | 209 p->stats.msg_sent_open, p->stats.msg_rcvd_open); in show_neighbor_msgstats() 213 p->stats.msg_sent_update, p->stats.msg_rcvd_update); in show_neighbor_msgstats() 229 p->stats.prefix_out_cnt, p->stats.prefix_cnt); in show_neighbor_msgstats() 237 p->stats.prefix_sent_eor, p->stats.prefix_rcvd_eor); in show_neighbor_msgstats() 441 p->stats.msg_sent_open, p->stats.msg_rcvd_open, in show_neighbor() 1058 stats->rib_cnt, fmt_mem(stats->rib_cnt * in show_rib_mem() 1061 stats->prefix_cnt, fmt_mem(stats->prefix_cnt * in show_rib_mem() 1064 stats->path_cnt, fmt_mem(stats->path_cnt * in show_rib_mem() 1077 stats->attr_cnt, fmt_mem(stats->attr_cnt * in show_rib_mem() 1082 stats->attr_dcnt, fmt_mem(stats->attr_data)); in show_rib_mem() [all …]
|
H A D | output_json.c | 158 p->stats.msg_sent_open + p->stats.msg_sent_notification + in json_neighbor_stats() 159 p->stats.msg_sent_update + p->stats.msg_sent_keepalive + in json_neighbor_stats() 170 p->stats.msg_rcvd_open + p->stats.msg_rcvd_notification + in json_neighbor_stats() 171 p->stats.msg_rcvd_update + p->stats.msg_rcvd_keepalive + in json_neighbor_stats() 892 pts += stats->pt_size[i]; in json_rib_mem() 902 stats->path_refs); in json_rib_mem() 908 stats->comm_size * sizeof(struct community), stats->comm_refs); in json_rib_mem() 910 stats->attr_cnt * sizeof(struct attr), stats->attr_refs); in json_rib_mem() 917 stats->aspath_size + stats->attr_cnt * sizeof(struct attr) + in json_rib_mem() 926 json_rib_mem_element("prefix_set", stats->pset_cnt, stats->pset_size, in json_rib_mem() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/asan/ |
H A D | asan_stats.cpp | 82 stats->Clear(); in GetAccumulatedStats() 104 stats->Clear(); in FlushToDeadThreadStats() 108 AsanStats stats; in FillMallocStatistics() local 109 GetAccumulatedStats(&stats); in FillMallocStatistics() 122 AsanStats stats; in PrintAccumulatedStats() local 126 stats.Print(); in PrintAccumulatedStats() 139 AsanStats stats; in __sanitizer_get_current_allocated_bytes() local 142 uptr freed = stats.freed; in __sanitizer_get_current_allocated_bytes() 149 AsanStats stats; in __sanitizer_get_heap_size() local 151 return stats.mmaped - stats.munmaped; in __sanitizer_get_heap_size() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/memprof/ |
H A D | memprof_stats.cpp | 82 stats->Clear(); in GetAccumulatedStats() 104 stats->Clear(); in FlushToDeadThreadStats() 113 MemprofStats stats; in PrintAccumulatedStats() local 114 GetAccumulatedStats(&stats); in PrintAccumulatedStats() 117 stats.Print(); in PrintAccumulatedStats() 130 MemprofStats stats; in __sanitizer_get_current_allocated_bytes() local 133 uptr freed = stats.freed; in __sanitizer_get_current_allocated_bytes() 140 MemprofStats stats; in __sanitizer_get_heap_size() local 142 return stats.mmaped - stats.munmaped; in __sanitizer_get_heap_size() 146 MemprofStats stats; in __sanitizer_get_free_bytes() local [all …]
|
/openbsd/sys/dev/pci/drm/i915/gt/ |
H A D | intel_engine_stats.h | 18 struct intel_engine_execlists_stats *stats = &engine->stats.execlists; in intel_engine_context_in() local 21 if (stats->active) { in intel_engine_context_in() 22 stats->active++; in intel_engine_context_in() 30 stats->start = ktime_get(); in intel_engine_context_in() 31 stats->active++; in intel_engine_context_in() 36 GEM_BUG_ON(!stats->active); in intel_engine_context_in() 41 struct intel_engine_execlists_stats *stats = &engine->stats.execlists; in intel_engine_context_out() local 45 if (stats->active > 1) { in intel_engine_context_out() 46 stats->active--; in intel_engine_context_out() 53 stats->active--; in intel_engine_context_out() [all …]
|
H A D | intel_gt_pm.c | 49 write_seqcount_begin(>->stats.lock); in runtime_begin() 53 gt->stats.start = ktime_get(); in runtime_begin() 54 gt->stats.active = true; in runtime_begin() 56 write_seqcount_end(>->stats.lock); in runtime_begin() 67 write_seqcount_begin(>->stats.lock); in runtime_end() 71 gt->stats.active = false; in runtime_end() 72 gt->stats.total = in runtime_end() 73 ktime_add(gt->stats.total, in runtime_end() 76 write_seqcount_end(>->stats.lock); in runtime_end() 404 ktime_t total = gt->stats.total; in __intel_gt_get_awake_time() [all …]
|
H A D | intel_lrc.h | 118 struct intel_context_stats *stats = &ce->stats; in lrc_runtime_start() local 123 if (stats->active) in lrc_runtime_start() 126 WRITE_ONCE(stats->active, intel_context_clock()); in lrc_runtime_start() 131 struct intel_context_stats *stats = &ce->stats; in lrc_runtime_stop() local 133 if (!stats->active) in lrc_runtime_stop() 137 WRITE_ONCE(stats->active, 0); in lrc_runtime_stop()
|
/openbsd/sys/dev/pci/drm/amd/amdgpu/ |
H A D | amdgpu_fdinfo.c | 64 struct amdgpu_mem_stats stats; in amdgpu_show_fdinfo() local 70 memset(&stats, 0, sizeof(stats)); in amdgpu_show_fdinfo() 80 amdgpu_vm_get_memory(vm, &stats); in amdgpu_show_fdinfo() 96 drm_printf(p, "drm-memory-gtt: \t%llu KiB\n", stats.gtt/1024UL); in amdgpu_show_fdinfo() 97 drm_printf(p, "drm-memory-cpu: \t%llu KiB\n", stats.cpu/1024UL); in amdgpu_show_fdinfo() 99 stats.visible_vram/1024UL); in amdgpu_show_fdinfo() 101 stats.evicted_vram/1024UL); in amdgpu_show_fdinfo() 103 stats.evicted_visible_vram/1024UL); in amdgpu_show_fdinfo() 105 stats.requested_vram/1024UL); in amdgpu_show_fdinfo() 107 stats.requested_visible_vram/1024UL); in amdgpu_show_fdinfo() [all …]
|
/openbsd/usr.sbin/unbound/daemon/ |
H A D | stats.c | 92 memset(stats, 0, sizeof(*stats)); in server_stats_init() 128 (stats->num_queries_missed_cache+stats->num_queries_prefetch)? in server_stats_log() 536 stats->qtcp++; in server_stats_insquery() 538 stats->qtls++; in server_stats_insquery() 548 stats->qipv6++; in server_stats_insquery() 550 stats->qbit_QR++; in server_stats_insquery() 552 stats->qbit_AA++; in server_stats_insquery() 554 stats->qbit_TC++; in server_stats_insquery() 556 stats->qbit_RD++; in server_stats_insquery() 560 stats->qbit_Z++; in server_stats_insquery() [all …]
|
H A D | stats.h | 61 void server_stats_init(struct ub_server_stats* stats, struct config_file* cfg); 64 void server_stats_querymiss(struct ub_server_stats* stats, struct worker* worker); 67 void server_stats_prefetch(struct ub_server_stats* stats, struct worker* worker); 70 void server_stats_log(struct ub_server_stats* stats, struct worker* worker, 118 void server_stats_insquery(struct ub_server_stats* stats, struct comm_point* c, 127 void server_stats_insrcode(struct ub_server_stats* stats, struct sldns_buffer* buf); 134 void server_stats_downstream_cookie(struct ub_server_stats* stats,
|
/openbsd/usr.bin/systat/ |
H A D | malloc.c | 50 struct kmemstats stats; member 162 if (t1->stats.ks_calls < t2->stats.ks_calls) in sort_treq_callback() 164 if (t1->stats.ks_calls > t2->stats.ks_calls) in sort_treq_callback() 177 if (t1->stats.ks_inuse < t2->stats.ks_inuse) in sort_inuse_callback() 179 if (t1->stats.ks_inuse > t2->stats.ks_inuse) in sort_inuse_callback() 192 if (t1->stats.ks_memuse < t2->stats.ks_memuse) in sort_memuse_callback() 194 if (t1->stats.ks_memuse > t2->stats.ks_memuse) in sort_memuse_callback() 306 if (ti->stats.ks_calls == 0) in read_types() 391 print_fld_size(FLD_TYPE_INUSE, t->stats.ks_inuse); in showtype() 392 print_fld_size(FLD_TYPE_MEMUSE, t->stats.ks_memuse); in showtype() [all …]
|
/openbsd/sbin/pfctl/ |
H A D | pfctl_queue.c | 202 struct hfsc_class_stats *stats = in pfctl_print_queue_nodestat() local 209 (unsigned long long)stats->xmit_cnt.packets, in pfctl_print_queue_nodestat() 210 (unsigned long long)stats->xmit_cnt.bytes, in pfctl_print_queue_nodestat() 211 (unsigned long long)stats->drop_cnt.packets, in pfctl_print_queue_nodestat() 212 (unsigned long long)stats->drop_cnt.bytes); in pfctl_print_queue_nodestat() 225 " flows: %3d ]\n", stats->qlength, stats->qlimit, in pfctl_print_queue_nodestat() 229 stats->qlimit); in pfctl_print_queue_nodestat() 242 struct hfsc_class_stats *stats = in update_avg() local 246 if (stats->xmit_cnt.bytes >= s->prev_bytes) in update_avg() 256 s->prev_bytes = stats->xmit_cnt.bytes; in update_avg() [all …]
|
/openbsd/usr.sbin/smtpd/ |
H A D | stat_ramstat.c | 35 RB_HEAD(stats_tree, ramstat_entry) stats; 52 RB_INIT(&stats); in ramstat_init() 73 np = RB_FIND(stats_tree, &stats, &lk); in ramstat_increment() 77 RB_INSERT(stats_tree, &stats, np); in ramstat_increment() 91 np = RB_FIND(stats_tree, &stats, &lk); in ramstat_decrement() 95 RB_INSERT(stats_tree, &stats, np); in ramstat_decrement() 109 np = RB_FIND(stats_tree, &stats, &lk); in ramstat_set() 113 RB_INSERT(stats_tree, &stats, np); in ramstat_set() 125 if (RB_EMPTY(&stats)) in ramstat_iter() 129 np = RB_MIN(stats_tree, &stats); in ramstat_iter() [all …]
|
/openbsd/sys/net/ |
H A D | ppp-deflate.c | 63 struct compstat stats; member 174 bzero(&state->stats, sizeof(state->stats)); in z_comp_alloc() 331 state->stats.comp_packets++; in z_compress() 336 state->stats.inc_packets++; in z_compress() 340 state->stats.unc_packets++; in z_compress() 351 *stats = state->stats; in z_comp_stats() 352 stats->ratio = stats->unc_bytes; in z_comp_stats() 353 out = stats->comp_bytes + stats->inc_bytes; in z_comp_stats() 355 stats->ratio <<= 8; in z_comp_stats() 359 stats->ratio /= out; in z_comp_stats() [all …]
|
/openbsd/usr.sbin/snmpd/ |
H A D | application_internal.c | 459 struct snmp_stats *stats = &snmpd_env->sc_stats; in appl_internal_snmp() local 464 stats->snmp_enableauthentraps ? 1 : 2); in appl_internal_snmp() 466 value = ober_add_integer(NULL, stats->snmp_inpkts); in appl_internal_snmp() 468 value = ober_add_integer(NULL, stats->snmp_outpkts); in appl_internal_snmp() 478 value = ober_add_integer(NULL, stats->snmp_intoobigs); in appl_internal_snmp() 486 value = ober_add_integer(NULL, stats->snmp_ingenerrs); in appl_internal_snmp() 494 value = ober_add_integer(NULL, stats->snmp_ingetnexts); in appl_internal_snmp() 500 value = ober_add_integer(NULL, stats->snmp_intraps); in appl_internal_snmp() 502 value = ober_add_integer(NULL, stats->snmp_outtoobigs); in appl_internal_snmp() 518 value = ober_add_integer(NULL, stats->snmp_outtraps); in appl_internal_snmp() [all …]
|
H A D | snmpe.c | 350 stats->snmp_ingetnexts++; in snmpe_parse() 412 stats->snmp_intraps++; in snmpe_parse() 430 stats->snmp_silentdrops++; in snmpe_parse() 560 stats->snmp_inpkts++; in snmpe_tryparse() 631 stats->snmp_outpkts++; in snmpe_writecb() 684 stats->snmp_inpkts++; in snmpe_recvmsg() 765 stats->snmp_intoobigs++; in snmpe_response() 771 stats->snmp_inbadvalues++; in snmpe_response() 774 stats->snmp_inreadonlys++; in snmpe_response() 778 stats->snmp_ingenerrs++; in snmpe_response() [all …]
|
/openbsd/sbin/unwind/libunbound/daemon/ |
H A D | stats.h | 61 void server_stats_init(struct ub_server_stats* stats, struct config_file* cfg); 64 void server_stats_querymiss(struct ub_server_stats* stats, struct worker* worker); 67 void server_stats_prefetch(struct ub_server_stats* stats, struct worker* worker); 70 void server_stats_log(struct ub_server_stats* stats, struct worker* worker, 118 void server_stats_insquery(struct ub_server_stats* stats, struct comm_point* c, 127 void server_stats_insrcode(struct ub_server_stats* stats, struct sldns_buffer* buf); 134 void server_stats_downstream_cookie(struct ub_server_stats* stats,
|
/openbsd/usr.sbin/bgpd/ |
H A D | control.c | 554 if (imsg_get_data(imsg, &stats, sizeof(stats)) == -1) { in control_imsg_relay() 561 peer.stats.prefix_cnt = stats.prefix_cnt; in control_imsg_relay() 562 peer.stats.prefix_out_cnt = stats.prefix_out_cnt; in control_imsg_relay() 563 peer.stats.prefix_rcvd_update = stats.prefix_rcvd_update; in control_imsg_relay() 564 peer.stats.prefix_rcvd_withdraw = stats.prefix_rcvd_withdraw; in control_imsg_relay() 565 peer.stats.prefix_rcvd_eor = stats.prefix_rcvd_eor; in control_imsg_relay() 566 peer.stats.prefix_sent_update = stats.prefix_sent_update; in control_imsg_relay() 567 peer.stats.prefix_sent_withdraw = stats.prefix_sent_withdraw; in control_imsg_relay() 568 peer.stats.prefix_sent_eor = stats.prefix_sent_eor; in control_imsg_relay() 569 peer.stats.pending_update = stats.pending_update; in control_imsg_relay() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/stats/ |
H A D | CMakeLists.txt | 2 stats.h) 6 add_custom_target(stats) target 7 set_target_properties(stats PROPERTIES FOLDER "Compiler-RT Misc") 23 add_compiler_rt_runtime(clang_rt.stats 27 SOURCES stats.cpp 35 PARENT_TARGET stats) 45 PARENT_TARGET stats)
|
/openbsd/sys/dev/pci/ |
H A D | if_ixgb.c | 2011 sc->stats.crcerrs + in ixgb_update_stats_counters() 2012 sc->stats.rnbc + in ixgb_update_stats_counters() 2013 sc->stats.mpc + in ixgb_update_stats_counters() 2014 sc->stats.rlec; in ixgb_update_stats_counters() 2065 (long long)sc->stats.dc); in ixgb_print_hw_stats() 2067 (long long)sc->stats.mpc); in ixgb_print_hw_stats() 2069 (long long)sc->stats.rnbc); in ixgb_print_hw_stats() 2071 (long long)sc->stats.rlec); in ixgb_print_hw_stats() 2087 (long long)sc->stats.gprcl); in ixgb_print_hw_stats() 2089 (long long)sc->stats.gptcl); in ixgb_print_hw_stats() [all …]
|
/openbsd/usr.sbin/rpki-client/ |
H A D | main.c | 85 struct stats stats; variable 882 stats.skiplistentries++; in load_skiplist() 1463 timespecadd(&stats.user_time, &ts, &stats.user_time); in main() 1465 timespecadd(&stats.system_time, &ts, &stats.system_time); in main() 1498 stats.repo_tal_stats.spls, stats.repo_tal_stats.spls_fail, in main() 1503 stats.repo_tal_stats.certs, stats.repo_tal_stats.certs_fail); in main() 1505 stats.tals, talsz - stats.tals); in main() 1507 stats.repo_tal_stats.mfts, stats.repo_tal_stats.mfts_fail, in main() 1517 stats.repo_stats.del_files, stats.repo_stats.del_dirs, in main() 1518 stats.repo_stats.extra_files, stats.repo_stats.del_extra_files); in main() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_allocator_secondary.h | 116 CHECK_LT(size_log, ARRAY_SIZE(stats.by_size_log)); in Allocate() 124 stats.n_allocs++; in Allocate() 125 stats.currently_allocated += map_size; in Allocate() 126 stats.max_allocated = Max(stats.max_allocated, stats.currently_allocated); in Allocate() 127 stats.by_size_log[size_log]++; in Allocate() 144 stats.n_frees++; in Deallocate() 145 stats.currently_allocated -= h->map_size; in Deallocate() 258 stats.n_allocs, stats.n_allocs - stats.n_frees, in PrintStats() 259 stats.currently_allocated >> 10, stats.max_allocated >> 20); in PrintStats() 261 uptr c = stats.by_size_log[i]; in PrintStats() [all …]
|
/openbsd/gnu/llvm/lldb/source/Utility/ |
H A D | Timer.cpp | 145 Stats stats{i->m_name, nanos, nanos_total, count}; in DumpCategoryTimes() local 146 sorted.push_back(stats); in DumpCategoryTimes() 155 for (const auto &stats : sorted) in DumpCategoryTimes() local 158 stats.nanos / 1000000000., stats.nanos_total / 1000000000., in DumpCategoryTimes() 159 (stats.nanos_total - stats.nanos) / 1000000000., stats.count, in DumpCategoryTimes() 160 stats.name); in DumpCategoryTimes()
|
/openbsd/usr.sbin/iscsid/ |
H A D | vscsi.c | 39 struct vscsi_stats stats; member 82 v.stats.cnt_i2t++; in vscsi_dispatch() 154 v.stats.cnt_read++; in vscsi_data() 155 v.stats.bytes_rd += len; in vscsi_data() 157 v.stats.cnt_write++; in vscsi_data() 158 v.stats.bytes_wr += len; in vscsi_data() 173 v.stats.cnt_t2i++; in vscsi_status() 175 v.stats.cnt_t2i_status[status]++; in vscsi_status() 196 v.stats.cnt_probe++; in vscsi_event() 198 v.stats.cnt_detach++; in vscsi_event() [all …]
|