qcacmn: qref debug memory tracker

add multiple history array to keep track of mem allocation and
deallocation for qref table.

Change-Id: I9fa97fbe5a5c36509cbb5a458851a152200318a5
CRs-Fixed: 3475981
这个提交包含在:
Ruben Columbus
2023-05-22 16:42:02 -07:00
提交者 Rahul Choudhary
父节点 9d022375f6
当前提交 d8334769f4
修改 8 个文件,包含 236 行新增1 行删除

查看文件

@@ -176,6 +176,7 @@ struct wlan_srng_cfg {
* @int_timer_threshold_mon:
* @tx_ring_size:
* @time_control_bp:
* @qref_control_size: list size for memory history arrays
* @tx_comp_ring_size:
* @tx_comp_ring_size_nss:
* @int_rx_mon_ring_mask: Bitmap of Rx monitor ring interrupts mapped to each
@@ -376,6 +377,7 @@ struct wlan_cfg_dp_soc_ctxt {
int int_timer_threshold_mon;
int tx_ring_size;
int time_control_bp;
int qref_control_size;
int tx_comp_ring_size;
int tx_comp_ring_size_nss;
uint8_t int_tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
@@ -1580,6 +1582,14 @@ void wlan_cfg_set_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
*/
int wlan_cfg_time_control_bp(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_qref_control_size - Get debug array size
* @cfg: soc configuration context
*
* Return: array size
*/
int wlan_cfg_qref_control_size(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_tx_comp_ring_size - Get Tx completion ring size (WBM Ring)
* @cfg: soc configuration context