ソースを参照

qcacld-3.0: Post high TPUT event to DPTrace

Add ultra low verbosity level to distinguish datapackets and special
packets. And post TPUT event to DPTrace logic so
that it can disable data packet logging during TPUT scenarios.
Disable print and in memory logging when packets per second exceeds
4 packets.

Change-Id: I70c9368de4cb2423901449b267452a34d652213d
CRs-Fixed: 2185186
Manjunathappa Prakash 6 年 前
コミット
5f5ed13024
2 ファイル変更3 行追加5 行削除
  1. 2 2
      core/hdd/inc/wlan_hdd_cfg.h
  2. 1 3
      core/hdd/src/wlan_hdd_main.c

+ 2 - 2
core/hdd/inc/wlan_hdd_cfg.h

@@ -9730,7 +9730,7 @@ enum dot11p_mode {
  * Param 2: DP Trace live mode high bandwidth thresh.(uint8_t)
  *         (packets/second) beyond which DP Trace is disabled. Decimal Val.
  *          MGMT, DHCP, EAPOL, ARP pkts are not counted. ICMP and Data are.
- * Param 3: Default Verbosity (0-3)
+ * Param 3: Default Verbosity (0-4)
  * Param 4: Proto Bitmap (uint8_t). Decimal Value.
  *          (decimal 62 = 0x3e)
  * e.g., to disable live mode, use the following param in the ini file.
@@ -9740,7 +9740,7 @@ enum dot11p_mode {
  * gDptraceConfig = 1, 4
  */
 #define CFG_ENABLE_DP_TRACE_CONFIG		"gDptraceConfig"
-#define CFG_ENABLE_DP_TRACE_CONFIG_DEFAULT	"1, 8, 1, 126"
+#define CFG_ENABLE_DP_TRACE_CONFIG_DEFAULT	"1, 4, 1, 126"
 #endif
 
 /*

+ 1 - 3
core/hdd/src/wlan_hdd_main.c

@@ -7319,11 +7319,9 @@ static void hdd_pld_request_bus_bandwidth(struct hdd_context *hdd_ctx,
 		else
 			hdd_disable_rx_ol_for_low_tput(hdd_ctx, false);
 
+		qdf_dp_trace_apply_tput_policy(next_vote_level);
 	}
 
-	qdf_dp_trace_throttle_live_mode(
-		(next_vote_level > PLD_BUS_WIDTH_NONE) ? true : false);
-
 	/*
 	 * Includes tcp+udp, if perf core is required for tcp, then
 	 * perf core is also required for udp.