Files
acrn-hypervisor/hypervisor/include/debug/profiling.h
Minggui Cao 0e51c9c5cc hv: shell: add cmd to sample vmexit data per-vCPU
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>
2022-07-25 14:33:36 +08:00

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 */