Lines Matching refs:pps
61 #define PPS(pps) pps, "pkt/s" argument
124 __u64 pps; member
138 __u64 pps; member
593 __u64 pps = 0; in calc_pps() local
597 pps = sample_round(packets / period_); in calc_pps()
599 return pps; in calc_pps()
605 __u64 pps = 0; in calc_drop_pps() local
609 pps = sample_round(packets / period_); in calc_drop_pps()
611 return pps; in calc_drop_pps()
617 __u64 pps = 0; in calc_errs_pps() local
621 pps = sample_round(packets / period_); in calc_errs_pps()
623 return pps; in calc_errs_pps()
629 __u64 pps = 0; in calc_info_pps() local
633 pps = sample_round(packets / period_); in calc_info_pps()
635 return pps; in calc_info_pps()
654 double t, pps, drop, err; in stats_get_rx_cnt() local
666 pps = calc_pps(r, p, t); in stats_get_rx_cnt()
669 if (!pps && !drop && !err) in stats_get_rx_cnt()
675 str, PPS(pps), DROP(drop), ERR(err)); in stats_get_rx_cnt()
679 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_rx_cnt()
683 out->rx_cnt.pps = pps; in stats_get_rx_cnt()
686 out->totals.rx += pps; in stats_get_rx_cnt()
697 double t, pps, drop, err; in stats_get_cpumap_enqueue() local
706 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_cpumap_enqueue()
710 if (pps > 0 || drop > 0) { in stats_get_cpumap_enqueue()
716 err = pps / err; /* calc average bulk size */ in stats_get_cpumap_enqueue()
721 str, PPS(pps), DROP(drop), err, "bulk-avg"); in stats_get_cpumap_enqueue()
729 pps = calc_pps(r, p, t); in stats_get_cpumap_enqueue()
732 if (!pps && !drop && !err) in stats_get_cpumap_enqueue()
737 err = pps / err; /* calc average bulk size */ in stats_get_cpumap_enqueue()
741 str, PPS(pps), DROP(drop), err, "bulk-avg"); in stats_get_cpumap_enqueue()
790 double t, pps, drop, err; in stats_get_cpumap_kthread() local
797 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_cpumap_kthread()
802 pps ? "kthread total" : "kthread", PPS(pps), DROP(drop), err, in stats_get_cpumap_kthread()
810 pps = calc_pps(r, p, t); in stats_get_cpumap_kthread()
813 if (!pps && !drop && !err) in stats_get_cpumap_kthread()
819 str, PPS(pps), DROP(drop), err, "sched"); in stats_get_cpumap_kthread()
829 double t, pps; in stats_get_redirect_cnt() local
840 pps = calc_pps(r, p, t); in stats_get_redirect_cnt()
841 if (!pps) in stats_get_redirect_cnt()
845 print_default(" %-18s " FMT_COLUMNf "\n", str, REDIR(pps)); in stats_get_redirect_cnt()
849 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_redirect_cnt()
850 out->redir_cnt.suc = pps; in stats_get_redirect_cnt()
851 out->totals.redir += pps; in stats_get_redirect_cnt()
954 double pps, drop, info, err; in stats_get_devmap_xmit() local
967 pps = calc_pps(r, p, t); in stats_get_devmap_xmit()
971 if (!pps && !drop && !err) in stats_get_devmap_xmit()
977 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit()
980 str, XMIT(pps), DROP(drop), err, "drv_err/s", in stats_get_devmap_xmit()
984 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_devmap_xmit()
988 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit()
991 out->xmit_cnt.pps = pps; in stats_get_devmap_xmit()
995 out->totals.xmit += pps; in stats_get_devmap_xmit()
1007 double pps, drop, info, err; in stats_get_devmap_xmit_multi() local
1046 pps = calc_pps(&r->total, &p->total, t); in stats_get_devmap_xmit_multi()
1050 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit_multi()
1055 out->totals.xmit += pps; in stats_get_devmap_xmit_multi()
1070 if (pps || drop || err) { in stats_get_devmap_xmit_multi()
1073 __COLUMN(".2f") "\n", str, XMIT(pps), DROP(drop), in stats_get_devmap_xmit_multi()
1084 pps = calc_pps(rc, pc, t); in stats_get_devmap_xmit_multi()
1088 if (!pps && !drop && !err) in stats_get_devmap_xmit_multi()
1094 info = (pps + drop) / info; /* calc avg bulk */ in stats_get_devmap_xmit_multi()
1097 __COLUMN(".2f") "\n", str, XMIT(pps), in stats_get_devmap_xmit_multi()
1123 str = (sample_log_level & LL_DEFAULT) && out->rx_cnt.pps ? in stats_print()
1128 str, PPS(out->rx_cnt.pps), DROP(out->rx_cnt.drop), in stats_print()
1171 str = (sample_log_level & LL_DEFAULT) && out->xmit_cnt.pps ? in stats_print()
1178 str, XMIT(out->xmit_cnt.pps), in stats_print()