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
1 file changed