Переглянути джерело

qcacmn: Reduce CE history size for perf builds

Currently, CE history captures 1024 events. Addition of CE-1 events
to the CE history increased the memory requirement on perf builds by
56KB. Reducing CE history size to 768 will offset the memory
increase and also captures sufficient logs for issue debugging.

Change-Id: I411d8ba7422d0039ad7e2ab01c159c36aa68dc41
CRs-Fixed: 3781894
Manikanta Pubbisetty 1 рік тому
батько
коміт
6b801c30d6
1 змінених файлів з 6 додано та 2 видалено
  1. 6 2
      hif/src/ce/ce_internal.h

+ 6 - 2
hif/src/ce/ce_internal.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. 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
@@ -723,8 +723,12 @@ int hif_get_fw_diag_ce_id(struct hif_softc *scn, uint8_t *ce_id);
 #if defined(HIF_CONFIG_SLUB_DEBUG_ON) || defined(HIF_CE_DEBUG_DATA_BUF)
 
 #ifndef HIF_CE_HISTORY_MAX
+#if defined(CONFIG_SLUB_DEBUG_ON)
 #define HIF_CE_HISTORY_MAX 1024
-#endif
+#else
+#define HIF_CE_HISTORY_MAX 768
+#endif /* CONFIG_SLUB_DEBUG_ON */
+#endif /* !HIF_CE_HISTORY_MAX */
 
 #define CE_DEBUG_MAX_DATA_BUF_SIZE 64