Trace Redaction - Filter suspend resume events
This starts a new pattern for some primitives. Rather than having
a single primitive build the allowlist, this allows multiple
primitives to contribute to the allowlist.
For this change, there is:
1. a collect filter that adds the ftrace event id
2. a ftrace event filter than filters suspend-resume events
As long as item 2 is registered, item 1 can be optionally added to
enable/disable suspend-resume events.
Change-Id: I41d3e10a381e4497d0aa5ba9756c0c3d941a653b
diff --git a/Android.bp b/Android.bp
index 1683b53..3c0b263 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12879,6 +12879,7 @@
"src/trace_redaction/scrub_process_stats.cc",
"src/trace_redaction/scrub_process_trees.cc",
"src/trace_redaction/scrub_trace_packet.cc",
+ "src/trace_redaction/suspend_resume.cc",
"src/trace_redaction/trace_redaction_framework.cc",
"src/trace_redaction/trace_redactor.cc",
],
@@ -12900,6 +12901,7 @@
"src/trace_redaction/redact_process_free_unittest.cc",
"src/trace_redaction/redact_sched_switch_unittest.cc",
"src/trace_redaction/redact_task_newtask_unittest.cc",
+ "src/trace_redaction/suspend_resume_unittest.cc",
],
}