From 063f936fe2124ab5e12bf8011e4c5e64f165d82c Mon Sep 17 00:00:00 2001 From: Yong Ding Date: Wed, 29 Nov 2017 13:46:07 +0800 Subject: 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 --- include/uapi/linux/habmm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/uapi/linux') 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 -- cgit v1.2.3