summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorYong Ding <yongding@codeaurora.org>2017-11-29 13:46:07 +0800
committerYong Ding <yongding@codeaurora.org>2017-11-30 11:20:12 +0800
commit063f936fe2124ab5e12bf8011e4c5e64f165d82c (patch)
tree3c4a4f6fa925ea2d45cea2e37f1d9833893c259b /include/uapi
parentef8ff2ece9a112a3469d7fb242b73e9ea21843e4 (diff)
soc: qcom: hab: add time profiling function
With this profiling function, hab communication overhead can be measured for performance debug. Change-Id: I26dd487cfd1bbb811de69d8b35a7c095a21361ac Signed-off-by: Yong Ding <yongding@codeaurora.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/habmm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/habmm.h b/include/uapi/linux/habmm.h
index c05146550b2e..59b603a0fcf7 100644
--- a/include/uapi/linux/habmm.h
+++ b/include/uapi/linux/habmm.h
@@ -117,6 +117,14 @@ struct hab_unimport {
#define HABMM_SOCKET_SEND_FLAGS_NON_BLOCKING 0x00000001
+/*
+ * Collect cross-VM stats: client provides stat-buffer large enough to allow 2
+ * ets of a 2-uint64_t pair to collect seconds and nano-seconds at the
+ * beginning of the stat-buffer. Stats are collected when the stat-buffer leaves
+ * VM1, then enters VM2
+ */
+#define HABMM_SOCKET_SEND_FLAGS_XING_VM_STAT 0x00000002
+
#define HABMM_SOCKET_RECV_FLAGS_NON_BLOCKING 0x00000001
#define HABMM_EXP_MEM_TYPE_DMA 0x00000001