qcacld-3.0: Add INI to set module log level

All INI configuration about modules log level which removed in
previous change "Change-Id: I9c519cf2509e3dc22282f0c7ea6f52cbd2913ccd",
add one INI item for log level of all modules.

Change-Id: Icaedb6bd61a18a81cea9e75e076fe64b11e5bde0
CRs-Fixed: 2442788
此提交包含在:
Wu Gao
2019-04-26 15:04:28 +08:00
提交者 nshrivas
父節點 2e0f15bd4f
當前提交 8dd9f50552
共有 2 個檔案被更改,包括 135 行新增4 行删除

查看文件

@@ -1268,6 +1268,74 @@ struct dhcp_server {
CFG_VALUE_OR_DEFAULT, \
"Disable wow feature")
/**
* enum host_log_level - Debug verbose level imposed by user
* @HOST_LOG_LEVEL_NONE: no trace will be logged.
* @HOST_LOG_LEVEL_FATAL: fatal error will be logged
* @HOST_LOG_LEVEL_ERROR: error(include level less than error) will be logged
* @HOST_LOG_LEVEL_WARN: warning(include level less than warning) will be logged
* @HOST_LOG_LEVEL_INFO: inform(include level less than inform) will be logged
* @HOST_LOG_LEVEL_DEBUG: debug(include level less than debug) will be logged
* @HOST_LOG_LEVEL_TRACE: trace(include level less than trace) will be logged
* @HOST_LOG_LEVEL_MAX: Max host log level
*/
enum host_log_level {
HOST_LOG_LEVEL_NONE = 0,
HOST_LOG_LEVEL_FATAL,
HOST_LOG_LEVEL_ERROR,
HOST_LOG_LEVEL_WARN,
HOST_LOG_LEVEL_INFO,
HOST_LOG_LEVEL_DEBUG,
HOST_LOG_LEVEL_TRACE,
HOST_LOG_LEVEL_MAX,
};
/*
* <ini>
* gHostModuleLoglevel - modulized host debug log level
* @Min: N/A
* @Max: N/A
* @Default: N/A
*
* This ini is used to set modulized host debug log level.
* WLAN host module log level input string format looks like below:
* gHostModuleLoglevel="<host Module ID>,<Log Level>,..."
* For example:
* gHostModuleLoglevel=51,1,52,2,53,3,54,4,55,5,56,6
* The above input string means:
* For WLAN host module ID 51 enable log level HOST_LOG_LEVEL_FATAL
* For WLAN host module ID 52 enable log level HOST_LOG_LEVEL_ERROR
* For WLAN host module ID 53 enable log level HOST_LOG_LEVEL_WARN
* For WLAN host module ID 54 enable log level HOST_LOG_LEVEL_INFO
* For WLAN host module ID 55 enable log level HOST_LOG_LEVEL_DEBUG
* For WLAN host module ID 55 enable log level HOST_LOG_LEVEL_TRACE
* For valid values of module ids check enum QDF_MODULE_ID and
* for valid values of log levels check below.
* HOST_LOG_LEVEL_NONE = 0, No trace will be logged
* HOST_LOG_LEVEL_FATAL = 1, fatal error log
* HOST_LOG_LEVEL_ERROR = 2, error(include level less than error) log
* HOST_LOG_LEVEL_WARN = 3, warning(include level less than warning) log
* HOST_LOG_LEVEL_INFO = 4, inform(include level less than inform) log
* HOST_LOG_LEVEL_DEBUG = 5, debug(include level less than debug) log
* HOST_LOG_LEVEL_TRACE = 6, trace(include level less than trace) log
*
* Related: None
*
* Supported Feature: Debugging
*
* Usage: Internal
*
* </ini>
*/
#define HOST_MODULE_LOG_LEVEL_STRING_MAX_LENGTH (QDF_MODULE_ID_MAX * 6)
#define CFG_ENABLE_HOST_MODULE_LOG_LEVEL CFG_INI_STRING( \
"gHostModuleLoglevel", \
0, \
HOST_MODULE_LOG_LEVEL_STRING_MAX_LENGTH, \
"", \
"Set modulized host debug log level")
#define CFG_HDD_ALL \
CFG_ENABLE_PACKET_LOG_ALL \
CFG_ENABLE_RUNTIME_PM_ALL \
@@ -1305,5 +1373,6 @@ struct dhcp_server {
CFG(CFG_HDD_DOT11_MODE) \
CFG(CFG_ENABLE_DISABLE_CHANNEL) \
CFG(CFG_SAR_VERSION) \
CFG(CFG_WOW_DISABLE)
CFG(CFG_WOW_DISABLE) \
CFG(CFG_ENABLE_HOST_MODULE_LOG_LEVEL)
#endif