summaryrefslogtreecommitdiff
path: root/transport/base
diff options
context:
space:
mode:
authorZhuoyao Zhang <zhuoyao@google.com>2017-01-03 17:31:53 -0800
committerZhuoyao Zhang <zhuoyao@google.com>2017-01-11 11:39:44 -0800
commit5a643b9fbd9f08bd04a38804d647c847c1c93b8f (patch)
tree574070491732a17350a9d12fbbe95e1dc35d47fa /transport/base
parent33eb6bdc9db8d89a31131a937aef9dda764fb49f (diff)
downloadlibhidl-5a643b9fbd9f08bd04a38804d647c847c1c93b8f.tar.gz
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
Diffstat (limited to 'transport/base')
-rw-r--r--transport/base/1.0/IBase.hal6
1 files changed, 6 insertions, 0 deletions
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 @@ interface IBase {
* @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();
};