mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Add diag events for debugging
qcacld-2.0 to qcacmn propagation Currently there are no diag events to debug auth, assoc timeouts and memory failure. Add such diag events which can be useful during failures. Change-Id: Iec4c2a9946fbef388959fdc796273944d3be8003 CRs-Fixed: 1072675
This commit is contained in:
parent
a511975526
commit
496dbad32b
1 changed files with 11 additions and 0 deletions
|
|
@ -37,6 +37,12 @@
|
|||
#include "qdf_module.h"
|
||||
#include <qdf_trace.h>
|
||||
|
||||
#ifdef CONFIG_MCL
|
||||
#include <host_diag_core_event.h>
|
||||
#else
|
||||
#define host_log_low_resource_failure(code) do {} while (0)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CNSS)
|
||||
#include <net/cnss.h>
|
||||
#endif
|
||||
|
|
@ -442,6 +448,7 @@ void *qdf_mem_malloc_debug(size_t size,
|
|||
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: called with invalid arg; passed in %zu !!!",
|
||||
__func__, size);
|
||||
host_log_low_resource_failure(WIFI_EVENT_MEMORY_FAILURE);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -499,6 +506,10 @@ void *qdf_mem_malloc_debug(size_t size,
|
|||
|
||||
mem_ptr = (void *)(mem_struct + 1);
|
||||
}
|
||||
|
||||
if (!mem_ptr)
|
||||
host_log_low_resource_failure(WIFI_EVENT_MEMORY_FAILURE);
|
||||
|
||||
return mem_ptr;
|
||||
}
|
||||
EXPORT_SYMBOL(qdf_mem_malloc_debug);
|
||||
|
|
|
|||
Loading…
Reference in a new issue