summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>2016-10-27 14:56:41 -0700
committerqcabuildsw <qcabuildsw@localhost>2017-01-06 09:54:55 -0800
commit77da044787c68253e9fa9405571b3ee54d41d564 (patch)
tree06c5e634ebf1b4bb765c04aa31c1beff2fbcfe44 /include
parent6da21f5940187659e321bbebfe930fdd13aed887 (diff)
qcacmn: Add QDF memory stats
Create debug file system entries to show current QDF memory usage. The 'list' option adds a little overhead, which is minimized by locking node by node while traversing the entire allocated memory list. Major operation is lock-less, using node reference count. Following debugfs entries are added, 1. /sys/kernel/debug/<module_name>_qdf/mem/list This lists QDF allocation by file and line number. It takes some time to traverse the entire allocated list. 2. /sys/kernel/debug/<module_name>_qdf/mem/kmalloc This file shows total kmalloc done by qdf_mem_alloc(). 3. /sys/kernel/debug/<module_name>_qdf/mem/dma This file shows total allocation done by qdf_mem_alloc_consistent() Change-Id: Ie40a7cb6ee03dd58aebd0fbda0118ab06b64725a CRs-Fixed: 1084097
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions