benchmark: change ts buffer allocation flow

1. Change timestamp buffer allocation/mapping flow
2. Add misc cosmetic fixes

In case if timestamp buffer is allocated in userspace and new register
user memory API is used for its registering in OP-TEE (introduced in
optee_client commit 27888d73d156 ("tee_client_api: register user memory")),
there is no possibility to keep this mapping permanent among different
TEEC_InvokeCommand invocations. All all SHM are automatically unmapped from
OP-TEE VA space after TEEC_InvokeCommand is handled by OP-TEE.

Fixes: https://github.com/OP-TEE/optee_os/issues/1979
Acked-by: Joakim Bech <joakim.bech@linaro.org>
Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
4 files changed
tree: 0413c1e94d122c9020ca85a403768a82990a71d2
  1. libyaml/
  2. .gitignore
  3. benchmark_aux.c
  4. benchmark_aux.h
  5. CMakeLists.txt
  6. CMakeToolchain.txt
  7. common.h
  8. main.c
  9. Makefile
  10. README.md
README.md

optee_benchmark

OP-TEE Latency benchmark application