Trace Redaction - Reject invalid traces

In order to ensure proper redaction, trace redaction can and should
be very strict about its input. Small errors (e.g. missing a proc
free packet) can lead to major issues (e.g. two threads get merged
into a single thread because the proc free message was missing).

Bug: 338425440
Change-Id: I0b8abcd5fc2f196c8bf94f9edfbcf223319d0770
diff --git a/Android.bp b/Android.bp
index 7e67314..a770cb5 100644
--- a/Android.bp
+++ b/Android.bp
@@ -13609,6 +13609,7 @@
         "src/trace_redaction/suspend_resume.cc",
         "src/trace_redaction/trace_redaction_framework.cc",
         "src/trace_redaction/trace_redactor.cc",
+        "src/trace_redaction/verify_integrity.cc",
     ],
 }
 
@@ -13632,6 +13633,7 @@
         "src/trace_redaction/remap_scheduling_events_unittest.cc",
         "src/trace_redaction/remove_process_free_comm_unittest.cc",
         "src/trace_redaction/suspend_resume_unittest.cc",
+        "src/trace_redaction/verify_integrity_unittest.cc",
     ],
 }