qcacmn: Add QDF API to update debug node for nbuf

In case of preallocation of nbufs, the debug nodes contain
allocation information with respect to the allocator
and not the user.
For more accurate debug info, add new QDF API
qdf_net_buf_debug_update_node to update the debug info
when the nbuf is requested.

Change-Id: Idfbcd15b6c561bbb57ba98a6b8376557ba909eec
CRs-Fixed: 2322989
This commit is contained in:
Rakshith Suresh Patkar
2018-09-26 15:43:03 +05:30
committed by nshrivas
parent eb30aa7f83
commit 169fce61ef
2 changed files with 36 additions and 0 deletions

View File

@@ -1222,6 +1222,13 @@ void qdf_net_buf_debug_exit(void);
void qdf_net_buf_debug_clean(void);
void qdf_net_buf_debug_add_node(qdf_nbuf_t net_buf, size_t size,
uint8_t *file_name, uint32_t line_num);
/**
* qdf_net_buf_debug_update_node() - update nbuf in debug hash table
*
* Return: none
*/
void qdf_net_buf_debug_update_node(qdf_nbuf_t net_buf, uint8_t *file_name,
uint32_t line_num);
void qdf_net_buf_debug_delete_node(qdf_nbuf_t net_buf);
/**
@@ -1327,6 +1334,12 @@ static inline void qdf_net_buf_debug_release_skb(qdf_nbuf_t net_buf)
{
}
static inline void
qdf_net_buf_debug_update_node(qdf_nbuf_t net_buf, uint8_t *file_name,
uint32_t line_num)
{
}
/* Nbuf allocation rouines */
#define qdf_nbuf_alloc(osdev, size, reserve, align, prio) \