compact_sched: traced_probes writer

If the config option is enabled, and our compile-time assumptions
about sched_switch format hold, divert those events to be encoded
in the compact format instead.

Change-Id: Ifb6f363040af055ea2710e51eb179a61b8d48b7d
diff --git a/Android.bp b/Android.bp
index 6d78dbe..9d7f14b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -366,6 +366,7 @@
     "src/traced/probes/filesystem/range_tree.cc",
     "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
     "src/traced/probes/ftrace/atrace_wrapper.cc",
+    "src/traced/probes/ftrace/compact_sched.cc",
     "src/traced/probes/ftrace/cpu_reader.cc",
     "src/traced/probes/ftrace/cpu_stats_parser.cc",
     "src/traced/probes/ftrace/event_info.cc",
@@ -1049,6 +1050,7 @@
     "src/traced/probes/filesystem/range_tree.cc",
     "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
     "src/traced/probes/ftrace/atrace_wrapper.cc",
+    "src/traced/probes/ftrace/compact_sched.cc",
     "src/traced/probes/ftrace/cpu_reader.cc",
     "src/traced/probes/ftrace/cpu_stats_parser.cc",
     "src/traced/probes/ftrace/event_info.cc",
@@ -4472,6 +4474,7 @@
     "src/traced/probes/filesystem/range_tree_unittest.cc",
     "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
     "src/traced/probes/ftrace/atrace_wrapper.cc",
+    "src/traced/probes/ftrace/compact_sched.cc",
     "src/traced/probes/ftrace/cpu_reader.cc",
     "src/traced/probes/ftrace/cpu_reader_unittest.cc",
     "src/traced/probes/ftrace/cpu_stats_parser.cc",