Support dynamically enable profiling.
* Create method configureInstrumentation to enable/disable instrumentation based
on the corresponding system property. This method will be called every
time setHALInstrumention is invoked for any hal.
* Add setHALInstrumention to IBase.hal
Bug: 33923655
Test: make libhidlbase.
Change-Id: I130fb903f65783568a97308e291965960abab41d
diff --git a/transport/base/1.0/IBase.hal b/transport/base/1.0/IBase.hal
index d696249..30be023 100644
--- a/transport/base/1.0/IBase.hal
+++ b/transport/base/1.0/IBase.hal
@@ -71,4 +71,10 @@
* @return success whether the death recipient was unregistered successfully.
*/
unlinkToDeath(death_recipient recipient) generates (bool success);
+
+ /*
+ * This method trigger the interface to enable/disable instrumentation based
+ * on system property hal.instrumentation.enable.
+ */
+ oneway setHALInstrumentation();
};