mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Add nbuf alloc failure to nbuf history
In addition to the other nbuf history events, track allocation failures. This allows root causing issues due to nbuf exhaustion. Change-Id: Ia0bbc6f12d26e32fcdb4cf7d0efef328417436ce CRs-Fixed: 2329461
This commit is contained in:
parent
634d27fc4c
commit
e72b7f7e4c
1 changed files with 3 additions and 0 deletions
|
|
@ -536,6 +536,7 @@ qdf_export_symbol(__qdf_nbuf_free);
|
|||
#ifdef NBUF_MEMORY_DEBUG
|
||||
enum qdf_nbuf_event_type {
|
||||
QDF_NBUF_ALLOC,
|
||||
QDF_NBUF_ALLOC_FAILURE,
|
||||
QDF_NBUF_FREE,
|
||||
QDF_NBUF_MAP,
|
||||
QDF_NBUF_UNMAP,
|
||||
|
|
@ -2667,6 +2668,8 @@ qdf_nbuf_t qdf_nbuf_alloc_debug(qdf_device_t osdev, qdf_size_t size,
|
|||
if (qdf_likely(nbuf)) {
|
||||
qdf_net_buf_debug_add_node(nbuf, size, file, line);
|
||||
qdf_nbuf_history_add(nbuf, file, line, QDF_NBUF_ALLOC);
|
||||
} else {
|
||||
qdf_nbuf_history_add(nbuf, file, line, QDF_NBUF_ALLOC_FAILURE);
|
||||
}
|
||||
|
||||
return nbuf;
|
||||
|
|
|
|||
Loading…
Reference in a new issue