Trace Redaction - Create foundation for trace redaction
In order to set-up the foundation for migrating the trace redaction work
into the Perfetto repo, the following three work items had to be
executed together.
1. Set-up directory and build files for future work
2. Define key data types (context + primitive)
3. Define execution pattern
To demonstrate how everything works, this implements primitives
that find a target package in the package list and removes all
other packages.
Bug: 318576092
Change-Id: I5fca1102abc6bb02e433453817c56270023368e2
diff --git a/Android.bp b/Android.bp
index 73487c9..02b3c6b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -2387,6 +2387,8 @@
":perfetto_src_trace_processor_util_stdlib",
":perfetto_src_trace_processor_util_util",
":perfetto_src_trace_processor_util_zip_reader",
+ ":perfetto_src_trace_redaction_integrationtests",
+ ":perfetto_src_trace_redaction_trace_redaction",
":perfetto_src_traced_probes_android_game_intervention_list_android_game_intervention_list",
":perfetto_src_traced_probes_android_log_android_log",
":perfetto_src_traced_probes_android_system_property_android_system_property",
@@ -12428,6 +12430,34 @@
],
}
+// GN: //src/trace_redaction:integrationtests
+filegroup {
+ name: "perfetto_src_trace_redaction_integrationtests",
+ srcs: [
+ "src/trace_redaction/trace_redactor_integrationtest.cc",
+ ],
+}
+
+// GN: //src/trace_redaction:trace_redaction
+filegroup {
+ name: "perfetto_src_trace_redaction_trace_redaction",
+ srcs: [
+ "src/trace_redaction/find_package_uid.cc",
+ "src/trace_redaction/prune_package_list.cc",
+ "src/trace_redaction/trace_redaction_framework.cc",
+ "src/trace_redaction/trace_redactor.cc",
+ ],
+}
+
+// GN: //src/trace_redaction:unittests
+filegroup {
+ name: "perfetto_src_trace_redaction_unittests",
+ srcs: [
+ "src/trace_redaction/find_package_uid_unittest.cc",
+ "src/trace_redaction/prune_package_list_unittest.cc",
+ ],
+}
+
// GN: //src/traceconv:gen_cc_trace_descriptor
genrule {
name: "perfetto_src_traceconv_gen_cc_trace_descriptor",
@@ -13901,6 +13931,8 @@
":perfetto_src_trace_processor_util_unittests",
":perfetto_src_trace_processor_util_util",
":perfetto_src_trace_processor_util_zip_reader",
+ ":perfetto_src_trace_redaction_trace_redaction",
+ ":perfetto_src_trace_redaction_unittests",
":perfetto_src_traceconv_lib",
":perfetto_src_traceconv_pprofbuilder",
":perfetto_src_traceconv_unittests",