mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-04 22:47:00 +00:00
For data structure types "struct vm", its name is identical with variable name in the same scope. This is a MISRA C violation. Naming convention rule:If the data structure type is used by multi modules, its corresponding logic resource is exposed to external components (such as SOS, UOS), and its name meaning is simplistic (such as vcpu, vm), its name needs prefix "acrn_". The following udpates are made: struct vm *vm-->struct acrn_vm *vm Tracked-On: #861 Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
34 lines
795 B
C
34 lines
795 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>
|
|
|
|
void profiling_vmenter_handler(struct acrn_vcpu *vcpu);
|
|
void profiling_vmexit_handler(struct acrn_vcpu *vcpu, uint64_t exit_reason);
|
|
void profiling_setup(void);
|
|
|
|
#else
|
|
|
|
static inline void profiling_vmenter_handler(__unused struct acrn_vcpu *vcpu) {}
|
|
static inline void profiling_vmexit_handler(__unused struct acrn_vcpu *vcpu,
|
|
__unused uint64_t exit_reason) {}
|
|
static inline void profiling_setup(void) {}
|
|
|
|
static inline int32_t hcall_profiling_ops(__unused struct acrn_vm *vm,
|
|
__unused uint64_t cmd, __unused uint64_t param)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* PROFILING_H */
|