Home
last modified time | relevance | path

Searched refs:pstats (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/sys/dev/bxe/
H A Dbxe_stats.c621 struct host_port_stats *pstats = BXE_SP(sc, port_stats); in bxe_bmac_stats_update() local
698 pstats->pfc_frames_tx_hi = new->tx_stat_gtpp_hi; in bxe_bmac_stats_update()
699 pstats->pfc_frames_tx_lo = new->tx_stat_gtpp_lo; in bxe_bmac_stats_update()
700 ADD_64(pstats->pfc_frames_tx_hi, fwstats->pfc_frames_tx_hi, in bxe_bmac_stats_update()
701 pstats->pfc_frames_tx_lo, fwstats->pfc_frames_tx_lo); in bxe_bmac_stats_update()
703 pstats->pfc_frames_rx_hi = new->rx_stat_grpp_hi; in bxe_bmac_stats_update()
704 pstats->pfc_frames_rx_lo = new->rx_stat_grpp_lo; in bxe_bmac_stats_update()
705 ADD_64(pstats->pfc_frames_rx_hi, fwstats->pfc_frames_rx_hi, in bxe_bmac_stats_update()
706 pstats->pfc_frames_rx_lo, fwstats->pfc_frames_rx_lo); in bxe_bmac_stats_update()
709 estats->pause_frames_received_hi = pstats->mac_stx[1].rx_stat_mac_xpf_hi; in bxe_bmac_stats_update()
[all …]
H A Dbxe_stats.h554 DIFF_64(diff.hi, new->s##_hi, pstats->mac_stx[0].t##_hi, \
555 diff.lo, new->s##_lo, pstats->mac_stx[0].t##_lo); \
556 pstats->mac_stx[0].t##_hi = new->s##_hi; \
557 pstats->mac_stx[0].t##_lo = new->s##_lo; \
558 ADD_64(pstats->mac_stx[1].t##_hi, diff.hi, \
559 pstats->mac_stx[1].t##_lo, diff.lo); \
579 ADD_64(pstats->mac_stx[1].t##_hi, new->diff##_hi, \
580 pstats->mac_stx[1].t##_lo, new->diff##_lo); \
585 ADD_EXTEND_64(pstats->mac_stx[1].s##_hi, \
586 pstats->mac_stx[1].s##_lo, \
/freebsd/sys/kern/
H A Dkern_clock.c450 hardclock_itimer(struct thread *td, struct pstats *pstats, int cnt, int usermode) in hardclock_itimer() argument
458 timevalisset(&pstats->p_timer[ITIMER_VIRTUAL].it_value)) { in hardclock_itimer()
460 if (itimerdecr(&pstats->p_timer[ITIMER_VIRTUAL], in hardclock_itimer()
465 if (timevalisset(&pstats->p_timer[ITIMER_PROF].it_value)) { in hardclock_itimer()
467 if (itimerdecr(&pstats->p_timer[ITIMER_PROF], in hardclock_itimer()
479 struct pstats *pstats; in hardclock() local
503 pstats = p->p_stats; in hardclock()
505 timevalisset(&pstats->p_timer[ITIMER_VIRTUAL].it_value) || in hardclock()
506 timevalisset(&pstats->p_timer[ITIMER_PROF].it_value))) in hardclock()
507 hardclock_itimer(td, pstats, cnt, usermode); in hardclock()
H A Dkern_proc.c1368 struct pstats *
1372 return (malloc(sizeof(struct pstats), M_SUBPROC, M_ZERO|M_WAITOK)); in pstats_alloc()
1379 pstats_fork(struct pstats *src, struct pstats *dst) in pstats_fork()
1383 __rangeof(struct pstats, pstat_startzero, pstat_endzero)); in pstats_fork()
1385 __rangeof(struct pstats, pstat_startcopy, pstat_endcopy)); in pstats_fork()
1389 pstats_free(struct pstats *ps) in pstats_free()
/freebsd/sys/dev/axgbe/
H A Dif_axgbe.c244 struct xgbe_mmc_stats *pstats = &pdata->mmc_stats; in axgbe_get_counter() local
252 return (pstats->rxframecount_gb); in axgbe_get_counter()
254 return (pstats->rxframecount_gb - in axgbe_get_counter()
255 pstats->rxbroadcastframes_g - in axgbe_get_counter()
256 pstats->rxmulticastframes_g - in axgbe_get_counter()
257 pstats->rxunicastframes_g); in axgbe_get_counter()
259 return (pstats->txframecount_gb); in axgbe_get_counter()
261 return (pstats->txframecount_gb - pstats->txframecount_g); in axgbe_get_counter()
263 return (pstats->rxoctetcount_gb); in axgbe_get_counter()
265 return (pstats->txoctetcount_gb); in axgbe_get_counter()
H A Dif_axgbe_pci.c2405 struct xgbe_mmc_stats *pstats = &pdata->mmc_stats; in axgbe_if_get_counter() local
2411 return (pstats->rxframecount_gb); in axgbe_if_get_counter()
2413 return (pstats->rxframecount_gb - pstats->rxbroadcastframes_g - in axgbe_if_get_counter()
2414 pstats->rxmulticastframes_g - pstats->rxunicastframes_g); in axgbe_if_get_counter()
2416 return (pstats->txframecount_gb); in axgbe_if_get_counter()
2418 return (pstats->txframecount_gb - pstats->txframecount_g); in axgbe_if_get_counter()
2420 return (pstats->rxoctetcount_gb); in axgbe_if_get_counter()
2422 return (pstats->txoctetcount_gb); in axgbe_if_get_counter()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dhtt_rx.c3813 struct ath10k_per_peer_tx_stats *pstats, in ath10k_accumulate_per_peer_tx_stats() argument
3827 mcs = ATH10K_HW_MCS_RATE(pstats->ratecode); in ath10k_accumulate_per_peer_tx_stats()
3837 STATS_OP_FMT(SUCC).vht[0][mcs] += pstats->succ_bytes; in ath10k_accumulate_per_peer_tx_stats()
3838 STATS_OP_FMT(SUCC).vht[1][mcs] += pstats->succ_pkts; in ath10k_accumulate_per_peer_tx_stats()
3839 STATS_OP_FMT(FAIL).vht[0][mcs] += pstats->failed_bytes; in ath10k_accumulate_per_peer_tx_stats()
3840 STATS_OP_FMT(FAIL).vht[1][mcs] += pstats->failed_pkts; in ath10k_accumulate_per_peer_tx_stats()
3841 STATS_OP_FMT(RETRY).vht[0][mcs] += pstats->retry_bytes; in ath10k_accumulate_per_peer_tx_stats()
3842 STATS_OP_FMT(RETRY).vht[1][mcs] += pstats->retry_pkts; in ath10k_accumulate_per_peer_tx_stats()
3844 STATS_OP_FMT(SUCC).ht[0][ht_idx] += pstats->succ_bytes; in ath10k_accumulate_per_peer_tx_stats()
3845 STATS_OP_FMT(SUCC).ht[1][ht_idx] += pstats->succ_pkts; in ath10k_accumulate_per_peer_tx_stats()
[all …]
/freebsd/lib/libusb/
H A Dlibusb20_ugen20.c673 ugen20_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstats) in ugen20_get_stats() argument
680 memset(pstats, 0, sizeof(*pstats)); in ugen20_get_stats()
682 pstats->xfer_ok[0] = st.uds_requests_ok[0]; in ugen20_get_stats()
683 pstats->xfer_ok[1] = st.uds_requests_ok[1]; in ugen20_get_stats()
684 pstats->xfer_ok[2] = st.uds_requests_ok[2]; in ugen20_get_stats()
685 pstats->xfer_ok[3] = st.uds_requests_ok[3]; in ugen20_get_stats()
687 pstats->xfer_fail[0] = st.uds_requests_fail[0]; in ugen20_get_stats()
688 pstats->xfer_fail[1] = st.uds_requests_fail[1]; in ugen20_get_stats()
689 pstats->xfer_fail[2] = st.uds_requests_fail[2]; in ugen20_get_stats()
690 pstats->xfer_fail[3] = st.uds_requests_fail[3]; in ugen20_get_stats()
H A Dlibusb20_int.h104 …def int (libusb20_get_stats_t)(struct libusb20_device *pdev, struct libusb20_device_stats *pstats);
H A Dlibusb20.c1058 libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstats) in libusb20_dev_get_stats() argument
1074 error = pdev->methods->get_stats(pdev, pstats); in libusb20_dev_get_stats()
/freebsd/lib/libkvm/
H A Dkvm_proc.c117 struct pstats pstats; in kvm_proclist()
231 if (KREAD(kd, (u_long)proc.p_stats, &pstats)) { in kvm_proclist()
236 kp->ki_start = pstats.p_start; in kvm_proclist()
243 kp->ki_rusage = pstats.p_ru; in kvm_proclist()
244 kp->ki_childstime = pstats.p_cru.ru_stime; in kvm_proclist()
245 kp->ki_childutime = pstats.p_cru.ru_utime; in kvm_proclist()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_l2.c1764 *p_addr = p_resp->pfdev_info.stats_info.pstats.address; in __ecore_get_vport_pstats_addrlen()
1765 *p_len = p_resp->pfdev_info.stats_info.pstats.len; in __ecore_get_vport_pstats_addrlen()
1774 struct eth_pstorm_per_queue_stat pstats; in __ecore_get_vport_pstats() local
1780 OSAL_MEMSET(&pstats, 0, sizeof(pstats)); in __ecore_get_vport_pstats()
1781 ecore_memcpy_from(p_hwfn, p_ptt, &pstats, in __ecore_get_vport_pstats()
1785 HILO_64_REGPAIR(pstats.sent_ucast_bytes); in __ecore_get_vport_pstats()
1787 HILO_64_REGPAIR(pstats.sent_mcast_bytes); in __ecore_get_vport_pstats()
1789 HILO_64_REGPAIR(pstats.sent_bcast_bytes); in __ecore_get_vport_pstats()
1791 HILO_64_REGPAIR(pstats.sent_ucast_pkts); in __ecore_get_vport_pstats()
1793 HILO_64_REGPAIR(pstats.sent_mcast_pkts); in __ecore_get_vport_pstats()
[all …]
H A Decore_ll2.c2138 struct core_ll2_pstorm_per_queue_stat pstats; in _ecore_ll2_get_pstats() local
2142 OSAL_MEMSET(&pstats, 0, sizeof(pstats)); in _ecore_ll2_get_pstats()
2145 ecore_memcpy_from(p_hwfn, p_ptt, &pstats, in _ecore_ll2_get_pstats()
2147 sizeof(pstats)); in _ecore_ll2_get_pstats()
2149 p_stats->sent_ucast_bytes += HILO_64_REGPAIR(pstats.sent_ucast_bytes); in _ecore_ll2_get_pstats()
2150 p_stats->sent_mcast_bytes += HILO_64_REGPAIR(pstats.sent_mcast_bytes); in _ecore_ll2_get_pstats()
2151 p_stats->sent_bcast_bytes += HILO_64_REGPAIR(pstats.sent_bcast_bytes); in _ecore_ll2_get_pstats()
2152 p_stats->sent_ucast_pkts += HILO_64_REGPAIR(pstats.sent_ucast_pkts); in _ecore_ll2_get_pstats()
2153 p_stats->sent_mcast_pkts += HILO_64_REGPAIR(pstats.sent_mcast_pkts); in _ecore_ll2_get_pstats()
2154 p_stats->sent_bcast_pkts += HILO_64_REGPAIR(pstats.sent_bcast_pkts); in _ecore_ll2_get_pstats()
H A Decore_vfpf_if.h177 struct pfvf_storm_stats pstats; member
H A Decore_sriov.c1738 p_stats->pstats.address = PXP_VF_BAR0_START_PSDM_ZONE_B + in ecore_iov_vf_mbx_acquire_stats()
1741 p_stats->pstats.len = sizeof(struct eth_pstorm_per_queue_stat); in ecore_iov_vf_mbx_acquire_stats()
/freebsd/sys/sys/
H A Dproc.h656 struct pstats *p_stats; /* (b) Accounting/statistics (CPU). */
1199 struct pstats *pstats_alloc(void);
1200 void pstats_fork(struct pstats *src, struct pstats *dst);
1201 void pstats_free(struct pstats *ps);
H A Dresourcevar.h53 struct pstats { struct
H A Duser.h242 struct pstats u_stats; /* *p_stats */
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c443 INC_PERF_COUNTER(priv->pstats.tx_poll); in mlx4_en_poll_tx_cq()
675 AVG_PERF_COUNTER(priv->pstats.inflight_avg, in mlx4_en_xmit()
679 AVG_PERF_COUNTER(priv->pstats.tx_pktsz_avg, mb->m_pkthdr.len); in mlx4_en_xmit()
H A Dmlx4_en_netdev.c1613 memset(&priv->pstats, 0, sizeof(priv->pstats)); in mlx4_en_clear_stats()
2744 &priv->pstats.tx_poll, "TX Poll calls"); in mlx4_en_sysctl_stat()
2746 &priv->pstats.tx_pktsz_avg, "TX average packet size"); in mlx4_en_sysctl_stat()
2748 &priv->pstats.inflight_avg, "TX average packets in-flight"); in mlx4_en_sysctl_stat()
2750 &priv->pstats.tx_coal_avg, "TX average coalesced completions"); in mlx4_en_sysctl_stat()
2752 &priv->pstats.rx_coal_avg, "RX average coalesced completions"); in mlx4_en_sysctl_stat()
H A Dmlx4_en_rx.c834 INC_PERF_COUNTER(priv->pstats.lro_misses); in mlx4_en_process_rx_cq()
855 AVG_PERF_COUNTER(priv->pstats.rx_coal_avg, polled); in mlx4_en_process_rx_cq()
H A Den.h604 struct mlx4_en_perf_stats pstats; member
/freebsd/contrib/ntp/ntpq/
H A Dntpq-subs.c56 static void pstats (struct parse *, FILE *);
155 { "pstats", pstats, { NTP_UINT, NO, NO, NO },
4141 * pstats - show statistics for a peer in pstats()
4144 pstats( in pstats()
4135 pstats( pstats() function
H A Dntpq-opts.def676 .It Ic pstats Ar associd
/freebsd/contrib/ntp/ntpdc/
H A Dntpdc-opts.def389 .It Ic pstats Ar peer_address Oo Ar ... Oc

12