[WIP] (MG_Remote): implement P6.5 TCP and stream transport

This commit is contained in:
2026-09-22 07:19:18 -04:00
parent 810b9b7a9f
commit 52ffc6a7f2
68 changed files with 4934 additions and 928 deletions
+18 -1
View File
@@ -51,6 +51,13 @@ if(DEFINED TRACE_IPC_SERVER_PATH AND NOT "${TRACE_IPC_SERVER_PATH}" STREQUAL "")
# "parsed and ignored" stop being the same observation.
set(ENV{MOBILEGL_IPC_SERVER_PATH} "${TRACE_IPC_SERVER_PATH}")
endif()
if(DEFINED TRACE_IPC_CONTROL AND NOT "${TRACE_IPC_CONTROL}" STREQUAL "")
set(ENV{MOBILEGL_IPC_CONTROL} "${TRACE_IPC_CONTROL}")
set(ENV{MOBILEGL_IPC_DATA} stream)
set(ENV{MOBILEGL_IPC_TOKEN} "${TRACE_IPC_TOKEN}")
set(ENV{MOBILEGL_IPC_REQUIRE_SAME_BUILD} 1)
set(ENV{MOBILEGL_IPC_LOG_FORWARD} 1)
endif()
if(EXISTS "${TRACE_OUTPUT_DIR}")
file(REMOVE_RECURSE "${TRACE_OUTPUT_DIR}")
@@ -294,7 +301,17 @@ if(DEFINED ENV{MOBILEGL_TRANSPORT} AND NOT "$ENV{MOBILEGL_TRANSPORT}" STREQUAL "
set(split_expected_marker "MOBILEGL_TRANSPORT=inproc - the MGPipe record stream")
elseif("$ENV{MOBILEGL_TRANSPORT}" STREQUAL "spawn")
set(split_expected_marker "MOBILEGL_TRANSPORT=spawn - the MGPipe record stream")
set(split_expected_second "spawn ARMED - the server role runs in pid ")
if("$ENV{MOBILEGL_IPC_CONTROL}" MATCHES "^tcp://")
set(split_expected_second "control=tcp data=stream server=")
if(NOT split_log MATCHES "control=tcp data=stream server=[^ \r\n]+ pid=[1-9][0-9]*")
message(FATAL_ERROR "${split_case}: TCP session has no endpoint and server pid arm proof")
endif()
if(NOT EXISTS "${mobilegl_server_log}")
message(FATAL_ERROR "${split_case}: TCP session has no forwarded server log")
endif()
else()
set(split_expected_second "spawn ARMED - the server role runs in pid ")
endif()
else()
message(FATAL_ERROR
"MOBILEGL_TRANSPORT=$ENV{MOBILEGL_TRANSPORT} is set for ${split_case} and this "