qcacmn: Add support to enable tx hw latency stats at run time

This feature can be enabled runtime using sysfs interface.
Support is added to dump and clear the histogram stats.

The lower delay regions has to be more granular to indicate any
medium related issues for time sensitive XR applications.

Change-Id: I0a44a54d12d92ce016de349810cb2bedebaf9a58
CRs-Fixed: 2981006
This commit is contained in:
Yeshwanth Sriram Guntuka
2021-11-15 21:41:57 +05:30
committed by Madan Koyyalamudi
parent 3de51ff2c5
commit df666b7116
13 changed files with 515 additions and 103 deletions

View File

@@ -1781,6 +1781,7 @@ struct cdp_rx_ingress_stats {
* @tx: cdp tx stats
* @rx: cdp rx stats
* @tso_stats: tso stats
* @tid_tx_stats: tid tx stats
*/
struct cdp_vdev_stats {
struct cdp_tx_ingress_stats tx_i;
@@ -1788,6 +1789,10 @@ struct cdp_vdev_stats {
struct cdp_tx_stats tx;
struct cdp_rx_stats rx;
struct cdp_tso_stats tso_stats;
#ifdef HW_TX_DELAY_STATS_ENABLE
struct cdp_tid_tx_stats tid_tx_stats[CDP_MAX_TX_COMP_RINGS]
[CDP_MAX_DATA_TIDS];
#endif
};
/* struct cdp_calibr_stats - Calibrated stats