链路时延M1-M3收尾:Phase12-14基线与生产路径Δ实测、D10/E-02/D17修复、D20定位与硬化、文档整理
This commit is contained in:
+21
-1
@@ -16,6 +16,7 @@
|
||||
#include "ch395f_test.h"
|
||||
#include "ch395f_test_task.h"
|
||||
#include "net_test_task.h"
|
||||
#include "net_latency_test.h"
|
||||
|
||||
#define DBG_TAG "[NET_TEST]"
|
||||
#include "dbg_log.h"
|
||||
@@ -867,7 +868,14 @@ void net_layer_test_main(void)
|
||||
* 断开后自动重新 listen。
|
||||
*/
|
||||
for (;;) {
|
||||
if (!phase_active) {
|
||||
if (!phase_active
|
||||
#ifdef ENABLE_PHASE13_TESTS
|
||||
&& net_latency_phase13_busy() == 0
|
||||
#endif
|
||||
#ifdef ENABLE_PHASE14_TESTS
|
||||
&& net_latency_phase14_busy() == 0
|
||||
#endif
|
||||
) {
|
||||
int32_t acc = net_accept(sockfd, (struct net_sockaddr *)&client_addr, &addrlen);
|
||||
if (acc < 0) {
|
||||
if (accept_retry % 100 == 0) {
|
||||
@@ -907,6 +915,18 @@ void net_layer_test_main(void)
|
||||
#ifdef ENABLE_PHASE11_TESTS
|
||||
phase11_run(sockfd);
|
||||
#endif
|
||||
#ifdef ENABLE_PHASE13_TESTS
|
||||
/* Phase 13(链路时延 L3~L7/L10,M2):独立运行,勿与其他 Phase 混选;
|
||||
* 注意此处**不**重置 phase_active —— 保持 10ms 节拍(时延测量对
|
||||
* 循环周期敏感,Phase 8 式 accept 重入的 100ms 退避会污染样本) */
|
||||
net_latency_phase13_run(sockfd);
|
||||
#endif
|
||||
#ifdef ENABLE_PHASE14_TESTS
|
||||
/* Phase 14(生产路径时延 L8~L11,M3):不占测试 socket —— 测量真实
|
||||
* uiTask + ui_net_sink(:7003) 生产路径,由 peer --mode remo 驱动;
|
||||
* 本调用只是探针窗口状态机(arm/disarm/report),同样保持 10ms 节拍 */
|
||||
net_latency_phase14_run();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 单连接模式:连接断开由 net 层自动重监听(auto_relisten),
|
||||
|
||||
Reference in New Issue
Block a user