Proto filter: adds plumbing into tracing service
This CL completes the work on the service-side
proto filtering. It adds a new field in the
TraceConfig and adds the glue logic into
TracingServiceImpl.
Design doc: go/trace-filtering
Bug: 181306741
Change-Id: I6be837f9a39f438129443101628d7cb5d9897bc9
diff --git a/BUILD b/BUILD
index 03c9be8..0e006ec 100644
--- a/BUILD
+++ b/BUILD
@@ -178,6 +178,9 @@
":src_android_stats_android_stats",
":src_android_stats_perfetto_atoms",
":src_kallsyms_kallsyms",
+ ":src_protozero_filtering_bytecode_common",
+ ":src_protozero_filtering_bytecode_parser",
+ ":src_protozero_filtering_message_filter",
":src_traced_probes_android_log_android_log",
":src_traced_probes_common_common",
":src_traced_probes_data_source",
@@ -773,6 +776,33 @@
],
)
+# GN target: //src/protozero/filtering:bytecode_common
+filegroup(
+ name = "src_protozero_filtering_bytecode_common",
+ srcs = [
+ "src/protozero/filtering/filter_bytecode_common.h",
+ ],
+)
+
+# GN target: //src/protozero/filtering:bytecode_parser
+filegroup(
+ name = "src_protozero_filtering_bytecode_parser",
+ srcs = [
+ "src/protozero/filtering/filter_bytecode_parser.cc",
+ "src/protozero/filtering/filter_bytecode_parser.h",
+ ],
+)
+
+# GN target: //src/protozero/filtering:message_filter
+filegroup(
+ name = "src_protozero_filtering_message_filter",
+ srcs = [
+ "src/protozero/filtering/message_filter.cc",
+ "src/protozero/filtering/message_filter.h",
+ "src/protozero/filtering/message_tokenizer.h",
+ ],
+)
+
# GN target: //src/trace_processor/analysis:analysis
filegroup(
name = "src_trace_processor_analysis_analysis",
@@ -3275,6 +3305,9 @@
srcs = [
":src_android_stats_android_stats",
":src_android_stats_perfetto_atoms",
+ ":src_protozero_filtering_bytecode_common",
+ ":src_protozero_filtering_bytecode_parser",
+ ":src_protozero_filtering_message_filter",
":src_tracing_client_api_without_backends",
":src_tracing_common",
":src_tracing_core_core",