tp: add a simple wrapper binary around RPC protocol
This CL adds a very simple wrapper binary around the trace processor RPC
protocol; all this bianry does is read stdin, push the bytes to the rpc
class and push the responses to stdout.
The purpose of this is to use this in Bigtrace in a gVisor sandbox: the
simplicity is a boon as it makes random failures inside the sandbox much
less likely.
Also add a simple test just to make sure there are no obvious errors.
Change-Id: I421ab958d0e75c3e1b4c9eec3f22b8c2b13243ed
diff --git a/Android.bp b/Android.bp
index e32c0a4..57c256e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12049,6 +12049,14 @@
],
}
+// GN: //src/trace_processor/rpc:stdiod
+filegroup {
+ name: "perfetto_src_trace_processor_rpc_stdiod",
+ srcs: [
+ "src/trace_processor/rpc/stdiod.cc",
+ ],
+}
+
// GN: //src/trace_processor/rpc:unittests
filegroup {
name: "perfetto_src_trace_processor_rpc_unittests",
@@ -14590,6 +14598,7 @@
":perfetto_src_trace_processor_perfetto_sql_intrinsics_table_functions_table_functions",
":perfetto_src_trace_processor_rpc_httpd",
":perfetto_src_trace_processor_rpc_rpc",
+ ":perfetto_src_trace_processor_rpc_stdiod",
":perfetto_src_trace_processor_sorter_sorter",
":perfetto_src_trace_processor_sqlite_query_constraints",
":perfetto_src_trace_processor_sqlite_sqlite",