Add support for power/gpu_work_period tracepoint
Support gpu_work_period events introduced in Android 14.
This tracepoint reports GPU activity per UID. It's
visualized with slices which represents start and end
timings of the GPU work. Special handling was needed
inside ftrace_tokenizer to sort the ftrace events based
on reported GPU times, instead of the event timestamps.
Bug: 302479496
Change-Id: I59e039e5b7888dfc117c1e733703a4473897301e
diff --git a/Android.bp b/Android.bp
index 328fc3d..4e31dbd 100644
--- a/Android.bp
+++ b/Android.bp
@@ -11163,6 +11163,7 @@
"src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
"src/trace_processor/importers/ftrace/ftrace_parser.cc",
"src/trace_processor/importers/ftrace/ftrace_tokenizer.cc",
+ "src/trace_processor/importers/ftrace/gpu_work_period_tracker.cc",
"src/trace_processor/importers/ftrace/iostat_tracker.cc",
"src/trace_processor/importers/ftrace/mali_gpu_event_tracker.cc",
"src/trace_processor/importers/ftrace/pkvm_hyp_cpu_tracker.cc",