mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
qcacld-3.0: Disable debugging
The default defconfig enables a lot of debugging features. Disable those by referencing other perf defconfigs. Thankfully, the new 5.2.022 tree requires much less hacks to disable debugging. Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
b1233309f5
commit
984e96ae5f
@ -1165,6 +1165,7 @@ qdf_tso_seg_dbg_zero(struct qdf_tso_seg_elem_t *tsoseg)
|
||||
|
||||
#endif /* TSOSEG_DEBUG */
|
||||
|
||||
#ifdef QDF_ENABLE_TRACING
|
||||
/**
|
||||
* qdf_trace_hex_dump() - externally called hex dump function
|
||||
* @module: Module identifier a member of the QDF_MODULE_ID enumeration that
|
||||
@ -1198,6 +1199,12 @@ void qdf_trace_hex_dump(QDF_MODULE_ID module, QDF_TRACE_LEVEL level,
|
||||
*/
|
||||
void qdf_trace_hex_ascii_dump(QDF_MODULE_ID module, QDF_TRACE_LEVEL level,
|
||||
void *data, int buf_len);
|
||||
#else
|
||||
static inline void qdf_trace_hex_dump(QDF_MODULE_ID module, QDF_TRACE_LEVEL level,
|
||||
void *data, int buf_len) {}
|
||||
static inline void qdf_trace_hex_ascii_dump(QDF_MODULE_ID module, QDF_TRACE_LEVEL level,
|
||||
void *data, int buf_len) {}
|
||||
#endif
|
||||
|
||||
#define ERROR_CODE -1
|
||||
#define QDF_MAX_NAME_SIZE 32
|
||||
|
@ -258,7 +258,7 @@ static inline void __qdf_trace_hexdump_dummy(QDF_MODULE_ID module,
|
||||
#define QDF_TRACE_EXIT(params...) __qdf_trace_noop(params)
|
||||
#endif
|
||||
|
||||
#define QDF_ENABLE_TRACING
|
||||
// #define QDF_ENABLE_TRACING
|
||||
#define qdf_scnprintf scnprintf
|
||||
|
||||
#ifdef QDF_ENABLE_TRACING
|
||||
|
@ -72,7 +72,8 @@ extern "C" {
|
||||
#ifdef FEATURE_FW_LOG_PARSING
|
||||
/*
|
||||
* set the dbglog parser type
|
||||
*/int
|
||||
*/
|
||||
int
|
||||
dbglog_parser_type_init(wmi_unified_t wmi_handle, int type);
|
||||
|
||||
/** dbglog_int - Registers a WMI event handle for WMI_DBGMSG_EVENT
|
||||
|
@ -291,6 +291,26 @@ enum WMI_RECORD_TYPE {
|
||||
WMI_EVT = 2,
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
#define wmi_alert(params...) ((void)0)
|
||||
#define wmi_err(params...) ((void)0)
|
||||
#define wmi_warn(params...) ((void)0)
|
||||
#define wmi_info(params...) ((void)0)
|
||||
#define wmi_debug(params...) ((void)0)
|
||||
|
||||
#define wmi_nofl_alert(params...) ((void)0)
|
||||
#define wmi_nofl_err(params...) ((void)0)
|
||||
#define wmi_nofl_warn(params...) ((void)0)
|
||||
#define wmi_nofl_info(params...) ((void)0)
|
||||
#define wmi_nofl_debug(params...) ((void)0)
|
||||
|
||||
#define wmi_alert_rl(params...) ((void)0)
|
||||
#define wmi_err_rl(params...) ((void)0)
|
||||
#define wmi_warn_rl(params...) ((void)0)
|
||||
#define wmi_info_rl(params...) ((void)0)
|
||||
#define wmi_debug_rl(params...) ((void)0)
|
||||
|
||||
#endif /*WMI_INTERFACE_EVENT_LOGGING */
|
||||
|
||||
#ifdef WLAN_OPEN_SOURCE
|
||||
|
@ -1361,7 +1361,7 @@ static QDF_STATUS get_sar_limit_cmd_tlv(wmi_unified_t wmi_handle)
|
||||
* Return: string conversion of sar 2 result, if match found;
|
||||
* "Unknown response" otherwise.
|
||||
*/
|
||||
static const char *wmi_sar2_result_string(uint32_t result)
|
||||
static __maybe_unused const char *wmi_sar2_result_string(uint32_t result)
|
||||
{
|
||||
switch (result) {
|
||||
CASE_RETURN_STRING(WMI_SAR2_SUCCESS);
|
||||
|
@ -2228,7 +2228,9 @@ OBJS += $(TDLS_OBJS)
|
||||
OBJS += $(PMO_OBJS)
|
||||
OBJS += $(P2P_OBJS)
|
||||
OBJS += $(POLICY_MGR_OBJS)
|
||||
OBJS += $(WLAN_LOGGING_OBJS)
|
||||
ifeq ($(BUILD_DEBUG_VERSION), 1)
|
||||
OBJS += $(WLAN_LOGGING_OBJS) $(FWLOG_OBJS)
|
||||
endif
|
||||
OBJS += $(NLINK_OBJS)
|
||||
OBJS += $(PTT_OBJS)
|
||||
OBJS += $(UMAC_SER_OBJS)
|
||||
|
@ -167,8 +167,9 @@ CONFIG_QCOM_TDLS := y
|
||||
|
||||
CONFIG_WLAN_SYSFS := y
|
||||
CONFIG_WLAN_POWER_DEBUG := y
|
||||
#Enable Beacon Reception Stats
|
||||
CONFIG_FEATURE_BECN_STATS := y
|
||||
|
||||
#Disable Beacon Reception Stats
|
||||
CONFIG_FEATURE_BECN_STATS := n
|
||||
endif
|
||||
|
||||
#Disable the Export Symbol config
|
||||
@ -275,8 +276,7 @@ ifeq ($(CONFIG_ROME_IF),usb)
|
||||
CONFIG_LINUX_QCMBR :=y
|
||||
endif
|
||||
|
||||
|
||||
CONFIG_FEATURE_EPPING := y
|
||||
CONFIG_FEATURE_EPPING := n
|
||||
|
||||
#Flag to enable offload packets feature
|
||||
CONFIG_WLAN_OFFLOAD_PACKETS := y
|
||||
@ -436,7 +436,6 @@ CONFIG_QCA_WIFI_QCA8074 := y
|
||||
CONFIG_QCA_WIFI_QCA8074_VP := y
|
||||
CONFIG_DP_INTR_POLL_BASED := y
|
||||
CONFIG_TX_PER_PDEV_DESC_POOL := y
|
||||
CONFIG_DP_TRACE := y
|
||||
CONFIG_FEATURE_TSO := y
|
||||
CONFIG_FEATURE_FORCE_WAKE := y
|
||||
CONFIG_DP_LFR := y
|
||||
@ -453,13 +452,6 @@ CONFIG_RXDMA_ERR_PKT_DROP := y
|
||||
CONFIG_DELIVERY_TO_STACK_STATUS_CHECK := y
|
||||
CONFIG_DP_MEM_PRE_ALLOC := y
|
||||
|
||||
ifeq ($(CONFIG_FEATURE_TSO), y)
|
||||
CONFIG_FEATURE_TSO_STATS := y
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DISABLE_DP_STATS), y)
|
||||
CONFIG_FEATURE_TSO_STATS := n
|
||||
endif
|
||||
endif
|
||||
|
||||
# As per target team, build is done as follows:
|
||||
@ -487,17 +479,17 @@ ifneq ($(TARGET_BUILD_VARIANT),user)
|
||||
endif
|
||||
|
||||
#Enable WLAN/Power debugfs feature only if debug_fs is enabled
|
||||
ifeq ($(CONFIG_DEBUG_FS), y)
|
||||
#ifeq ($(CONFIG_DEBUG_FS), y)
|
||||
# Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel
|
||||
# configuration.
|
||||
CONFIG_WLAN_DEBUGFS := y
|
||||
# CONFIG_WLAN_DEBUGFS := y
|
||||
|
||||
# Flag to enable streamfs. Depends on CONFIG_DEBUG_FS and
|
||||
# CONFIG_RELAY in kernel configuration.
|
||||
ifeq ($(CONFIG_RELAY), y)
|
||||
CONFIG_WLAN_STREAMFS := y
|
||||
endif
|
||||
endif
|
||||
#ifeq ($(CONFIG_RELAY), y)
|
||||
# CONFIG_WLAN_STREAMFS := y
|
||||
#endif
|
||||
#endif
|
||||
|
||||
ifeq ($(CONFIG_WLAN_DEBUGFS), y)
|
||||
CONFIG_WLAN_MWS_INFO_DEBUGFS := y
|
||||
@ -510,10 +502,10 @@ endif
|
||||
# Feature flags which are not (currently) configurable via Kconfig
|
||||
|
||||
#Whether to build debug version
|
||||
BUILD_DEBUG_VERSION := y
|
||||
BUILD_DEBUG_VERSION := n
|
||||
|
||||
#Enable this flag to build driver in diag version
|
||||
BUILD_DIAG_VERSION := y
|
||||
BUILD_DIAG_VERSION := n
|
||||
|
||||
ifeq ($(CONFIG_SLUB_DEBUG), y)
|
||||
PANIC_ON_BUG := y
|
||||
@ -536,7 +528,7 @@ CONFIG_WLAN_LOG_INFO := y
|
||||
CONFIG_ATH_PERF_PWR_OFFLOAD := y
|
||||
|
||||
#Disable packet log
|
||||
CONFIG_REMOVE_PKT_LOG := n
|
||||
CONFIG_REMOVE_PKT_LOG := y
|
||||
|
||||
#Enable 11AC TX
|
||||
ifeq ($(CONFIG_ROME_IF),pci)
|
||||
@ -774,7 +766,7 @@ CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := n
|
||||
CONFIG_QCA_SINGLE_BINARY_SUPPORT := n
|
||||
|
||||
#Enable collecting target RAM dump after kernel panic
|
||||
CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := y
|
||||
CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := n
|
||||
|
||||
#Flag to enable/disable secure firmware feature
|
||||
CONFIG_FEATURE_SECURE_FIRMWARE := n
|
||||
@ -790,7 +782,13 @@ CONFIG_WLAN_DFS_STATIC_MEM_ALLOC := y
|
||||
CONFIG_FEATURE_HTC_CREDIT_HISTORY := y
|
||||
|
||||
#Flag to enable MTRACE feature
|
||||
CONFIG_TRACE_RECORD_FEATURE := y
|
||||
CONFIG_TRACE_RECORD_FEATURE := n
|
||||
|
||||
#Flag to enable p2p debug feature
|
||||
CONFIG_WLAN_FEATURE_P2P_DEBUG := n
|
||||
|
||||
#Flag to enable roam debug log
|
||||
CONFIG_FEATURE_ROAM_DEBUG := n
|
||||
|
||||
#Flag to enable DFS Master feature
|
||||
CONFIG_WLAN_DFS_MASTER_ENABLE := y
|
||||
@ -798,8 +796,11 @@ CONFIG_WLAN_DFS_MASTER_ENABLE := y
|
||||
#Flag to enable WEXT support for STA/AP/P2P interfaces
|
||||
CONFIG_WLAN_WEXT_SUPPORT_ENABLE := y
|
||||
|
||||
#Flag to enable/disable MTRACE feature
|
||||
CONFIG_ENABLE_MTRACE_LOG := n
|
||||
|
||||
#Flag to enable nud tracking feature
|
||||
CONFIG_WLAN_NUD_TRACKING := y
|
||||
CONFIG_WLAN_NUD_TRACKING := n
|
||||
|
||||
#Flag to enable/Disable Function call trace
|
||||
CONFIG_FUNC_CALL_MAP := n
|
||||
@ -843,6 +844,9 @@ CONFIG_FEATURE_WLAN_WAPI := y
|
||||
|
||||
CONFIG_AGEIE_ON_SCAN_RESULTS := y
|
||||
|
||||
#Flag to enable FW log parsing support feature
|
||||
CONFIG_FEATURE_FW_LOG_PARSING := n
|
||||
|
||||
CONFIG_PTT_SOCK_SVC_ENABLE := y
|
||||
CONFIG_SOFTAP_CHANNEL_RANGE := y
|
||||
CONFIG_FEATURE_WLAN_SCAN_PNO := y
|
||||
@ -851,7 +855,7 @@ CONFIG_WLAN_NS_OFFLOAD := y
|
||||
CONFIG_FEATURE_WLAN_RA_FILTERING:= y
|
||||
CONFIG_FEATURE_WLAN_LPHB := y
|
||||
CONFIG_QCA_SUPPORT_TX_THROTTLE := y
|
||||
CONFIG_WMI_INTERFACE_EVENT_LOGGING := y
|
||||
CONFIG_WMI_INTERFACE_EVENT_LOGGING := n
|
||||
CONFIG_WLAN_FEATURE_LINK_LAYER_STATS := y
|
||||
CONFIG_FEATURE_WLAN_EXTSCAN := n
|
||||
CONFIG_WMI_BCN_OFFLOAD := y
|
||||
@ -868,7 +872,7 @@ CONFIG_HDD_INIT_WITH_RTNL_LOCK := y
|
||||
CONFIG_WLAN_CONV_SPECTRAL_ENABLE := y
|
||||
CONFIG_WLAN_SPECTRAL_ENABLE := y
|
||||
CONFIG_WMI_CMD_STRINGS := y
|
||||
CONFIG_FEATURE_MONITOR_MODE_SUPPORT := y
|
||||
CONFIG_FEATURE_MONITOR_MODE_SUPPORT := n
|
||||
CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY := n
|
||||
CONFIG_WLAN_FEATURE_TWT := y
|
||||
CONFIG_FW_THERMAL_THROTTLE := y
|
||||
@ -898,7 +902,7 @@ CONFIG_WMI_ROAM_SUPPORT := y
|
||||
CONFIG_WMI_CONCURRENCY_SUPPORT := y
|
||||
CONFIG_WMI_STA_SUPPORT := y
|
||||
|
||||
CONFIG_DP_TRACE := y
|
||||
CONFIG_DP_TRACE := n
|
||||
|
||||
ifeq ($(CONFIG_HELIUMPLUS), y)
|
||||
ifneq ($(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE), y)
|
||||
@ -945,6 +949,9 @@ ifeq ($(CONFIG_LITHIUM), y)
|
||||
CONFIG_WLAN_DP_PENDING_MEM_FLUSH := y
|
||||
endif
|
||||
|
||||
#Flag to enable hdd memory dump feature
|
||||
CONFIG_FEATURE_MEMDUMP_ENABLE := n
|
||||
|
||||
#Flag to enable/disable WLAN D0-WOW
|
||||
ifeq ($(CONFIG_PCI_MSM), y)
|
||||
ifeq ($(CONFIG_HIF_PCI), y)
|
||||
@ -969,9 +976,7 @@ ifeq ($(CONFIG_ARCH_SDXPRAIRIE), y)
|
||||
CONFIG_WMI_DBR_SUPPORT := n
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_HIF_USB), y)
|
||||
CONFIG_WLAN_LOGGING_SOCK_SVC := y
|
||||
endif
|
||||
CONFIG_WLAN_LOGGING_SOCK_SVC := n
|
||||
|
||||
ifneq ($(TARGET_BUILD_VARIANT),user)
|
||||
CONFIG_DESC_DUP_DETECT_DEBUG := y
|
||||
@ -1048,7 +1053,7 @@ ifeq ($(CONFIG_ARCH_QCS405), y)
|
||||
CONFIG_FEATURE_WLAN_TIME_SYNC_FTM := y
|
||||
endif
|
||||
|
||||
CONFIG_WLAN_HANG_EVENT := y
|
||||
CONFIG_WLAN_HANG_EVENT := n
|
||||
|
||||
CONFIG_FEATURE_GPIO_CFG := y
|
||||
|
||||
|
@ -2338,6 +2338,7 @@ void htt_rx_detach(struct htt_pdev_t *pdev)
|
||||
qdf_spinlock_destroy(&pdev->rx_ring.refill_lock);
|
||||
}
|
||||
|
||||
#ifndef REMOVE_PKT_LOG
|
||||
static QDF_STATUS htt_rx_hash_smmu_map(bool map, struct htt_pdev_t *pdev)
|
||||
{
|
||||
uint32_t i;
|
||||
@ -2411,3 +2412,4 @@ QDF_STATUS htt_rx_update_smmu_map(struct htt_pdev_t *pdev, bool map)
|
||||
|
||||
return status;
|
||||
}
|
||||
#endif
|
||||
|
@ -1000,6 +1000,7 @@ htt_rx_offload_paddr_msdu_pop_ll(htt_pdev_handle pdev,
|
||||
|
||||
uint32_t htt_rx_amsdu_rx_in_order_get_pktlog(qdf_nbuf_t rx_ind_msg);
|
||||
|
||||
#ifndef REMOVE_PKT_LOG
|
||||
/**
|
||||
* htt_rx_update_smmu_map() - set smmu map/unmap for rx buffers
|
||||
* @pdev: htt pdev handle
|
||||
@ -1008,6 +1009,12 @@ uint32_t htt_rx_amsdu_rx_in_order_get_pktlog(qdf_nbuf_t rx_ind_msg);
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS htt_rx_update_smmu_map(struct htt_pdev_t *pdev, bool map);
|
||||
#else
|
||||
static inline QDF_STATUS htt_rx_update_smmu_map(struct htt_pdev_t *pdev, bool map)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** htt_tx_enable_ppdu_end
|
||||
* @enable_ppdu_end - set it to 1 if WLAN_FEATURE_TSF_PLUS is defined,
|
||||
|
@ -2384,9 +2384,11 @@ QDF_STATUS hdd_roam_register_sta(struct hdd_adapter *adapter,
|
||||
hdd_conn_set_authenticated(adapter, true);
|
||||
hdd_objmgr_set_peer_mlme_auth_state(adapter->vdev, true);
|
||||
} else {
|
||||
#ifdef WLAN_DEBUG
|
||||
hdd_debug("ULA auth Sta: " QDF_MAC_ADDR_FMT
|
||||
" Changing TL state to CONNECTED at Join time",
|
||||
QDF_MAC_ADDR_REF(txrx_desc.peer_addr.bytes));
|
||||
#endif
|
||||
|
||||
qdf_status = hdd_conn_change_peer_state(
|
||||
adapter, roam_info,
|
||||
|
@ -50,11 +50,11 @@ static inline void mac_trace(struct mac_context *mac_ctx, uint8_t code,
|
||||
qdf_trace(QDF_MODULE_ID_PE, code, session, data);
|
||||
}
|
||||
|
||||
#ifdef TRACE_RECORD
|
||||
|
||||
#define eLOG_NODROP_MISSED_BEACON_SCENARIO 0
|
||||
#define eLOG_PROC_DEAUTH_FRAME_SCENARIO 1
|
||||
|
||||
#ifdef TRACE_RECORD
|
||||
|
||||
uint8_t *mac_trace_get_lim_msg_string(uint16_t limMsg);
|
||||
uint8_t *mac_trace_get_sme_msg_string(uint16_t smeMsg);
|
||||
uint8_t *mac_trace_get_info_log_string(uint16_t infoLog);
|
||||
|
@ -7460,7 +7460,9 @@ static void csr_roam_process_start_bss_success(struct mac_context *mac_ctx,
|
||||
tDot11fBeaconIEs *ies_ptr = NULL;
|
||||
tSirMacAddr bcast_mac = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
QDF_STATUS status;
|
||||
#ifdef FEATURE_WLAN_DIAG_SUPPORT_CSR
|
||||
host_log_ibss_pkt_type *ibss_log;
|
||||
#endif
|
||||
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
|
||||
struct ht_profile *src_profile = NULL;
|
||||
tCsrRoamHTProfile *dst_profile = NULL;
|
||||
@ -7564,8 +7566,8 @@ static void csr_roam_process_start_bss_success(struct mac_context *mac_ctx,
|
||||
ibss_log->beaconInterval = (uint8_t) bi;
|
||||
WLAN_HOST_DIAG_LOG_REPORT(ibss_log);
|
||||
}
|
||||
#endif
|
||||
ibss_log = NULL;
|
||||
#endif
|
||||
/*
|
||||
* Only set context for non-WDS_STA. We don't even need it for
|
||||
* WDS_AP. But since the encryption.
|
||||
@ -8267,7 +8269,9 @@ static bool csr_roam_process_results(struct mac_context *mac_ctx, tSmeCmd *cmd,
|
||||
struct csr_roam_profile *profile = &cmd->u.roamCmd.roamProfile;
|
||||
eRoamCmdStatus roam_status;
|
||||
eCsrRoamResult roam_result;
|
||||
#ifdef FEATURE_WLAN_DIAG_SUPPORT_CSR
|
||||
host_log_ibss_pkt_type *ibss_log;
|
||||
#endif
|
||||
struct start_bss_rsp *start_bss_rsp = NULL;
|
||||
|
||||
if (!session) {
|
||||
@ -8296,8 +8300,8 @@ static bool csr_roam_process_results(struct mac_context *mac_ctx, tSmeCmd *cmd,
|
||||
ibss_log->status = WLAN_IBSS_STATUS_FAILURE;
|
||||
WLAN_HOST_DIAG_LOG_REPORT(ibss_log);
|
||||
}
|
||||
#endif
|
||||
ibss_log = NULL;
|
||||
#endif
|
||||
start_bss_rsp = (struct start_bss_rsp *)context;
|
||||
roam_status = eCSR_ROAM_IBSS_IND;
|
||||
roam_result = eCSR_ROAM_RESULT_IBSS_STARTED;
|
||||
@ -13633,16 +13637,20 @@ static QDF_STATUS csr_roam_start_wait_for_key_timer(
|
||||
{
|
||||
QDF_STATUS status;
|
||||
uint8_t session_id = mac->roam.WaitForKeyTimerInfo.vdev_id;
|
||||
#ifdef WLAN_DEBUG
|
||||
tpCsrNeighborRoamControlInfo pNeighborRoamInfo =
|
||||
&mac->roam.neighborRoamInfo[session_id];
|
||||
#endif
|
||||
|
||||
if (csr_neighbor_roam_is_handoff_in_progress(mac, session_id)) {
|
||||
/* Disable heartbeat timer when hand-off is in progress */
|
||||
#ifdef WLAN_DEBUG
|
||||
sme_debug("disabling HB timer in state: %s sub-state: %s",
|
||||
mac_trace_get_neighbour_roam_state(
|
||||
pNeighborRoamInfo->neighborRoamState),
|
||||
mac_trace_getcsr_roam_sub_state(
|
||||
mac->roam.curSubState[session_id]));
|
||||
#endif
|
||||
mac->mlme_cfg->timeouts.heart_beat_threshold = 0;
|
||||
}
|
||||
sme_debug("csrScanStartWaitForKeyTimer");
|
||||
|
Loading…
x
Reference in New Issue
Block a user