profiling: enable to capture dropped samples while buffering

Since the profiling utilizes the limited size of buffer to capture
sample data, dropping samples could happen while collecting data
if data is generated faster than flushing by consumer. Capturing
the dropped sample info is critical to understand how much the data
is reliable to use.

To capture the information, the new hypercall "PROFILING_GET_STATUS"
is introduced.

Tracked-On: #2474
Signed-off-by: Manisha Chinthapally <manisha.chinthapally@intel.com>
Signed-off-by: Min Lim <min.yeol.lim@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Min Lim
2019-01-30 16:02:15 -08:00
committed by wenlingz
parent 18b04451e1
commit ec4dd2284c
4 changed files with 54 additions and 9 deletions

View File

@@ -325,7 +325,8 @@ enum profiling_cmd_type {
PROFILING_SET_CONTROL_SWITCH,
PROFILING_CONFIG_PMI,
PROFILING_CONFIG_VMSWITCH,
PROFILING_GET_PCPUID
PROFILING_GET_PCPUID,
PROFILING_GET_STATUS
};
#endif /* ACRN_HV_DEFS_H */