qcacmn: Update debug info in wbuff_buff_get()
The debug node for all the nbufs allocated by wbuff for a module contains the file and line info pertaining to wbuff_module_register(). To enhance debugging, Use qdf_net_buf_debug_update_node() to update debug info when nbuf is requested through wbuff_buff_get(). Change-Id: Ie8b148ef6313bd3b265cfa3f141e8d0de8b75597 CRs-Fixed: 2328257
Este commit está contenido en:

cometido por
nshrivas

padre
27d564647e
commit
5c881ec3ec
@@ -95,11 +95,14 @@ QDF_STATUS wbuff_module_deregister(struct wbuff_mod_handle *hdl);
|
||||
* wbuff_buff_get() - return buffer to the requester
|
||||
* @handle: wbuff_handle corresponding to the module
|
||||
* @len: length of buffer requested
|
||||
* file_name: file from which buffer is requested
|
||||
* line_num: line number in the file
|
||||
*
|
||||
* Return: Network buffer if success
|
||||
* NULL if failure
|
||||
*/
|
||||
qdf_nbuf_t wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len);
|
||||
qdf_nbuf_t wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len,
|
||||
uint8_t *file_name, uint32_t line_num);
|
||||
|
||||
/**
|
||||
* wbuff_buff_put() - put the buffer back to wbuff pool
|
||||
@@ -136,7 +139,8 @@ static inline QDF_STATUS wbuff_module_deregister(struct wbuff_mod_handle *hdl)
|
||||
}
|
||||
|
||||
static inline qdf_nbuf_t
|
||||
wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len)
|
||||
wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len, int8_t *file_name,
|
||||
uint32_t line_num)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
Referencia en una nueva incidencia
Block a user