Lines Matching full:pps
60 #define PPS(pps) pps, "pkt/s" macro
123 __u64 pps; member
137 __u64 pps; member
592 __u64 pps = 0; in calc_pps() local
596 pps = sample_round(packets / period_); in calc_pps()
598 return pps; in calc_pps()
604 __u64 pps = 0; in calc_drop_pps() local
608 pps = sample_round(packets / period_); in calc_drop_pps()
610 return pps; in calc_drop_pps()
616 __u64 pps = 0; in calc_errs_pps() local
620 pps = sample_round(packets / period_); in calc_errs_pps()
622 return pps; in calc_errs_pps()
628 __u64 pps = 0; in calc_info_pps() local
632 pps = sample_round(packets / period_); in calc_info_pps()
634 return pps; in calc_info_pps()
653 double t, pps, drop, err; in stats_get_rx_cnt() local
665 pps = calc_pps(r, p, t); in stats_get_rx_cnt()
668 if (!pps && !drop && !err) in stats_get_rx_cnt()
674 str, PPS(pps), DROP(drop), ERR(err)); in stats_get_rx_cnt()
678 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_rx_cnt()
682 out->rx_cnt.pps = pps; in stats_get_rx_cnt()
685 out->totals.rx += pps; in stats_get_rx_cnt()
696 double t, pps, drop, err; in stats_get_cpumap_enqueue() local
705 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_cpumap_enqueue()
709 if (pps > 0 || drop > 0) { in stats_get_cpumap_enqueue()
715 err = pps / err; /* calc average bulk size */ in stats_get_cpumap_enqueue()
720 str, PPS(pps), DROP(drop), err, "bulk-avg"); in stats_get_cpumap_enqueue()
728 pps = calc_pps(r, p, t); in stats_get_cpumap_enqueue()
731 if (!pps && !drop && !err) in stats_get_cpumap_enqueue()
736 err = pps / err; /* calc average bulk size */ in stats_get_cpumap_enqueue()
740 str, PPS(pps), DROP(drop), err, "bulk-avg"); in stats_get_cpumap_enqueue()
789 double t, pps, drop, err; in stats_get_cpumap_kthread() local
796 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_cpumap_kthread()
801 pps ? "kthread total" : "kthread", PPS(pps), DROP(drop), err, in stats_get_cpumap_kthread()
809 pps = calc_pps(r, p, t); in stats_get_cpumap_kthread()
812 if (!pps && !drop && !err) in stats_get_cpumap_kthread()
818 str, PPS(pps), DROP(drop), err, "sched"); in stats_get_cpumap_kthread()
828 double t, pps; in stats_get_redirect_cnt() local
839 pps = calc_pps(r, p, t); in stats_get_redirect_cnt()
840 if (!pps) in stats_get_redirect_cnt()
844 print_default(" %-18s " FMT_COLUMNf "\n", str, REDIR(pps)); in stats_get_redirect_cnt()
848 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_redirect_cnt()
849 out->redir_cnt.suc = pps; in stats_get_redirect_cnt()
850 out->totals.redir += pps; in stats_get_redirect_cnt()
953 double pps, drop, info, err; in stats_get_devmap_xmit() local
966 pps = calc_pps(r, p, t); in stats_get_devmap_xmit()
970 if (!pps && !drop && !err) in stats_get_devmap_xmit()
976 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit()
979 str, XMIT(pps), DROP(drop), err, "drv_err/s", in stats_get_devmap_xmit()
983 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_devmap_xmit()
987 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit()
990 out->xmit_cnt.pps = pps; in stats_get_devmap_xmit()
994 out->totals.xmit += pps; in stats_get_devmap_xmit()
1006 double pps, drop, info, err; in stats_get_devmap_xmit_multi() local
1045 pps = calc_pps(&r->total, &p->total, t); in stats_get_devmap_xmit_multi()
1049 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit_multi()
1054 out->totals.xmit += pps; in stats_get_devmap_xmit_multi()
1069 if (pps || drop || err) { in stats_get_devmap_xmit_multi()
1072 __COLUMN(".2f") "\n", str, XMIT(pps), DROP(drop), in stats_get_devmap_xmit_multi()
1083 pps = calc_pps(rc, pc, t); in stats_get_devmap_xmit_multi()
1087 if (!pps && !drop && !err) in stats_get_devmap_xmit_multi()
1093 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit_multi()
1096 __COLUMN(".2f") "\n", str, XMIT(pps), in stats_get_devmap_xmit_multi()
1122 str = (sample_log_level & LL_DEFAULT) && out->rx_cnt.pps ? in stats_print()
1127 str, PPS(out->rx_cnt.pps), DROP(out->rx_cnt.drop), in stats_print()
1170 str = (sample_log_level & LL_DEFAULT) && out->xmit_cnt.pps ? in stats_print()
1177 str, XMIT(out->xmit_cnt.pps), in stats_print()