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:
Jhalak Naik 2020-08-05 18:52:41 +05:30 • committed by snandini
commit a878b340c8
2 changed files with 9 additions and 0 deletions

View file

@ -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 \

View file

@ -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