mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacmn: Export qdf symbol for functions used for CBT
Add export function symbol for functions and compile qdf_func_tracker.c file, required for code instrumentation. These functions print the dump of function call map and are called during CBT test case execution, to find errors and trace function calls. Change-Id: Idc79de7111398956b4995d3d7cbefa45a079b100 CRs-Fixed: 2748686
This commit is contained in:
parent
f6a3aba85c
commit
a878b340c8
2 changed files with 9 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ endif
|
|||
|
||||
qdf-objs := \
|
||||
linux/src/qdf_defer.o \
|
||||
linux/src/qdf_func_tracker.o \
|
||||
linux/src/qdf_dev.o \
|
||||
linux/src/qdf_event.o \
|
||||
linux/src/qdf_file.o \
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#include <linux/string.h>
|
||||
#include <qdf_func_tracker.h>
|
||||
#include <qdf_mem.h>
|
||||
#include <qdf_module.h>
|
||||
|
||||
#ifdef FUNC_CALL_MAP
|
||||
char qdf_func_call_map_buf[QDF_FUNCTION_CALL_MAP_BUF_LEN] = {0};
|
||||
|
|
@ -33,14 +34,21 @@ void cc_func(unsigned int track)
|
|||
qdf_func_call_map_buf[index] |= (char)(1 << bit);
|
||||
}
|
||||
|
||||
qdf_export_symbol(cc_func);
|
||||
|
||||
void qdf_get_func_call_map(char *data)
|
||||
{
|
||||
qdf_mem_copy(data, qdf_func_call_map_buf,
|
||||
QDF_FUNCTION_CALL_MAP_BUF_LEN);
|
||||
}
|
||||
|
||||
qdf_export_symbol(qdf_get_func_call_map);
|
||||
|
||||
void qdf_clear_func_call_map(void)
|
||||
{
|
||||
qdf_mem_zero(qdf_func_call_map_buf, QDF_FUNCTION_CALL_MAP_BUF_LEN);
|
||||
}
|
||||
|
||||
qdf_export_symbol(qdf_clear_func_call_map);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue