qcacmn: Add WBUFF statistics
Currently, there are no statistics whatsoever present in WBUFF module. To start with, add some basic statistics to the WBUFF module. Change-Id: I63c06cfb8b1430b2e86539f88025e6d74a00012b CRs-Fixed: 3548509
This commit is contained in:

committed by
Rahul Choudhary

parent
799450bbce
commit
e2b9779df7
@@ -48,12 +48,18 @@ struct wbuff_handle {
|
||||
* @pool: nbuf pool
|
||||
* @buffer_size: size of the buffer in this @pool
|
||||
* @pool_id: pool identifier
|
||||
* @alloc_success: Successful allocations for this pool
|
||||
* @alloc_fail: Failed allocations for this pool
|
||||
* @mem_alloc: Memory allocated for this pool
|
||||
*/
|
||||
struct wbuff_pool {
|
||||
bool initialized;
|
||||
qdf_nbuf_t pool;
|
||||
uint16_t buffer_size;
|
||||
uint8_t pool_id;
|
||||
uint64_t alloc_success;
|
||||
uint64_t alloc_fail;
|
||||
uint64_t mem_alloc;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -82,10 +88,14 @@ struct wbuff_module {
|
||||
* @initialized: to identified whether module is initialized
|
||||
* @mod: list of modules
|
||||
* @pf_cache: Reference to page frag cache, used for nbuf allocations
|
||||
* @wbuff_debugfs_dir: wbuff debugfs root directory
|
||||
* @wbuff_stats_dentry: wbuff debugfs stats file
|
||||
*/
|
||||
struct wbuff_holder {
|
||||
bool initialized;
|
||||
struct wbuff_module mod[WBUFF_MAX_MODULES];
|
||||
qdf_frag_cache_t pf_cache;
|
||||
struct dentry *wbuff_debugfs_dir;
|
||||
struct dentry *wbuff_stats_dentry;
|
||||
};
|
||||
#endif /* _WBUFF_H */
|
||||
|
Reference in New Issue
Block a user