Access atrace HAL to get available categories
This code is not used yet. It is just the wrapper layers
to allow traced probes to talk to the atrace HAL.
Bug: 127378737
Test: Code is never reached for now
Change-Id: I062d29ec5ba7dd54c8c7f4ea6efaa3d3b854aee0
diff --git a/src/android_internal/BUILD.gn b/src/android_internal/BUILD.gn
index baf21a6..36734fd 100644
--- a/src/android_internal/BUILD.gn
+++ b/src/android_internal/BUILD.gn
@@ -19,6 +19,7 @@
"../../gn:default_deps",
]
sources = [
+ "atrace_hal.h",
"health_hal.h",
"power_stats_hal.h",
]
@@ -34,12 +35,14 @@
]
if (perfetto_build_with_android) {
sources = [
+ "atrace_hal.cc",
"health_hal.cc",
"power_stats_hal.cc",
]
libs = [
"android.hardware.health@2.0",
"android.hardware.power.stats@1.0",
+ "android.hardware.atrace@1.0",
"base",
"log",
"hidlbase",