浏览代码

qcacmn: Pktlog Enhancements

1. Reduce the log level for every buffer received
   from firmware
2. Set the default pktlog buffer size to 10MB.

Change-Id: Iad8827084579592fcfa69056dcfc9d57095151e7
CRs-Fixed: 2364380
Venkata Sharath Chandra Manchala 6 年之前
父节点
当前提交
96e3633874
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 3 4
      dp/wifi3.0/dp_htt.c
  2. 1 1
      utils/pktlog/include/pktlog_ac_i.h

+ 3 - 4
dp/wifi3.0/dp_htt.c

@@ -2848,8 +2848,7 @@ dp_ppdu_stats_ind_handler(struct htt_soc *soc,
 	u_int8_t pdev_id;
 	bool free_buf;
 	qdf_nbuf_set_pktlen(htt_t2h_msg, HTT_T2H_MAX_MSG_SIZE);
-	QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO,
-		"received HTT_T2H_MSG_TYPE_PPDU_STATS_IND");
+	dp_debug("received HTT_T2H_MSG_TYPE_PPDU_STATS_IND");
 	pdev_id = HTT_T2H_PPDU_STATS_PDEV_ID_GET(*msg_word);
 	pdev_id = DP_HW2SW_MACID(pdev_id);
 	free_buf = dp_txrx_ppdu_stats_handler(soc->dp_soc, pdev_id,
@@ -2884,8 +2883,8 @@ dp_pktlog_msg_handler(struct htt_soc *soc,
 {
 	uint8_t pdev_id;
 	uint32_t *pl_hdr;
-	QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO,
-		"received HTT_T2H_MSG_TYPE_PKTLOG");
+
+	dp_debug("received HTT_T2H_MSG_TYPE_PKTLOG");
 	pdev_id = HTT_T2H_PKTLOG_PDEV_ID_GET(*msg_word);
 	pdev_id = DP_HW2SW_MACID(pdev_id);
 	pl_hdr = (msg_word + 1);

+ 1 - 1
utils/pktlog/include/pktlog_ac_i.h

@@ -25,7 +25,7 @@
 #include <pktlog_ac.h>
 
 
-#define PKTLOG_DEFAULT_BUFSIZE          (1 * 1024 * 1024) /* 1MB */
+#define PKTLOG_DEFAULT_BUFSIZE          (10 * 1024 * 1024) /* 10MB */
 #define PKTLOG_DEFAULT_SACK_THR         3
 #define PKTLOG_DEFAULT_TAIL_LENGTH      100
 #define PKTLOG_DEFAULT_THRUPUT_THRESH   (64 * 1024)