qcacmn: Add support to configure buffer size from kbuild

Add support to configure logging buffer size from
per-OEM kbuild based on memory requirement.

Change-Id: Ia91d79e5e738b1c9787015de101c3f67ccde46aa
CRs-Fixed: 2253438
This commit is contained in:
Nirav Shah
2018-06-01 16:32:28 +05:30
committed by nshrivas
parent ab1d4c30ca
commit 79ec3e999b
5 changed files with 22 additions and 3 deletions

View File

@@ -516,7 +516,10 @@ int hif_get_wake_ce_id(struct hif_softc *scn, uint8_t *ce_id);
* for defined here
*/
#if HIF_CE_DEBUG_DATA_BUF
#ifndef HIF_CE_HISTORY_MAX
#define HIF_CE_HISTORY_MAX 512
#endif
#define CE_DEBUG_MAX_DATA_BUF_SIZE 64
/**

View File

@@ -78,7 +78,9 @@ extern "C" {
#define HTC_SERVICE_TX_PACKET_TAG HTC_TX_PACKET_TAG_INTERNAL
#ifndef HTC_CREDIT_HISTORY_MAX
#define HTC_CREDIT_HISTORY_MAX 1024
#endif
#define HTC_IS_EPPING_ENABLED(_x) ((_x) == QDF_GLOBAL_EPPING_MODE)

View File

@@ -86,8 +86,11 @@ typedef int (qdf_abstract_print)(void *priv, const char *fmt, ...);
/* Preprocessor definitions and constants */
#define ASSERT_BUFFER_SIZE (512)
#define QDF_TRACE_DEFAULT_PDEV_ID 0xff
#ifndef MAX_QDF_TRACE_RECORDS
#define MAX_QDF_TRACE_RECORDS 4000
#endif
#define QDF_TRACE_DEFAULT_PDEV_ID 0xff
#define INVALID_QDF_TRACE_ADDR 0xffffffff
#define DEFAULT_QDF_TRACE_DUMP_COUNT 0
@@ -154,8 +157,10 @@ typedef struct s_qdf_trace_data {
#define CASE_RETURN_STRING(str) case ((str)): return (uint8_t *)(# str);
#ifndef MAX_QDF_DP_TRACE_RECORDS
#define MAX_QDF_DP_TRACE_RECORDS 2000
#endif
#define QDF_DP_TRACE_RECORD_SIZE 40
#define INVALID_QDF_DP_TRACE_ADDR 0xffffffff
#define QDF_DP_TRACE_VERBOSITY_HIGH 3

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -44,7 +44,10 @@ struct wlan_roam_debug_rec {
uint32_t arg2;
};
#ifndef WLAN_ROAM_DEBUG_MAX_REC
#define WLAN_ROAM_DEBUG_MAX_REC 256
#endif
/**
* struct wlan_roam_debug_info - Buffer to store the wma debug records
* @index: index of the most recent entry in the circular buffer

View File

@@ -55,10 +55,16 @@
#ifdef WMI_INTERFACE_EVENT_LOGGING
#ifndef WMI_EVENT_DEBUG_MAX_ENTRY
#define WMI_EVENT_DEBUG_MAX_ENTRY (1024)
#endif
#define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16)
/* wmi_mgmt commands */
#ifndef WMI_MGMT_EVENT_DEBUG_MAX_ENTRY
#define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256)
#endif
/**
* struct wmi_command_debug - WMI command log buffer data type