qcacmn: Log memory stats in host driver
Add logs in driver to log current memory footprint in init functions. Add wlan_mem_stats to sysfs node in both perf and defconfig builds. The stats are included under MCL feature DCONFIG_WLAN_SYSFS_MEM_STATS. Change-Id: I79c6d418a5762cddf52ab3bc0b0c93993fa7fd84 CRs-Fixed: 2635192
This commit is contained in:
@@ -10684,6 +10684,11 @@ dp_soc_attach(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
|
||||
dp_soc_set_interrupt_mode(soc);
|
||||
dp_soc_set_def_pdev(soc);
|
||||
|
||||
dp_info("Mem stats: DMA = %u HEAP = %u SKB = %u",
|
||||
qdf_dma_mem_stats_read(),
|
||||
qdf_heap_mem_stats_read(),
|
||||
qdf_skb_mem_stats_read());
|
||||
|
||||
return soc;
|
||||
fail5:
|
||||
dp_soc_srng_free(soc);
|
||||
@@ -10876,6 +10881,11 @@ void *dp_soc_init(struct dp_soc *soc, HTC_HANDLE htc_handle,
|
||||
/* initialize work queue for stats processing */
|
||||
qdf_create_work(0, &soc->htt_stats.work, htt_t2h_stats_handler, soc);
|
||||
|
||||
dp_info("Mem stats: DMA = %u HEAP = %u SKB = %u",
|
||||
qdf_dma_mem_stats_read(),
|
||||
qdf_heap_mem_stats_read(),
|
||||
qdf_skb_mem_stats_read());
|
||||
|
||||
return soc;
|
||||
fail6:
|
||||
htt_soc_htc_dealloc(soc->htt_handle);
|
||||
@@ -12429,6 +12439,11 @@ static inline QDF_STATUS dp_pdev_init(struct cdp_soc_t *txrx_soc,
|
||||
dp_init_tso_stats(pdev);
|
||||
dp_tx_ppdu_stats_attach(pdev);
|
||||
|
||||
dp_info("Mem stats: DMA = %u HEAP = %u SKB = %u",
|
||||
qdf_dma_mem_stats_read(),
|
||||
qdf_heap_mem_stats_read(),
|
||||
qdf_skb_mem_stats_read());
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
fail9:
|
||||
dp_ipa_uc_detach(soc, pdev);
|
||||
|
Reference in New Issue
Block a user