qcacmn: Add compilation flag for enter/exit macros

Map all enter/exit log macros to enter/exit QDF TRACE macro
to provide option to compile out enter/exit logs if required

Change-Id: I913ef0fb2486fde6b2ec4dfe8465884ca4d66ce4
CRs-Fixed: 2274857
This commit is contained in:
Nirav Shah 2018-07-06 15:57:57 +05:30 • committed by nshrivas
commit 87668f872b
5 changed files with 29 additions and 15 deletions

View file

@ -43,9 +43,10 @@
QDF_TRACE_INFO(QDF_MODULE_ID_TARGET_IF, params)
#define target_if_debug(params...) \
QDF_TRACE_DEBUG(QDF_MODULE_ID_TARGET_IF, params)
#define TARGET_IF_ENTER() target_if_debug("enter")
#define TARGET_IF_EXIT() target_if_debug("exit")
#define TARGET_IF_ENTER() \
QDF_TRACE_ENTER(QDF_MODULE_ID_TARGET_IF, "enter")
#define TARGET_IF_EXIT() \
QDF_TRACE_EXIT(QDF_MODULE_ID_TARGET_IF, "exit")
#ifdef CONFIG_MCL
#define TARGET_TYPE_AR900B 9 /* Beeliner */

View file

@ -35,9 +35,9 @@
#define direct_buf_rx_debug(params...) \
QDF_TRACE_DEBUG(QDF_MODULE_ID_DIRECT_BUF_RX, params)
#define direct_buf_rx_enter() \
direct_buf_rx_debug("enter")
QDF_TRACE_ENTER(QDF_MODULE_ID_DIRECT_BUF_RX, "enter")
#define direct_buf_rx_exit() \
direct_buf_rx_debug("exit")
QDF_TRACE_EXIT(QDF_MODULE_ID_DIRECT_BUF_RX, "exit")
#define DBR_MAX_CHAINS (8)