traced: Add initial timestamp

The trace currently includes a clock snapshot at the physical
beginning of the trace but since this is taken at read time
this may be after the trace has ended. This adds an additional
clock snapshot taken at the time the trace actually began and
reported at read time.

Bug: 130543265
Test: take a trace and look at first packet
Change-Id: I360eec3b71dd3e372914183218a939eb88443acf
diff --git a/src/tracing/core/tracing_service_impl_unittest.cc b/src/tracing/core/tracing_service_impl_unittest.cc
index 74653c6..781d672 100644
--- a/src/tracing/core/tracing_service_impl_unittest.cc
+++ b/src/tracing/core/tracing_service_impl_unittest.cc
@@ -1315,11 +1315,14 @@
   producer->WaitForDataSourceStart("data_source");
 
   // The preamble packets are:
+  // Trace start clocksnapshot
   // Config
   // SystemInfo
-  // 3x unknown
-  static const int kNumPreamblePackets = 5;
-  static const int kNumTestPackets = 10;
+  // Trace read clocksnapshot
+  // Trace synchronisation
+  // Trace stats
+  static const int kNumPreamblePackets = 6;
+  static const int kNumTestPackets = 9;
   static const char kPayload[] = "1234567890abcdef-";
 
   std::unique_ptr<TraceWriter> writer =