mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-02-21 22:56:57 +00:00
this feature is used to sample vmexit data per virtual CPU of VM, command used in HV console as following: 1. vmexit clear : to clear current vmexit buffer 2. vmexit [vm_id] : output vmexit info per-vCPU of one or all VMs 3. vmexit enable | disable, by default enabled Tracked-On: #5232 Signed-off-by: Minggui Cao <minggui.cao@intel.com>
26 lines
590 B
C
26 lines
590 B
C
/*
|
|
* Copyright (C) 2018 int32_tel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PROFILING_H
|
|
#define PROFILING_H
|
|
|
|
#ifdef PROFILING_ON
|
|
#include <profiling_internal.h>
|
|
#endif
|
|
|
|
struct acrn_vcpu;
|
|
|
|
void profiling_vmenter_handler(struct acrn_vcpu *vcpu);
|
|
void profiling_pre_vmexit_handler(struct acrn_vcpu *vcpu);
|
|
void profiling_post_vmexit_handler(struct acrn_vcpu *vcpu);
|
|
void profiling_setup(void);
|
|
|
|
/* for vmexit sample */
|
|
void sample_vmexit_end(struct acrn_vcpu *vcpu);
|
|
void sample_vmexit_begin(struct acrn_vcpu *vcpu);
|
|
|
|
#endif /* PROFILING_H */
|