qcacmn: Modify trace related APIs to support dynamic configuration in WIN
New iwpriv commands are implemented in WIN to support dynamic configuration of verbose level for each of the module IDs. Add following changes in trace module to support above requirement - 1. Make qdf_get_pidx and qdf_set_pidx common to WIN and MCL 2. Export g_qdf_category_name to be accessible in WIN driver 3. Add macros to derive upper and lower 16-bits from a 32-bit value combining module and trace level information used for dynamic trace level configuration per module 4. Address trace level NONE case during registration to set the correct mask Change-Id: I97be5f26b0d611e96409837fb0c03d55ce5f6e07 CRs-Fixed: 2041247
这个提交包含在:
@@ -53,6 +53,9 @@
|
||||
#define QDF_DEFAULT_TRACE_LEVEL (1 << QDF_TRACE_LEVEL_INFO)
|
||||
#endif
|
||||
|
||||
#define QDF_CATEGORY_INFO_U16(val) (((val >> 16) & 0x0000FFFF))
|
||||
#define QDF_TRACE_LEVEL_INFO_L16(val) (val & 0x0000FFFF)
|
||||
|
||||
typedef int (qdf_abstract_print)(void *priv, const char *fmt, ...);
|
||||
|
||||
/*
|
||||
@@ -67,19 +70,6 @@ typedef int (qdf_abstract_print)(void *priv, const char *fmt, ...);
|
||||
#define QDF_DEBUG_CFG 0x40
|
||||
|
||||
#ifdef CONFIG_MCL
|
||||
/**
|
||||
* qdf_set_pidx() - Sets the global qdf_pidx.
|
||||
* @pidx : Index of print control object assigned to the module
|
||||
*
|
||||
*/
|
||||
void qdf_set_pidx(int pidx);
|
||||
|
||||
/**
|
||||
* qdf_get_pidx() - Returns the global qdf_pidx.
|
||||
*
|
||||
* Return : Current qdf print index.
|
||||
*/
|
||||
int qdf_get_pidx(void);
|
||||
|
||||
/* By default Data Path module will have all log levels enabled, except debug
|
||||
* log level. Debug level will be left up to the framework or user space modules
|
||||
@@ -545,10 +535,24 @@ qdf_tso_seg_dbg_zero(struct qdf_tso_seg_elem_t *tsoseg)
|
||||
|
||||
#define MAX_SUPPORTED_CATEGORY QDF_MODULE_ID_MAX
|
||||
|
||||
/**
|
||||
* qdf_set_pidx() - Sets the global qdf_pidx.
|
||||
* @pidx : Index of print control object assigned to the module
|
||||
*
|
||||
*/
|
||||
void qdf_set_pidx(int pidx);
|
||||
|
||||
/**
|
||||
* qdf_get_pidx() - Returns the global qdf_pidx.
|
||||
*
|
||||
* Return : Current qdf print index.
|
||||
*/
|
||||
int qdf_get_pidx(void);
|
||||
/*
|
||||
* Shared print control index
|
||||
* for converged debug framework
|
||||
*/
|
||||
|
||||
#define QDF_PRINT_IDX_SHARED -1
|
||||
|
||||
/**
|
||||
|
在新工单中引用
屏蔽一个用户