commit | de57800c370f79b52b4b87014ab50b34f8aec7fd | [log] [tgz] |
---|---|---|
author | Zhuoyao Zhang <zhuoyao@google.com> | Wed Sep 07 18:24:17 2016 -0700 |
committer | Zhuoyao Zhang <zhuoyao@google.com> | Mon Sep 19 12:37:58 2016 -0700 |
tree | fd4b2dc34fae5c8e93ddace3c455abfa1fda4964 | |
parent | 3f32c1f4cba298b0a9e750c4e073856392da726c [diff] |
Support generating instrumentation code for C++ backend in hidl-gen. * Register instrumentation callbacks on server side. * Invoke each callback during the entry/exit of each method. Bug: 31266145 Test: test pass for hidl_test Change-Id: I53d8b1b248fc6100e4e29d8a4b31d0994133fb71
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0