summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Herouart <rherouart@google.com>2023-01-27 16:09:56 +0000
committerRaphael Herouart <rherouart@google.com>2023-01-30 12:47:40 +0000
commit107a9e2734a15a4cfa6bc8a9301b5c9a46d39071 (patch)
tree1f2228ae026deed3385b5a59379bde8429acc5ae
parent2006c71e332018595d304fe281d7bae16642b785 (diff)
downloadgeneric-arm64-107a9e2734a15a4cfa6bc8a9301b5c9a46d39071.tar.gz
trusty benchmarking: Benchmark Machine Readable Output
Bug: 266065533 Test: - export BENCHMARK_MACHINE_READABLE=1 - trusty/vendor/google/aosp/scripts/build.py qemu-generic-arm64-test-debug --skip-tests - Test "com.android.trusty.hwrng.bench" Change-Id: Iba65b48ad9644dbc337fc73d64191424ff36a32f
-rw-r--r--project/generic-arm-test-inc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/project/generic-arm-test-inc.mk b/project/generic-arm-test-inc.mk
index 27d8246..99e2ee7 100644
--- a/project/generic-arm-test-inc.mk
+++ b/project/generic-arm-test-inc.mk
@@ -13,6 +13,12 @@
# limitations under the License.
#
+# Enabling this changes benchmark output to be in json format.
+# See go/trusty-benchmark-json-output for the schema.
+# Build with BENCHMARK_MACHINE_READABLE=1 to enable.
+BENCHMARK_MACHINE_READABLE?=0
+GLOBAL_DEFINES += BENCHMARK_MACHINE_READABLE=$(BENCHMARK_MACHINE_READABLE)
+
UBSAN_ENABLED ?= true
RELEASE_BUILD ?= false