Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 93) sorted by relevance

1234

/mirbsd/src/gnu/usr.sbin/sendmail/mailstats/
Dmailstats.c67 struct statistics stats; variable
224 if ((fd < 0) || (i = read(fd, &stats, sizeof stats)) < 0)
235 if ((i = read(fd, &stats, sizeof stats)) < 0)
246 memset((ARBPTR_T) &stats, '\0', sizeof stats);
247 (void) time(&stats.stat_itime);
252 if (stats.stat_magic != STAT_MAGIC)
259 else if (stats.stat_version != STAT_VERSION)
264 stats.stat_version);
268 else if (i != sizeof stats || stats.stat_size != sizeof(stats))
281 (long) stats.stat_itime, (long) now);
[all …]
/mirbsd/src/gnu/usr.sbin/sendmail/sendmail/
Dstats.c138 struct statistics stats; local
165 if (read(fd, (char *) &stats, sizeof(stats)) == sizeof(stats) &&
166 stats.stat_size == sizeof(stats) &&
167 stats.stat_magic == Stat.stat_magic &&
168 stats.stat_version == Stat.stat_version)
175 stats.stat_nf[i] += Stat.stat_nf[i];
176 stats.stat_bf[i] += Stat.stat_bf[i];
177 stats.stat_nt[i] += Stat.stat_nt[i];
178 stats.stat_bt[i] += Stat.stat_bt[i];
179 stats.stat_nr[i] += Stat.stat_nr[i];
[all …]
/mirbsd/src/sbin/ancontrol/
Dancontrol.c375 struct an_ltv_stats *stats; in an_dumpstats() local
387 stats = (struct an_ltv_stats *)ptr; in an_dumpstats()
389 printf("RX overruns:\t\t\t\t\t[ %u ]\n", stats->an_rx_overruns); in an_dumpstats()
391 stats->an_rx_plcp_csum_errs); in an_dumpstats()
393 stats->an_rx_plcp_format_errs); in an_dumpstats()
395 stats->an_rx_plcp_len_errs); in an_dumpstats()
397 stats->an_rx_mac_crc_errs); in an_dumpstats()
399 stats->an_rx_mac_crc_ok); in an_dumpstats()
401 stats->an_rx_wep_errs); in an_dumpstats()
403 stats->an_rx_wep_ok); in an_dumpstats()
[all …]
/mirbsd/src/sys/net/
Dppp-deflate.c66 struct compstat stats; member
88 static void z_comp_stats(void *state, struct compstat *stats);
184 bzero(&state->stats, sizeof(state->stats));
345 state->stats.comp_bytes += olen;
346 state->stats.comp_packets++;
352 state->stats.inc_bytes += orig_len;
353 state->stats.inc_packets++;
356 state->stats.unc_bytes += orig_len;
357 state->stats.unc_packets++;
363 z_comp_stats(arg, stats) in z_comp_stats() argument
[all …]
Dbsd-comp.c143 static void bsd_comp_stats(void *state, struct compstat *stats);
265 bsd_comp_stats(state, stats) in bsd_comp_stats() argument
267 struct compstat *stats;
272 stats->unc_bytes = db->uncomp_bytes;
273 stats->unc_packets = db->uncomp_count;
274 stats->comp_bytes = db->comp_bytes;
275 stats->comp_packets = db->comp_count;
276 stats->inc_bytes = db->incomp_bytes;
277 stats->inc_packets = db->incomp_count;
278 stats->ratio = db->in_count;
[all …]
Dif_ppp.h109 struct ppp_stats stats; member
114 struct ppp_comp_stats stats; member
Dppp-comp.h74 void (*comp_stat)(void *state, struct compstat *stats);
91 void (*decomp_stat)(void *state, struct compstat *stats);
/mirbsd/src/sys/dev/raidframe/
Drf_freelist.h67 bzero((char *)&((_fl_)->stats), sizeof(RF_FreeListStats_t)); \
68 (_fl_)->stats.file = __FILE__; \
69 (_fl_)->stats.line = __LINE__; \
74 (_fl_)->stats.allocations++; \
75 (_fl_)->stats.outstanding++; \
76 if ((_fl_)->stats.outstanding > (_fl_)->stats.max_outstanding) \
77 (_fl_)->stats.max_outstanding = \
78 (_fl_)->stats.outstanding; \
83 if ((_fl_)->free_cnt > (_fl_)->stats.max_free) \
84 (_fl_)->stats.max_free = (_fl_)->free_cnt; \
[all …]
/mirbsd/src/usr.sbin/ppp/ppp/
Dhdlc.c332 p->hdlc.stats.badfcs++; in hdlc_LayerPull()
395 hdlc->stats.badfcs); in hdlc_ReportStatus()
397 HDLC_ADDR, hdlc->stats.badaddr); in hdlc_ReportStatus()
399 HDLC_UI, hdlc->stats.badcommand); in hdlc_ReportStatus()
401 hdlc->stats.unknownproto); in hdlc_ReportStatus()
413 if (memcmp(&hdlc->laststats, &hdlc->stats, sizeof hdlc->stats)) { in hdlc_ReportTime()
417 hdlc->stats.badfcs - hdlc->laststats.badfcs, in hdlc_ReportTime()
418 hdlc->stats.badaddr - hdlc->laststats.badaddr, in hdlc_ReportTime()
419 hdlc->stats.badcommand - hdlc->laststats.badcommand, in hdlc_ReportTime()
420 hdlc->stats.unknownproto - hdlc->laststats.unknownproto); in hdlc_ReportTime()
[all …]
Dlink.c77 if (l->stats.gather) { in link_AddInOctets()
78 throughput_addin(&l->stats.total, n); in link_AddInOctets()
79 if (l->stats.parent) in link_AddInOctets()
80 throughput_addin(l->stats.parent, n); in link_AddInOctets()
87 if (l->stats.gather) { in link_AddOutOctets()
88 throughput_addout(&l->stats.total, n); in link_AddOutOctets()
89 if (l->stats.parent) in link_AddOutOctets()
90 throughput_addout(l->stats.parent, n); in link_AddOutOctets()
395 p->hdlc.stats.unknownproto++; in Despatch()
Dmp.c197 percent = MAX(mp->link.stats.total.in.OctetsPerSecond, in mp_UpDown()
198 mp->link.stats.total.out.OctetsPerSecond) * 800 / in mp_UpDown()
212 throughput_stop(&mp->link.stats.total); in mp_StopAutoloadTimer()
218 if (mp->link.stats.total.SamplePeriod != mp->cfg.autoload.period) { in mp_CheckAutoloadTimer()
219 throughput_destroy(&mp->link.stats.total); in mp_CheckAutoloadTimer()
220 throughput_init(&mp->link.stats.total, mp->cfg.autoload.period); in mp_CheckAutoloadTimer()
221 throughput_callback(&mp->link.stats.total, mp_UpDown, mp); in mp_CheckAutoloadTimer()
225 throughput_start(&mp->link.stats.total, "MP throughput", 1); in mp_CheckAutoloadTimer()
233 if (mp->link.stats.total.SamplePeriod != mp->cfg.autoload.period) in mp_RestartAutoloadTimer()
236 throughput_clear(&mp->link.stats.total, THROUGHPUT_OVERALL, NULL); in mp_RestartAutoloadTimer()
[all …]
Dphysical.c190 throughput_init(&p->link.stats.total, SAMPLE_PERIOD); in physical_Create()
191 p->link.stats.parent = dl->bundle->ncp.mp.active ? in physical_Create()
192 &dl->bundle->ncp.mp.link.stats.total : NULL; in physical_Create()
193 p->link.stats.gather = 1; in physical_Create()
371 throughput_stop(&p->link.stats.total); in physical_Close()
372 throughput_log(&p->link.stats.total, LogPHASE, p->link.name); in physical_Close()
406 throughput_destroy(&p->link.stats.total); in physical_Destroy()
537 throughput_disp(&p->link.stats.total, arg->prompt); in physical_ShowStatus()
642 p->link.stats.total.in.SampleOctets = (long long *)iov[(*niov)++].iov_base; in iov2physical()
643 p->link.stats.total.out.SampleOctets = (long long *)iov[(*niov)++].iov_base; in iov2physical()
[all …]
Dacf.c89 p->hdlc.stats.badaddr++; in acf_LayerPull()
96 p->hdlc.stats.badcommand++; in acf_LayerPull()
/mirbsd/src/gnu/usr.bin/perl/lib/CGI/eg/
Dfile_upload.cgi36 my %stats;
51 grep($stats{$_}++,param('count'));
52 if (%stats) {
53 print strong("Lines: "),$lines,br if $stats{'count lines'};
54 print strong("Words: "),$words,br if $stats{'count words'};
55 print strong("Characters: "),$characters,br if $stats{'count characters'};
/mirbsd/src/sys/dev/pci/
Dif_em.c3189 &sc->stats,
3537 sc->stats.symerrs += E1000_READ_REG(&sc->hw, SYMERRS);
3538 sc->stats.sec += E1000_READ_REG(&sc->hw, SEC);
3540 sc->stats.crcerrs += E1000_READ_REG(&sc->hw, CRCERRS);
3541 sc->stats.mpc += E1000_READ_REG(&sc->hw, MPC);
3542 sc->stats.scc += E1000_READ_REG(&sc->hw, SCC);
3543 sc->stats.ecol += E1000_READ_REG(&sc->hw, ECOL);
3545 sc->stats.mcc += E1000_READ_REG(&sc->hw, MCC);
3546 sc->stats.latecol += E1000_READ_REG(&sc->hw, LATECOL);
3547 sc->stats.colc += E1000_READ_REG(&sc->hw, COLC);
[all …]
Dif_em_hw.c4478 struct em_hw_stats *stats, in em_tbi_adjust_stats() argument
4491 stats->crcerrs--; in em_tbi_adjust_stats()
4493 stats->gprc++; in em_tbi_adjust_stats()
4496 carry_bit = 0x80000000 & stats->gorcl; in em_tbi_adjust_stats()
4497 stats->gorcl += frame_len; in em_tbi_adjust_stats()
4505 if(carry_bit && ((stats->gorcl & 0x80000000) == 0)) in em_tbi_adjust_stats()
4506 stats->gorch++; in em_tbi_adjust_stats()
4513 stats->bprc++; in em_tbi_adjust_stats()
4516 stats->mprc++; in em_tbi_adjust_stats()
4522 if(stats->roc > 0) in em_tbi_adjust_stats()
[all …]
/mirbsd/src/sys/dev/usb/
Dueagle.c506 CR(sc, UEAGLE_CMV_STAT, 0, &sc->stats.phy.status); in ueagle_stat()
507 switch ((sc->stats.phy.status >> 8) & 0xf) { in ueagle_stat()
528 CR(sc, UEAGLE_CMV_DIAG, 1, &sc->stats.phy.flags); in ueagle_stat()
529 if (sc->stats.phy.flags & 0x10) { in ueagle_stat()
531 sc->stats.phy.status = 0; in ueagle_stat()
537 sc->stats.phy.dsrate = ((data >> 16) & 0x1ff) * 32; in ueagle_stat()
538 sc->stats.phy.usrate = (data & 0xff) * 32; in ueagle_stat()
541 sc->stats.phy.attenuation = (data & 0xff) / 2; in ueagle_stat()
543 CR(sc, UEAGLE_CMV_DIAG, 3, &sc->stats.atm.cells_crc_errors); in ueagle_stat()
544 CR(sc, UEAGLE_CMV_DIAG, 22, &sc->stats.phy.dserror); in ueagle_stat()
[all …]
/mirbsd/src/usr.bin/ssh/
Dsftp-server.c448 send_names(u_int32_t id, int count, const Stat *stats) in send_names() argument
459 buffer_put_cstring(&msg, stats[i].name); in send_names()
460 buffer_put_cstring(&msg, stats[i].long_name); in send_names()
461 encode_attrib(&msg, &stats[i].attrib); in send_names()
889 Stat *stats; in process_readdir() local
892 stats = xcalloc(nstats, sizeof(Stat)); in process_readdir()
896 stats = xrealloc(stats, nstats, sizeof(Stat)); in process_readdir()
903 stat_to_attrib(&st, &(stats[count].attrib)); in process_readdir()
904 stats[count].name = xstrdup(dp->d_name); in process_readdir()
905 stats[count].long_name = ls_file(dp->d_name, &st, 0); in process_readdir()
[all …]
/mirbsd/src/sys/altq/
Daltq_cbq.c404 class_stats_t stats; in cbq_getqstats() local
413 if (*nbytes < sizeof(stats)) in cbq_getqstats()
416 get_class_stats(&stats, cl); in cbq_getqstats()
418 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in cbq_getqstats()
420 *nbytes = sizeof(stats); in cbq_getqstats()
Daltq_priq.c173 struct priq_classstats stats; in priq_getqstats() local
182 if (*nbytes < sizeof(stats)) in priq_getqstats()
185 get_class_stats(&stats, cl); in priq_getqstats()
187 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in priq_getqstats()
189 *nbytes = sizeof(stats); in priq_getqstats()
/mirbsd/src/lib/librpcsvc/
Drstat.x105 struct stats { /* RSTATVERS_ORIG */ struct
146 stats
/mirbsd/src/usr.bin/systat/
Diostat.c63 static int stats(int, int, int);
235 row = stats(row, INSET, i); in showiostat()
255 (void) stats(row + 3, col, i); in showiostat()
261 stats(int row, int col, int dn) in stats() function
/mirbsd/src/lib/libssl/src/ssl/
Dssl_lib.c1007 return(ctx->stats.sess_connect); in SSL_CTX_ctrl()
1009 return(ctx->stats.sess_connect_good); in SSL_CTX_ctrl()
1011 return(ctx->stats.sess_connect_renegotiate); in SSL_CTX_ctrl()
1013 return(ctx->stats.sess_accept); in SSL_CTX_ctrl()
1015 return(ctx->stats.sess_accept_good); in SSL_CTX_ctrl()
1017 return(ctx->stats.sess_accept_renegotiate); in SSL_CTX_ctrl()
1019 return(ctx->stats.sess_hit); in SSL_CTX_ctrl()
1021 return(ctx->stats.sess_cb_hit); in SSL_CTX_ctrl()
1023 return(ctx->stats.sess_miss); in SSL_CTX_ctrl()
1025 return(ctx->stats.sess_timeout); in SSL_CTX_ctrl()
[all …]
Dssl_sess.c298 s->ctx->stats.sess_miss++; in ssl_get_prev_session()
304 s->ctx->stats.sess_cb_hit++; in ssl_get_prev_session()
386 s->ctx->stats.sess_timeout++; in ssl_get_prev_session()
392 s->ctx->stats.sess_hit++; in ssl_get_prev_session()
470 ctx->stats.sess_cache_full++; in SSL_CTX_add_session()
/mirbsd/src/usr.sbin/httpd/src/support/
Dlogresolve.c55 static void stats(FILE *output);
229 static void stats (FILE *output) in stats() function
383 stats(fp); in main()

1234