Thread Redaction - Create synthetic threads
In order to merge threads, new thread need to be created. These "fake"
threads will be called synthetic threads. A synthetic thread needs
to have a unique thread id, ensuring no collisions.
Because each CPU will get its own thread, all scheduling events on a
CPU will get moved into that CPU's thread.
The range of PIDs are known (0 to 2 ^ 22), so all synth threads will
be greater than 2 ^ 22.
Bug: 336807771
Change-Id: I29242f5c24dc478e9582d2a1e5eba3959e1af462
diff --git a/Android.bp b/Android.bp
index 94b84ff..f8e8b03 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12906,6 +12906,7 @@
name: "perfetto_src_trace_redaction_trace_redaction",
srcs: [
"src/trace_redaction/collect_frame_cookies.cc",
+ "src/trace_redaction/collect_system_info.cc",
"src/trace_redaction/collect_timeline_events.cc",
"src/trace_redaction/filter_ftrace_using_allowlist.cc",
"src/trace_redaction/filter_packet_using_allowlist.cc",
@@ -12937,6 +12938,7 @@
name: "perfetto_src_trace_redaction_unittests",
srcs: [
"src/trace_redaction/collect_frame_cookies_unittest.cc",
+ "src/trace_redaction/collect_system_info_unittest.cc",
"src/trace_redaction/collect_timeline_events_unittest.cc",
"src/trace_redaction/filter_ftrace_using_allowlist_unittest.cc",
"src/trace_redaction/filter_packet_using_allowlist_unittest.cc",